/* QG Protec54 – styles du portail (sortis d'index.html en 2.1 pour être gardés en cache) */
:root {
  --entete: #014182; --bleu: #014182; --bleu-texte: #0B4C93; --orange: #F18800; --orange-texte: #A65A00;
  --fond: #EEF2F7; --surface: #FFFFFF; --surface-2: #F4F7FA; --texte: #12233A; --texte-2: #4A5B70; --bord: #D3DCE7;
  --rouge: #B42318; --rouge-fond: #FDECEA; --vert: #18794A; --vert-fond: #E5F4EC; --focus: #F18800;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]):not([data-theme="soleil"]) {
    --entete: #012A54; --bleu: #2F74C8; --bleu-texte: #8CBBF2; --orange-texte: #FFB050;
    --fond: #0B1727; --surface: #13233A; --surface-2: #1A2D47; --texte: #E7EEF6; --texte-2: #A8B7CA; --bord: #2A405E;
    --rouge: #FF9488; --rouge-fond: #3B1D1D; --vert: #6BD6A0; --vert-fond: #12301F;
    color-scheme: dark;
  }
}
:root[data-theme="soleil"] {
  --entete: #00244D; --bleu: #00306B; --bleu-texte: #002A5E; --orange: #C25E00; --orange-texte: #7A3B00;
  --fond: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF; --texte: #000000; --texte-2: #1B1B1B; --bord: #000000;
  --rouge: #8A0000; --rouge-fond: #FFE5E5; --vert: #00532B; --vert-fond: #E3F5EA; --focus: #C25E00;
  color-scheme: light;
}
:root[data-theme="soleil"] body { font-weight: 500; }
:root[data-theme="soleil"] .bloc, :root[data-theme="soleil"] .tuile, :root[data-theme="soleil"] .lignes, :root[data-theme="soleil"] .mc-item, :root[data-theme="soleil"] .bouton { border-width: 2px; }
:root[data-theme="soleil"] .heros-54 { display: none; }
:root[data-theme="soleil"] .avatar { background: #FFB050; color: #000; }
.puce[aria-pressed="true"] span { color: #fff; opacity: 1; }
:root[data-theme="sombre"] {
  --entete: #012A54; --bleu: #2F74C8; --bleu-texte: #8CBBF2; --orange-texte: #FFB050;
  --fond: #0B1727; --surface: #13233A; --surface-2: #1A2D47; --texte: #E7EEF6; --texte-2: #A8B7CA; --bord: #2A405E;
  --rouge: #FF9488; --rouge-fond: #3B1D1D; --vert: #6BD6A0; --vert-fond: #12301F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; font-size: 100%; }
html[data-taille="grand"] { font-size: 112.5%; }
html[data-taille="tres-grand"] { font-size: 125%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
a { color: var(--bleu-texte); }
h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 1.1rem; font-weight: 750; margin: 0 0 10px; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.aller-contenu { position: absolute; left: 8px; top: -60px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.aller-contenu:focus { top: 8px; }
.ic { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Champs et boutons */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.95rem; }
input, select, textarea { width: 100%; font: inherit; font-size: max(16px, 1rem); padding: 11px 14px; min-height: 48px; border: 1.5px solid var(--bord); border-radius: 10px; background: var(--surface); color: var(--texte); }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--bleu); }
.champ-code, .champ-pin { font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.bouton.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton.danger { color: var(--rouge); border-color: currentColor; background: transparent; }
.bouton.large { width: 100%; margin-top: 16px; }
.bouton.petit { min-height: 44px; padding: 0 12px; font-size: 0.9rem; }
.bouton.occupe, .bouton:disabled { opacity: 0.7; cursor: progress; }
.bouton .ic { width: 1.1em; height: 1.1em; }
.bouton-texte { background: none; border: 0; color: var(--bleu-texte); font: inherit; font-weight: 650; padding: 10px 4px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bouton-texte:disabled { color: var(--texte-2); cursor: default; }
.bouton-icone { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.bouton-icone.clair { color: #fff; }
.form-message { margin: 10px 0 0; font-weight: 600; }
.form-message.erreur { color: var(--rouge); }
.form-message:empty { display: none; }
.aide-champ { font-size: 0.85rem; color: var(--texte-2); margin: 6px 0 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.deux-colonnes { display: grid; gap: 0 12px; }
.aligne-bas { display: flex; align-items: flex-end; }
fieldset.choix { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.cases { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.case { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; padding: 8px 12px; border: 1px solid var(--bord); border-radius: 10px; min-height: 44px; cursor: pointer; }
.formulaire > .case { margin-top: 16px; }
.case input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--bleu); }
.icones-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.icone-choix { margin: 0; position: relative; }
.icone-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.icone-choix span:first-of-type { width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--bord); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icone-choix input:checked + span { background: var(--entete); color: #fff; border-color: var(--entete); }
.icone-choix input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Écrans plein cadre (connexion, verrou) */
.ecran { min-height: 100vh; min-height: 100dvh; background: var(--entete); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.ecran-logo { width: 148px; height: auto; }
.page-connexion .ecran { background: radial-gradient(circle at 50% 18%, #0b55a6 0%, var(--entete) 55%); }
.page-connexion .ecran-logo { width: min(230px, 58vw); }
.page-connexion .ecran-logo + .ecran-slogan { display: block; }
.ecran-slogan { display: none; margin: -6px 0 6px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.ecran-carte { background: var(--surface); color: var(--texte); border-radius: 18px; padding: 24px 22px; width: 100%; max-width: 420px; box-shadow: 0 14px 40px rgba(0, 10, 30, 0.35); }
.ecran-carte h1 { font-size: 1.5rem; margin-bottom: 8px; }
.ecran-carte .note { margin-top: 16px; }
.ecran-pied { margin: 0; font-size: 0.85rem; opacity: 0.8; }
.ecran-attente { font-weight: 600; margin: 0; }
.liens-ecran { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.pile { display: flex; flex-direction: column; }
details.aide { margin-top: 10px; border-top: 1px solid var(--bord); padding-top: 4px; }
details.aide summary { cursor: pointer; font-weight: 650; color: var(--bleu-texte); min-height: 44px; display: flex; align-items: center; }
details.aide ul { padding-left: 1.2em; margin: 0; color: var(--texte-2); font-size: 0.92rem; }
details.aide li { margin-bottom: 6px; }
.alerte-ligne, .succes-ligne { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-weight: 600; margin: 8px 0; }
.alerte-ligne { background: var(--rouge-fond); color: var(--rouge); }
.succes-ligne { background: var(--vert-fond); color: var(--vert); }
.note { font-size: 0.88rem; color: var(--texte-2); display: flex; gap: 8px; align-items: flex-start; }

/* Coquille */
.entete { position: sticky; top: 0; z-index: 20; background: var(--entete); color: #fff; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; }
.marque { display: flex; align-items: center; min-height: 44px; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.marque img { border-radius: 8px; display: block; }
.entete-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.indicateur-hors-ligne { display: inline-flex; gap: 6px; align-items: center; font-size: 0.82rem; background: rgba(255, 255, 255, 0.16); padding: 4px 10px; border-radius: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #241400; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.9rem; flex-shrink: 0; }
.avatar.grand { width: 64px; height: 64px; font-size: 1.3rem; }
.navigation { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom, 0px); }
.navigation a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; min-width: 0; padding: 0 2px; color: var(--texte-2); text-decoration: none; font-size: 0.75rem; font-weight: 650; text-align: center; }
.navigation a span { overflow-wrap: anywhere; line-height: 1.15; }
.navigation a.nav-large { display: none; }
@media (min-width: 900px) { .navigation a.nav-large { display: flex; } }
.navigation a .ic { width: 24px; height: 24px; }
.navigation a[aria-current="page"] { color: var(--bleu-texte); box-shadow: inset 0 3px 0 var(--orange); }
.nav-large { display: none !important; }
main#vue { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); outline: none; min-width: 0; }
.contenu { max-width: 980px; margin: 0 auto; padding: 16px; }
.contenu.etroit { max-width: 660px; }
.titre-page { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.bloc { margin: 22px 0; }
.bloc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lien-discret { color: var(--bleu-texte); font-weight: 650; text-decoration: none; font-size: 0.95rem; display: inline-flex; align-items: center; min-height: 44px; }
.chapo .lien-discret, p .lien-discret { min-height: 0; display: inline; }
.lien-discret:hover { text-decoration: underline; }
.chapo { color: var(--texte-2); margin: 0 0 12px; }
.vide { color: var(--texte-2); background: var(--surface); border: 1px dashed var(--bord); border-radius: 12px; padding: 16px; margin: 8px 0; }
.compte { font-size: 0.85rem; color: var(--texte-2); margin: 4px 0 8px; }
.pied-bloc { font-size: 0.85rem; color: var(--texte-2); margin: 10px 0 0; }
.version { font-size: 0.8rem; color: var(--texte-2); text-align: center; margin: 20px 0; }

/* Ma journée */
.heros { position: relative; overflow: hidden; background: var(--entete); color: #fff; padding: 18px 16px 30px; }
.heros-texte { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.heros h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 2px 0 8px; }
.heros-date { margin: 0; font-weight: 650; opacity: 0.85; }
.heros-resume { margin: 0; font-size: 1.05rem; }
.heros-54 { position: absolute; right: -44px; bottom: -40px; width: min(64vw, 340px); opacity: 0.3; pointer-events: none; user-select: none; }
.bandeau { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--bord); border-left: 5px solid var(--bleu-texte); border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.bandeau p { margin: 0; font-weight: 600; }
.bandeau .bandeau-par { font-weight: 400; font-size: 0.85rem; color: var(--texte-2); margin-top: 2px; }
.bandeau .ic { color: var(--bleu-texte); margin-top: 2px; }
.bandeau .bouton-texte { margin-left: auto; padding-top: 0; padding-bottom: 0; min-height: 44px; }
.bandeau-alerte { border-left-color: var(--rouge); background: var(--rouge-fond); }
.bandeau-alerte .ic { color: var(--rouge); }
.bandeau-vide { margin-top: 8px; }
.alerte-admin { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--texte); text-decoration: none; font-size: 0.95rem; border: 1px dashed var(--bord); }
.alerte-admin.alerte-rouge { background: var(--rouge-fond); color: var(--rouge); border-color: currentColor; }
ul.raccourcis { list-style: none; margin: 18px -16px 0; padding: 0 16px 4px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
ul.raccourcis li { flex: 0 0 auto; }
.raccourci { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; min-height: 48px; background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; color: var(--texte); text-decoration: none; font-weight: 750; }
.raccourci .ic { color: var(--bleu-texte); }

/* Activités : la main courante */
.main-courante { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.mc-jour h3 { font-size: 0.95rem; font-weight: 800; color: var(--texte-2); margin: 0 0 6px; }
.mc-jour ol { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.mc-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--bord); }
.mc-item:first-child { border-top: 0; }
.mc-heure { display: flex; flex-direction: column; justify-content: center; align-self: stretch; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.25; border-right: 3px solid var(--orange); padding-right: 10px; }
.mc-fin { font-weight: 500; color: var(--texte-2); font-size: 0.82rem; }
.mc-corps { min-width: 0; display: block; width: 100%; background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; }
.mc-titre { display: block; margin: 0; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mc-meta { margin: 5px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.85rem; color: var(--texte-2); }
.mc-lieu { display: inline-flex; gap: 4px; align-items: center; }
.mc-lieu .ic { width: 1em; height: 1em; }
.mc-encours { color: var(--vert); font-weight: 700; }
.etiquette { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 750; background: var(--et-bg); color: var(--et-tx); margin: 2px 0; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--et-tx); }
.t-orange { --et-bg: #FDEBD3; --et-tx: #8A4B00; }
.t-bleu { --et-bg: #DCE9F8; --et-tx: #0B4C93; }
.t-rouge { --et-bg: #FCE1DE; --et-tx: #A1241A; }
.t-gris { --et-bg: #E5E9EF; --et-tx: #3E4C5E; }
.t-vert { --et-bg: #DDF2E6; --et-tx: #17663F; }
.t-violet { --et-bg: #ECE3F7; --et-tx: #5B2E91; }
.t-neutre { --et-bg: #EEF1F5; --et-tx: #4A5B70; }
:root[data-theme="sombre"] .t-orange { --et-bg: #4A3015; --et-tx: #FFC27A; }
:root[data-theme="sombre"] .t-bleu { --et-bg: #17355A; --et-tx: #A9CBF5; }
:root[data-theme="sombre"] .t-rouge { --et-bg: #4A1E1C; --et-tx: #FFB0A8; }
:root[data-theme="sombre"] .t-gris { --et-bg: #243449; --et-tx: #C3CEDB; }
:root[data-theme="sombre"] .t-vert { --et-bg: #173A28; --et-tx: #9BE3BC; }
:root[data-theme="sombre"] .t-violet { --et-bg: #33224A; --et-tx: #D3B8F5; }
:root[data-theme="sombre"] .t-neutre { --et-bg: #1F3049; --et-tx: #B6C3D3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .t-orange { --et-bg: #4A3015; --et-tx: #FFC27A; }
  :root:not([data-theme="clair"]) .t-bleu { --et-bg: #17355A; --et-tx: #A9CBF5; }
  :root:not([data-theme="clair"]) .t-rouge { --et-bg: #4A1E1C; --et-tx: #FFB0A8; }
  :root:not([data-theme="clair"]) .t-gris { --et-bg: #243449; --et-tx: #C3CEDB; }
  :root:not([data-theme="clair"]) .t-vert { --et-bg: #173A28; --et-tx: #9BE3BC; }
  :root:not([data-theme="clair"]) .t-violet { --et-bg: #33224A; --et-tx: #D3B8F5; }
  :root:not([data-theme="clair"]) .t-neutre { --et-bg: #1F3049; --et-tx: #B6C3D3; }
}

/* Recherche et filtres */
.champ-recherche { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 10px; padding: 0 12px; margin: 8px 0; color: var(--texte-2); }
.champ-recherche input { border: 0; padding: 11px 0; min-height: 46px; background: transparent; color: var(--texte); }
.champ-recherche input:focus-visible { outline: none; }
.champ-recherche:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 4px 0; scrollbar-width: thin; }
.puce { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-size: 0.9rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.puce span { color: var(--texte-2); font-weight: 500; }
.puce[aria-pressed="true"], .puce[aria-current="page"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.puce[aria-pressed="true"] span { color: #fff; }
.puce[aria-pressed="true"] .pastille { box-shadow: 0 0 0 2px #fff; }

/* Outils */
ul.tuiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tuile { min-width: 0; }
.tuile-txt { min-width: 0; overflow-wrap: anywhere; }
.tuile { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; }
.tuile-lien { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 66px; color: var(--texte); text-decoration: none; border-radius: 12px 0 0 12px; }
.tuile-lien.inactif { background: var(--surface-2); border-style: dashed; cursor: default; }
.tuile-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--entete); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tuile-ic .ic { width: 22px; height: 22px; }
.tuile-txt { display: flex; flex-direction: column; min-width: 0; }
.tuile-nom { font-weight: 800; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tuile-lib { font-size: 0.88rem; color: var(--texte-2); }
.tuile-ext { margin-left: auto; color: var(--texte-2); width: 1.1em; height: 1.1em; }
.tuile-fav { width: 50px; border: 0; border-left: 1px solid var(--bord); background: transparent; color: var(--texte-2); cursor: pointer; border-radius: 0 12px 12px 0; display: flex; align-items: center; justify-content: center; }
.tuile-fav[aria-pressed="true"] { color: var(--orange); }
.tuile-fav[aria-pressed="true"] .ic { fill: currentColor; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--texte-2); border: 1px solid var(--bord); }
.badge-orange { color: var(--orange-texte); border-color: currentColor; }
.badge-bleu { color: var(--bleu-texte); border-color: currentColor; }

/* Listes */
ul.lignes, ul.personnes, ul.appareils { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--bord); color: var(--texte); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
li:first-child > .ligne { border-top: 0; }
.ligne > span:not(.avatar):not(.badge):not(.ordre) { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 650; }
.ligne small { font-weight: 400; color: var(--texte-2); font-size: 0.85rem; overflow-wrap: anywhere; }
.ligne > .ic:first-child { color: var(--bleu-texte); }
.ligne-chevron { color: var(--texte-2); margin-left: auto; }
.ordre { display: inline-flex; width: 28px; justify-content: center; font-weight: 800; color: var(--texte-2); flex: 0 0 auto; }
.personnes li, .appareils li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--bord); }
.personnes li:first-child, .appareils li:first-child { border-top: 0; }
.personnes li > div, .appareils li > div { flex: 1; min-width: 0; }
.personne-nom, .appareil-nom { margin: 0; font-weight: 700; }
.personne-fonction { margin: 0; color: var(--texte-2); }
.personne-contact, .appareil-meta { margin: 2px 0 0; font-size: 0.88rem; color: var(--texte-2); }
.contact-pole { display: flex; gap: 6px; align-items: center; margin: -4px 0 10px; }

/* Mon espace */
.profil { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.profil h1 { font-size: 1.4rem; }
.profil-mail { margin: 0; color: var(--texte-2); overflow-wrap: anywhere; }
.profil-roles { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.segments { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 10px; padding: 3px; gap: 3px; }
.segments button { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--texte); font: inherit; font-weight: 650; cursor: pointer; }
.segments [aria-checked="true"] { background: var(--bleu); color: #fff; }
dl.fiche { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; }
.fiche div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--bord); }
.fiche div:first-child { border-top: 0; }
.fiche dt { color: var(--texte-2); font-size: 0.9rem; }
.fiche dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

/* Installer */
ol.etapes { padding-left: 1.4em; margin: 8px 0 16px; }
ol.etapes li { margin: 10px 0; }
ol.etapes .ic { vertical-align: -0.25em; }
.qr { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 16px; }
.qr img { width: 140px; height: 140px; background: #fff; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.ecran-carte .qr { flex-direction: column; text-align: center; }

/* Administration */
.onglets-admin { margin-bottom: 8px; }
.barre-outils { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.barre-outils .champ-recherche, .barre-outils .chapo { flex: 1; min-width: 220px; margin: 0; }
dl.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.chiffres div { padding: 14px; box-shadow: 0 0 0 0.5px var(--bord); }
.chiffres dt { font-size: 0.85rem; color: var(--texte-2); }
.chiffres dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffres small { font-size: 0.85rem; font-weight: 500; color: var(--texte-2); }
.tableau-defilant { overflow-x: auto; border: 1px solid var(--bord); border-radius: 12px; background: var(--surface); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tableau th, .tableau td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--bord); vertical-align: top; }
.tableau thead th { border-top: 0; color: var(--texte-2); background: var(--surface-2); }
.tableau td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.demandes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.demandes li { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.demandes .actions { justify-content: flex-start; margin-top: 8px; }
.zone-actions { border-top: 1px solid var(--bord); margin-top: 22px; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.zone-actions h3 { width: 100%; font-size: 1rem; margin: 8px 0 4px; }
.resultat { margin-top: 12px; }
ul.apercu { padding-left: 1.2em; font-size: 0.9rem; }
.code-geant { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.12em; text-align: center; color: var(--bleu-texte); font-variant-numeric: tabular-nums; margin: 12px 0; }

/* Fiche d'activité, visite, secrets */
.detail-ligne { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.detail-ligne .ic { color: var(--bleu-texte); margin-top: 2px; }
.pile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.visite { text-align: center; }
.visite-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--fond); color: var(--bleu-texte); display: inline-flex; align-items: center; justify-content: center; margin: 4px 0 8px; }
.visite-ic .ic { width: 36px; height: 36px; }
.visite-etape { font-size: 0.85rem; color: var(--texte-2); font-weight: 600; margin: 0 0 4px; }
.visite h1 { margin-bottom: 10px; }
.champ-copie { display: flex; gap: 8px; }
.champ-copie input { flex: 1; min-width: 0; }
input.secret { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.85rem; }
.apercu-import { margin: 12px 0 4px; }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 16px; padding: 12px 14px; background: var(--surface); border: 1px dashed var(--bord); border-radius: 12px; }
.invite p { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.invite .ic { color: var(--bleu-texte); }
.bandeau-vide { display: flex; flex-wrap: wrap; gap: 0 16px; }
.retour { margin-top: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; }
.retour-titre { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; margin: 0 0 10px; }
.retour-titre .ic { color: var(--vert); margin-top: 2px; }
.retour-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.covoit { margin-top: 18px; border-top: 1px solid var(--bord); padding-top: 6px; }
.covoit h3 { font-size: 1rem; margin: 8px 0; }
.covoit-sous { font-weight: 700; font-size: 0.85rem; color: var(--texte-2); margin: 8px 0 4px; }
ul.nouveautes { padding-left: 1.2em; }
ul.nouveautes li { margin: 6px 0; }
.tableau-adresses input { min-width: 220px; }
.tableau-adresses details { margin-top: 4px; border: 0; padding: 0; }
.personnaliser { display: flex; justify-content: center; margin: 24px 0 8px; }
.blocs-liste { list-style: none; padding: 0; margin: 0 0 12px; }
.blocs-liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bord); }
.blocs-fleches { display: flex; gap: 4px; flex-shrink: 0; }
.blocs-fleches .bouton-icone { width: 44px; height: 44px; font-size: 1.1rem; }
.mission-en-cours { margin-top: 16px; background: var(--bleu); color: #fff; border-radius: 14px; padding: 16px; }
.mission-en-cours h2 { margin: 2px 0 6px; font-size: 1.3rem; color: #fff; }
.mec-etat { margin: 0; font-weight: 700; color: #FFD9A8; }
.mec-lieu, .mec-meteo { margin: 4px 0; display: flex; gap: 6px; align-items: center; }
.mec-meteo:empty { display: none; }
.mec-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.mission-en-cours .bouton { background: #fff; color: var(--bleu); border-color: #fff; }
.mec-numeros { margin-top: 10px; }
.mission-en-cours .mec-numeros a { color: #fff; }
.pour-moi { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.carte-perso { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--bord); background: var(--surface); }
.carte-perso p { margin: 2px 0; }
.carte-perso .cp-titre { font-weight: 800; }
.carte-perso.fete { background: var(--fete-fond); border-color: var(--fete-bord); color: var(--texte); }
.carte-perso.fete .ic { color: var(--orange); }
.carte-perso.retard { background: var(--vig4-fond); border-color: var(--vig4-bord); color: var(--texte); }
.carte-perso.bientot .ic, .carte-perso.retard .ic { color: var(--bleu); margin-top: 2px; }
.carte-perso.retard .lien-discret, .carte-perso.fete .lien-discret { color: var(--bleu-texte); }
.progression { height: 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--bord); overflow: hidden; margin: 4px 0 10px; }
.progression i { display: block; height: 100%; background: var(--vert); }
ul.etapes { list-style: none; margin: 0; padding: 0; }
ul.etapes li { padding: 6px 0; border-bottom: 1px solid var(--bord); }
ul.etapes small { display: block; color: var(--texte-2); }
.segments.petit button { min-height: 44px; padding: 6px 14px; }
.titre-page .segments { margin-top: 8px; }
.calendrier { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 10px; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; }
.cal-tete h2 { margin: 0; font-size: 1.1rem; }
.cal-tete .bouton-icone { font-size: 1.4rem; width: 44px; height: 44px; }
.cal-semaine, .cal-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-semaine li { text-align: center; font-size: 0.75rem; color: var(--texte-2); padding: 6px 0 2px; }
.cal-jour { width: 100%; min-height: 52px; border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); color: var(--texte); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 4px 2px; gap: 2px; cursor: pointer; position: relative; font: inherit; }
.cal-jour.auj { border-color: var(--bleu); border-width: 2px; }
.cal-jour.choisi { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.cal-jour.manque::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.cal-n { font-weight: 700; font-size: 0.9rem; }
.cal-points { display: flex; gap: 2px; }
.cal-points .pastille { width: 7px; height: 7px; }
.cal-nb { font-size: 0.7rem; opacity: 0.8; }
.cal-detail { margin-top: 14px; }
.barre-jour { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.barre-jour input { max-width: 200px; }
.barre-jour .bouton-icone, .cal-tete .bouton-icone { font-size: 1.4rem; width: 44px; height: 44px; flex-shrink: 0; }
@media (max-width: 360px) { .calendrier { padding: 6px 4px; } .cal-semaine, .cal-grille { gap: 2px; } }
ul.salles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.salle { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.salle h2 { margin: 0 0 6px; font-size: 1.05rem; }
.salle h2 small { color: var(--texte-2); font-weight: 500; }
.libre { color: var(--vert); margin: 4px 0; display: flex; gap: 6px; align-items: center; }
.trois-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.retour-page { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.titre-page { flex-wrap: wrap; }
.titre-page .retour-page, .titre-page .chapo { flex-basis: 100%; }
.titre-page .retour-page { justify-content: flex-start; }
#bilan-val { max-width: 220px; }
.marque span { white-space: nowrap; }
@media (max-width: 360px) { .marque span { font-size: 0.95rem; } .marque img { width: 30px; height: 30px; } }
.retour-page .ic-retour { transform: rotate(180deg); }
.mon-annee h2 { margin-bottom: 6px; }
.annee-chiffres { display: flex; gap: 28px; }
.annee-chiffres div { color: var(--texte-2); }
.annee-chiffres strong { display: block; font-size: 2rem; color: var(--bleu); line-height: 1.1; }
.apercu-bandeau { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--jaune-fond); color: var(--texte); border: 1px solid var(--vig2-bord); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.alerte-liste { list-style: none; padding: 0; margin: 0; }
.alerte-liste li { display: flex; gap: 6px; padding: 4px 0; color: var(--rouge); }
.tableau-bilan td, .tableau-bilan th { text-align: center; }
.tableau-bilan caption { text-align: left; font-weight: 700; padding: 6px 0; }
.interrupteurs small { display: block; color: var(--texte-2); }
.boutons-ligne { display: flex; gap: 6px; flex-wrap: wrap; }
.boutons-ligne .bouton { white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.barre-outils { flex-wrap: wrap; }
.barre-outils > * { min-width: 0; max-width: 100%; }
.ligne-ecran { flex-wrap: wrap; row-gap: 6px; }
.ligne-ecran > span:not(.badge) { flex: 1 1 160px; }
.ligne-ecran .bouton { flex-shrink: 0; }
.raccourci.perso .ic { color: var(--orange); }
.impression-bilan .bilan-logo { height: 70px; }
body { overscroll-behavior-y: contain; }
.tirer { position: fixed; top: 0; left: 50%; transform: translate(-50%, -56px); z-index: 60; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--bleu); box-shadow: 0 2px 10px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; transition: transform .15s; pointer-events: none; }
.tirer.pret { color: var(--orange); }
.tirer.charge { transform: translate(-50%, 16px); animation: tourner 0.9s linear infinite; }
@keyframes tourner { to { transform: translate(-50%, 16px) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tirer.charge { animation: none; } }
.indicateur-attente, .indicateur-demo { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #FFF6C2; color: #12233A; margin-left: 8px; }
:root { --vig2-fond: #FFF8D6; --vig2-bord: #D9B400; --vig3-fond: #FFF0DB; --vig3-bord: #F18800; --vig4-fond: #FDECEA; --vig4-bord: #D92D20; --fete-fond: #FFF6E5; --fete-bord: #F6C979; --jaune-fond: #FFF6C2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]):not([data-theme="soleil"]) { --vig2-fond: #33300F; --vig2-bord: #E8C200; --vig3-fond: #3A2710; --vig3-bord: #FFA43A; --vig4-fond: #3B1716; --vig4-bord: #FF6B5E; --fete-fond: #33280F; --fete-bord: #B88A2E; --jaune-fond: #33300F; } }
:root[data-theme="sombre"] { --vig2-fond: #33300F; --vig2-bord: #E8C200; --vig3-fond: #3A2710; --vig3-bord: #FFA43A; --vig4-fond: #3B1716; --vig4-bord: #FF6B5E; --fete-fond: #33280F; --fete-bord: #B88A2E; --jaune-fond: #33300F; }
.badge-nouveau { background: #A65A00; color: #fff; border-color: #A65A00; }
:root[data-theme="soleil"] .badge-nouveau { background: #7A3B00; border-color: #7A3B00; }
.aide-page { width: 40px !important; height: 40px !important; min-width: 40px; border: 1.5px solid currentColor !important; font-weight: 800; margin-left: 8px; align-self: center; flex-shrink: 0; }
.aide-page::after { content: ""; position: absolute; inset: -6px; }
.aide-page { position: relative; }
.heros .aide-page { color: #fff; position: absolute; top: 12px; right: 12px; margin: 0; z-index: 1; }
.heros-texte { padding-right: 46px; }
.bandeau-actions .bouton-texte { white-space: nowrap; }
.titre-page h1 { flex: 1 1 auto; min-width: 0; }
.dates-rapides { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.deux-colonnes > *, .trois-colonnes > * { min-width: 0; }
input[type="datetime-local"], input[type="date"], input[type="time"], input[type="month"] { min-width: 0; max-width: 100%; }
.dates-rapides .puce { min-height: 40px; }
.brouillon { margin: 0 0 10px; }
ul.infos, ul.evenements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.info { background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--bleu); border-radius: 12px; padding: 12px 14px; }
.info.lue { border-left-color: var(--bord); }
.info p { margin: 2px 0; }
.info-titre { font-weight: 800; display: flex; gap: 6px; align-items: center; }
.info-meta { color: var(--texte-2); font-size: 0.85rem; }
.info-actions, .bandeau-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.bandeau-actions { margin-left: auto; margin-top: 0; }
.lu { color: var(--vert); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.evenement { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.evenement.annule { opacity: .7; }
.ev-date { flex-shrink: 0; width: 52px; text-align: center; background: var(--bleu); color: #fff; border-radius: 10px; padding: 6px 0; align-self: flex-start; }
.ev-jour { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.ev-mois { display: block; font-size: 0.8rem; text-transform: uppercase; }
.ev-corps { flex: 1; min-width: 0; }
.ev-corps p { margin: 2px 0; }
.ev-titre { font-weight: 800; }
.ev-meta { color: var(--texte-2); font-size: 0.9rem; }
.carte-geste { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.carte-geste .ic { color: var(--rouge); margin-top: 2px; flex-shrink: 0; }
.carte-geste p { margin: 2px 0; }
.liste-depart { margin-top: 16px; border-top: 1px solid var(--bord); padding-top: 6px; }
.liste-depart h3 { font-size: 1rem; margin: 8px 0; }
.mec-liste { margin: 8px 0 0; }
.mission-en-cours .bouton-texte { color: #fff; }
.filtres-personnes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.filtres-personnes select { width: auto; min-width: 160px; flex: 1 1 160px; }
.filtres-personnes .champ-recherche { flex: 2 1 220px; }
.groupe-barre { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 2px solid var(--bleu); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.groupe-barre select { width: auto; min-width: 150px; }
.groupe-barre #groupe-nb { font-weight: 800; }
.compte-ligne { display: flex; justify-content: space-between; align-items: center; }
.ligne-selection { display: flex; align-items: stretch; }
.ligne-selection .ligne { flex: 1; min-width: 0; }
.case-seule { display: flex; align-items: center; justify-content: center; width: 48px; flex-shrink: 0; cursor: pointer; }
.case-seule input { width: 22px; height: 22px; }
.echeances li.proche { border-left: 4px solid var(--orange); }
.echeances li.depassee { border-left: 4px solid var(--rouge); }
.lien-demo { text-align: center; margin-top: 8px; }
.presets { margin: 8px 0 12px; }
/* ---------- 1.8 : corrections des essais */
.ligne .badge { align-self: flex-start; flex-shrink: 0; white-space: nowrap; }
.ligne-selection .ligne { flex-wrap: wrap; row-gap: 4px; }
.ligne-selection .ligne > span:not(.avatar):not(.badge) { flex: 1 1 150px; }
.bandeau { flex-wrap: wrap; }
.bandeau-actions { flex-shrink: 0; }
.bandeau-actions .bouton, .bandeau-actions .bouton-texte { white-space: nowrap; }
.segments-theme { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; }
.evenement .choix-rapides { flex-wrap: wrap; gap: 6px; }
.evenement .choix-rapides .bouton { flex: 1 1 88px; padding: 0 6px; font-size: 0.85rem; white-space: nowrap; }
.info.repliee summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--texte-2); }
.info.repliee summary::-webkit-details-marker { display: none; }
/* ---------- tuiles en grille */
.barre-outils-outils { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; }
.barre-outils-outils .champ-recherche { flex: 1; }
.grille-tuiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grille-tuiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.grille-tuiles .tuile { position: relative; display: block; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; }
.grille-tuiles .tuile-lien { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px 12px; min-height: 128px; height: 100%; border-radius: 14px; color: var(--texte); text-decoration: none; }
.grille-tuiles .tuile-lien:hover { background: var(--surface-2); }
.grille-tuiles .tuile-ic { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; }
.tuile-ic img, .raccourci img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.raccourci img { width: 22px; height: 22px; border-radius: 6px; }
.grille-tuiles .tuile-nom { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.grille-tuiles .tuile-lib { color: var(--texte-2); font-size: 0.82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuile-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.grille-tuiles .tuile-fav { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2); display: flex; align-items: center; justify-content: center; }
.grille-tuiles .tuile-fav[aria-pressed="true"] { color: var(--orange-texte); border-color: var(--orange-texte); }
.tuile-bientot .tuile-lien { border: 1.5px dashed var(--bord); background: var(--surface-2); }
.tuile-bientot .tuile-ic { background: var(--texte-2); }
.bientot details > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.bientot details > summary h2 { margin: 0; }
.bientot details > summary::after { content: "▾"; margin-left: auto; color: var(--texte-2); }
.bientot details[open] > summary { margin-bottom: 10px; }
/* ---------- Pilotage, administration */
.cartes-pilotage { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.carte-pilotage { display: flex; gap: 12px; align-items: center; padding: 14px; min-height: 72px; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; color: var(--texte); text-decoration: none; }
.carte-pilotage:hover { background: var(--surface-2); }
.carte-pilotage .ic { width: 26px; height: 26px; color: var(--bleu-texte); flex-shrink: 0; }
.carte-pilotage span { display: flex; flex-direction: column; }
.carte-pilotage small { color: var(--texte-2); }
.alerte-admin { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--vig3-fond); border-left: 5px solid var(--vig3-bord); color: var(--texte); font-weight: 700; text-decoration: none; }
.familles-admin { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.famille h2 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin: 0 0 8px; }
.matrice-droits { border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.matrice-droits th, .matrice-droits td { padding: 8px; border-bottom: 1px solid var(--bord); text-align: center; }
.matrice-droits thead th { vertical-align: bottom; font-weight: 700; color: var(--texte-2); }
.matrice-droits thead th span { display: inline-block; max-width: 90px; }
.matrice-droits tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--surface); min-width: 170px; max-width: 240px; }
.matrice-droits td { padding: 0; }
.case-matrice { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; cursor: pointer; }
.case-matrice input { width: 22px; height: 22px; }
.chiffres dd.detail-types a { display: inline-flex; align-items: center; min-height: 40px; }
.reglages-avances > summary { cursor: pointer; list-style: none; }
.reglages-avances > summary h2 { display: inline; }
.reglages-avances > summary::after { content: " ▾"; color: var(--texte-2); }
.demandes-acces { border-left: 5px solid var(--vig3-bord); }
/* ---------- Bien démarrer */
.bien-demarrer { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--bleu); }
.etapes-demarrage { list-style: none; margin: 0 0 6px; padding: 0; }
.etapes-demarrage li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.etapes-demarrage li.fait .bd-titre { color: var(--texte-2); text-decoration: line-through; }
.bd-coche { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bord); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--vert); }
.etapes-demarrage li.fait .bd-coche { border-color: var(--vert); }
.bd-titre { flex: 1 1 180px; font-weight: 650; }
.bd-actions { display: flex; gap: 6px; align-items: center; margin-left: 34px; }
@media (min-width: 600px) { .bd-actions { margin-left: 0; } }
/* ---------- applis, fiche d'application, diagnostic, départs */
ul.applis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.appli { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 12px 14px; }
.appli .tuile-ic { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; }
.appli-nom { margin: 0; font-weight: 800; }
.appli-lib { margin: 2px 0 8px; color: var(--texte-2); }
.image-tuile { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.tuile-ic.grand { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; }
.image-tuile label.bouton { cursor: pointer; }
.zone-mobile { border-left: 3px solid var(--bleu); padding-left: 12px; margin: 6px 0; }
ul.diagnostic { list-style: none; margin: 0; padding: 0; }
ul.diagnostic li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--bord); }
ul.diagnostic li p { margin: 0; }
ul.diagnostic li.ok .ic { color: var(--vert); }
ul.diagnostic li.ko .ic { color: var(--rouge); }
.depart-fiche { margin: 4px 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--bleu); font-weight: 650; }
.depart-fiche.alerte { background: var(--vig3-fond); border-left-color: var(--vig3-bord); }
/* ---------- 1.9 : retours visuels, chargement */
.bouton, .bouton-icone, .bouton-texte, .puce, .ligne, .tuile-lien, .carte-pilotage, .action-rapide, .raccourci { transition: transform 0.08s ease, background-color 0.15s ease; }
.bouton:active, .bouton-icone:active, .puce:active, .ligne:active, .tuile-lien:active, .carte-pilotage:active, .action-rapide:active, .raccourci:active, .fab:active { transform: scale(0.97); }
.en-cours { position: relative; pointer-events: none; opacity: 0.85; }
.bouton.en-cours, .action-rapide.en-cours { color: transparent !important; }
.bouton.en-cours::after, .action-rapide.en-cours::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--texte-2) transparent var(--texte-2) transparent; animation: tourne 0.8s linear infinite; }
.bouton.principal.en-cours::after { border-color: #fff transparent #fff transparent; }
@keyframes tourne { to { transform: rotate(360deg); } }
.barre-chargement { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: linear-gradient(90deg, transparent, var(--orange), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: barre 1.1s ease-in-out infinite; }
@keyframes barre { 0% { background-position: -50% 0; } 100% { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .barre-chargement { animation: none; background: var(--orange); opacity: 0.6; } .bouton.en-cours::after { animation-duration: 2s; } .bouton:active, .puce:active, .ligne:active, .tuile-lien:active { transform: none; } }
.indicateur-lent { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #FFF6C2; color: #12233A; margin-left: 8px; }
/* ---------- bouton d'action rapide */
.fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--orange); color: #1A1100; box-shadow: 0 4px 14px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fab .ic { width: 28px; height: 28px; }
.fab { transition: transform 0.22s ease, opacity 0.22s ease; }
.fab.fab-cache { transform: translateY(120px); opacity: 0; pointer-events: none; }
.titre-entete { position: absolute; left: 64px; right: 160px; text-align: left; font-weight: 800; font-size: 1.02rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.18s; pointer-events: none; }
.titre-entete.actif { opacity: 1; }
.titre-entete.actif ~ .marque span { visibility: hidden; }
/* ---------- 1.13 : zone d'alertes unique */
.zone-alertes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.al-carte { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border-left: 6px solid var(--bord); background: var(--surface); color: var(--texte); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.al-carte > .ic { flex-shrink: 0; margin-top: 2px; }
.al-carte.al-rouge { border-left-color: var(--vig4-bord); background: var(--vig4-fond); }
.al-carte.al-orange { border-left-color: var(--vig3-bord); background: var(--vig3-fond); }
.al-carte.al-jaune { border-left-color: var(--vig2-bord); background: var(--vig2-fond); }
.al-carte.al-bleu { border-left-color: var(--bleu); }
.al-carte.al-gris { border-left-color: var(--texte-2); }
.al-corps { flex: 1; min-width: 0; }
.al-corps p, .al-corps ul { margin: 2px 0; }
.al-corps ul { padding-left: 18px; }
.al-titre { font-weight: 800; }
.al-meta, .al-source { font-size: 0.86rem; color: var(--texte-2); }
.al-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; }
.al-plus > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bleu-texte); padding: 0 6px; }
.al-plus > summary::-webkit-details-marker { display: none; }
.al-plus[open] > summary .ic { transform: rotate(90deg); }
.al-plus > .al-carte { margin-top: 8px; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }
ul.actions-rapides { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.action-rapide { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; min-height: 64px; border: 1px solid var(--bord); border-radius: 14px; background: var(--surface); color: var(--texte); font: inherit; cursor: pointer; }
.action-rapide .ic { width: 26px; height: 26px; color: var(--bleu-texte); flex-shrink: 0; }
.action-rapide span { display: flex; flex-direction: column; }
.action-rapide small { color: var(--texte-2); }
.action-rapide.danger .ic { color: var(--rouge); }
/* ---------- cloche, résumé du jour, « À savoir », événements compacts */
.cloche { position: relative; }
.pastille-cloche { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #1A1100; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.notifs .ligne.nouvelle { background: var(--surface-2); }
.point-nouveau { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: 0 0 10px; margin: 0 7px; }
.avec-fab #vue { padding-bottom: 96px; }
/* ---------- 1.10 */
html { touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1rem); }
.heure-entete { display: none; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
@media (display-mode: fullscreen) { .heure-entete { display: inline; order: 3; } }
.choix-son { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--bord); }
.choix-son .case span { display: flex; flex-direction: column; }
.choix-son small { color: var(--texte-2); font-weight: 400; }
ol.etapes-guide { padding-left: 22px; }
ol.etapes-guide li { margin: 8px 0; }
.choix-rappel { display: flex; flex-direction: column; gap: 8px; }
.covoit-liste li { display: block; }
.covoit-info p { margin: 2px 0; }
.covoit-trajet { font-weight: 800; color: var(--bleu-texte); margin-bottom: 4px; }
.covoit-liste .boutons-ligne, .covoit .boutons-ligne { margin-top: 6px; flex-wrap: wrap; }
li.de-ma-commune { border-left: 4px solid var(--orange); padding-left: 10px; }
/* ---------- 1.11 : alertes nationales */
.alertes-nationales { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.alerte-nat { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border-left: 6px solid var(--vig4-bord); background: var(--vig4-fond); color: var(--texte); }
.alerte-nat.orange { border-left-color: var(--vig3-bord); background: var(--vig3-fond); }
.alerte-nat > div { flex: 1; min-width: 0; }
.alerte-nat p { margin: 2px 0; }
.an-titre { font-weight: 800; }
.an-source { font-size: 0.85rem; color: var(--texte-2); }
/* ---------- Ma journée sur deux colonnes sur grand écran */
@media (min-width: 1100px) {
  .blocs-journee { column-count: 2; column-gap: 24px; }
  .blocs-journee > * { break-inside: avoid; display: block; }
  .blocs-journee > *:first-child { margin-top: 0; }
}
/* ---------- fenêtres « tiroir » sur téléphone, transitions */
.poignee { display: none; }
@media (max-width: 700px) {
  dialog.dialogue { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: tiroir 0.22s ease-out; transition: transform 0.15s ease; }
  .poignee { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--bord); margin: 8px auto 0; }
}
@keyframes tiroir { from { transform: translateY(48px); } to { transform: none; } }
#vue.entree { animation: entree 0.18s ease-out; }
@keyframes entree { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.dialogue, #vue.entree { animation: none; } }
/* ---------- mode mission */
.mode-mission { position: fixed; inset: 0; z-index: 90; background: var(--entete); color: #fff; display: flex; flex-direction: column; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); overflow-y: auto; }
.mm-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mm-tete h2 { margin: 4px 0; font-size: 1.5rem; }
.mm-tete p { margin: 0; opacity: 0.9; }
.mm-etat { font-weight: 800; color: #FFD3A0; }
.mm-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-bouton { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; min-height: 92px; padding: 14px; border-radius: 16px; border: 0; background: rgba(255,255,255,0.12); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; text-align: left; cursor: pointer; }
.mm-bouton .ic { width: 28px; height: 28px; }
.mm-bouton small { display: block; font-weight: 600; opacity: 0.9; font-size: 0.85rem; }
.mm-bouton.urgent { grid-column: 1 / -1; background: var(--orange); color: #1A1100; }
.mm-pied { margin-top: auto; font-size: 0.85rem; opacity: 0.85; }
/* ---------- administration des écrans */
.apercu-ecran { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #012A54; border-radius: 10px; overflow: hidden; }
.apercu-ecran iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; }
.flux-ligne { border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.notifs small + small { margin-top: 2px; }
.resume-jour { display: flex; flex-wrap: nowrap; gap: 8px; margin: 16px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.resume-jour::-webkit-scrollbar { display: none; }
.resume-jour .puce { flex: 0 0 auto; min-height: 40px; white-space: nowrap; scroll-snap-align: start; }
.a-savoir { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--bord); border-left: 5px solid var(--orange); }
.a-savoir p { margin: 2px 0; }
.a-savoir-titre { font-weight: 800; }
.bandeau-vide { margin-top: 12px; }
.petit-lien { min-height: 40px; padding: 0; font-size: 0.85rem; }
@media (max-width: 400px) { .marque { min-width: 44px; justify-content: center; } .marque span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .entete-actions { gap: 2px; } }
.evenement.compact { padding: 10px 12px; }
.evenement.compact .ev-date { width: 46px; }
.lien-fiche { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--texte); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--bord); text-underline-offset: 3px; min-height: 40px; }
.evenement.compact .choix-rapides { margin-top: 6px; }
.fiche-evenement .fe-ligne { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.fiche-evenement .fe-desc { margin: 10px 0; white-space: pre-line; }
.fe-actions { justify-content: flex-start; flex-wrap: wrap; }
/* ---------- informations : photo, aperçu de la notification */
.info-photo img, .info-photo-apercu img { max-width: 100%; border-radius: 10px; display: block; margin: 6px 0; }
.info-photo-apercu img { max-height: 120px; }
.apercu-notif { margin: 12px 0; }
.notif-maquette { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--bord); max-width: 380px; }
.notif-maquette img { border-radius: 8px; }
.nm-titre { margin: 0; font-weight: 800; }
.nm-texte { margin: 2px 0 0; color: var(--texte-2); font-size: 0.9rem; }
/* ---------- tableau opérationnel du jour */
.op-ligne { display: flex; gap: 8px; align-items: center; font-weight: 650; }
ul.op-liste { list-style: none; margin: 0; padding: 0 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; }
.op-liste li:last-child { border-bottom: 0; }
.op-liste li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.op-liste li.termine { opacity: 0.6; }
.op-heure { font-weight: 800; font-variant-numeric: tabular-nums; border-right: 3px solid var(--orange); }
.op-liste li.en-cours .op-heure { border-right-color: var(--vert); }
.op-heure small { display: block; font-weight: 600; color: var(--texte-2); font-size: 0.75rem; }
.manque-texte { display: inline-block; font-weight: 800; color: var(--orange-texte); font-size: 0.85rem; }
.tuile-ic.petit { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; }
@media (max-width: 520px) { .trois-colonnes { grid-template-columns: 1fr 1fr; } .trois-colonnes > div:first-child { grid-column: 1 / -1; } }
.barre-direction { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; }
.bouton-texte.rouge { color: var(--rouge); }
ul.numeros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
ul.numeros li, ul.numeros a { min-width: 0; overflow-wrap: anywhere; }
.numero { display: flex; gap: 10px; align-items: center; min-height: 56px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; color: var(--texte); text-decoration: none; }
.numero .ic { color: var(--bleu-texte); }
.numero span { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.25; }
.numero strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--texte); letter-spacing: 0.01em; }
.numero span { color: var(--texte); }
dialog ul.numeros { margin-top: 4px; }
ul.astreintes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.astreintes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--bord); border-left: 5px solid var(--orange); border-radius: 12px; }
.astreinte-role { margin: 0; font-size: 0.85rem; color: var(--texte-2); font-weight: 600; }
.astreinte-nom { margin: 0; font-weight: 800; font-size: 1.05rem; }
.crise { margin-top: 16px; padding: 16px; border-radius: 14px; background: #8E1B12; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.crise h2 { margin: 0; font-size: 1.35rem; }
.crise p { margin: 0; }
.crise-depuis { display: flex; gap: 8px; align-items: center; font-weight: 600; opacity: 0.92; font-size: 0.9rem; }
.crise-consignes { white-space: pre-line; font-size: 1.02rem; }
.crise-lieu { display: flex; gap: 8px; align-items: flex-start; }
.crise .bouton { align-self: flex-start; }
.crise .numero { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.crise .numero .ic { color: #fff; }
body.en-crise .entete { box-shadow: inset 0 -4px 0 #D92D20; }
body.en-exercice .entete { box-shadow: inset 0 -4px 0 #F4B400; }
.crise.exercice { background: #3A2F00; border: 4px dashed #F4B400; }
.exercice-bandeau { margin: 0; text-align: center; font-weight: 900; letter-spacing: 0.12em; color: #1D1600; background: #F4B400; border-radius: 8px; padding: 4px 8px; }
ul.sondages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sondage { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.sondage-q { margin: 0; font-weight: 800; font-size: 1.05rem; }
.choix-rapides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sondage-gestion { display: flex; flex-wrap: wrap; gap: 4px 14px; }
ul.resultats { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.resultats li { display: grid; grid-template-columns: minmax(0, 1fr) 40% 2.5em; gap: 8px; align-items: center; }
.resultats li.mien .res-lib { font-weight: 800; }
.res-barre { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--bord); }
.res-barre i { display: block; height: 100%; background: var(--bleu); }
.res-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.res-noms { grid-column: 1 / -1; color: var(--texte-2); }
#contenus-ecran h3 { margin: 18px 0 6px; }
.ligne-form { margin-bottom: 8px; }
.vigilance { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bord); border-left: 6px solid var(--vig2-bord); background: var(--vig2-fond); color: var(--texte); }
.vigilance.v3 { border-left-color: var(--vig3-bord); background: var(--vig3-fond); }
.vigilance.v4 { border-left-color: var(--vig4-bord); background: var(--vig4-fond); }
.vigilance-titre { display: flex; gap: 8px; align-items: center; font-weight: 800; margin: 0 0 4px; }
.vigilance ul { margin: 0; padding-left: 1.2em; }
.vigilance-source { margin: 6px 0 0; font-size: 0.8rem; opacity: 0.8; }
.detail-types { display: block; color: var(--texte-2); font-size: 0.8rem; margin-top: 4px; }
.chiffres dd.detail-types { font-size: 0.8rem; font-weight: 400; line-height: 1.4; margin-top: 4px; font-variant-numeric: normal; }
.detail-ligne small.source { display: block; font-weight: 400; color: var(--texte-2); font-size: 0.8rem; }

/* Dialogues */
dialog.dialogue { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--texte); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
dialog.dialogue-large { width: min(720px, calc(100vw - 24px)); }
dialog.dialogue[open]:not(:modal) { position: fixed; inset: 0; margin: auto; z-index: 60; }
dialog::backdrop { background: rgba(4, 18, 36, 0.55); }
.dlg-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--bord); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-tete h2 { margin: 0; font-size: 1.15rem; }
.dlg-corps { padding: 4px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }

/* Notifications et chargement */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(480px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #12233A; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-weight: 600; animation: apparition 0.2s ease-out; }
.toast-erreur { background: #8E1B12; }
.toast-succes { background: #14633C; }
.toast-action { background: #fff; color: #12233A; border: 0; border-radius: 8px; min-height: 36px; padding: 0 12px; font: inherit; font-weight: 700; cursor: pointer; flex-shrink: 0; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } }
.squelettes { display: flex; flex-direction: column; gap: 10px; }
.squelette { height: 56px; border-radius: 12px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: brillance 1.2s infinite linear; }
@keyframes brillance { to { background-position: -200% 0; } }
#affiche { display: none; }

@media (max-width: 520px) {
  .mc-item { grid-template-columns: 58px 1fr; }
  .mc-item > .bouton { grid-column: 2; justify-self: start; }
  .qr { flex-direction: column; text-align: center; }
  dialog.dialogue, dialog.dialogue-large { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
@media (min-width: 560px) {
  .deux-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  ul.tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .coquille { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
  .entete { grid-column: 1 / -1; padding: 8px 20px; }
  .navigation { position: sticky; top: 56px; height: calc(100vh - 56px); align-self: start; display: flex; flex-direction: column; gap: 4px; border-top: 0; border-right: 1px solid var(--bord); padding: 16px 12px; }
  .navigation a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; font-size: 0.95rem; }
  .navigation a .ic { width: 22px; height: 22px; }
  .navigation a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--orange); }
  .nav-large { display: flex !important; }
  main#vue { padding-bottom: 48px; }
  .contenu { padding: 20px 28px; }
  .heros { padding: 32px 28px 44px; }
  .heros-54 { right: 4%; bottom: -56px; width: 380px; }
  ul.raccourcis { margin: 18px 0 0; padding: 0; flex-wrap: wrap; }
  #toasts { bottom: 24px; }
}
@media (min-width: 1200px) {
  ul.tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  body > *:not(#affiche) { display: none !important; }
  #affiche { display: flex !important; flex-direction: column; align-items: center; text-align: center; color: #012F5E; }
  .affiche-logo { width: 52mm; }
  #affiche h1 { font-size: 34pt; margin: 6mm 0 2mm; }
  .affiche-sous { font-size: 14pt; margin: 0; }
  .affiche-qr { width: 85mm; margin: 8mm 0 4mm; }
  .affiche-url { font-size: 22pt; font-weight: 800; margin: 0 0 6mm; }
  #affiche ol { text-align: left; font-size: 15pt; line-height: 1.6; }
  #affiche .impression-bilan { align-self: stretch; text-align: left; color: #12233A; }
  #affiche .impression-bilan h1 { font-size: 22pt; margin: 4mm 0 1mm; color: #014182; }
  #affiche .impression-bilan .chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  #affiche .impression-bilan .chiffres div { border: 1px solid #C9D3DF; border-radius: 3mm; padding: 3mm; break-inside: avoid; }
  #affiche .impression-bilan dd { font-size: 18pt; margin: 0; color: #014182; font-weight: 800; }
  #affiche .impression-bilan table { width: 100%; border-collapse: collapse; font-size: 10pt; margin-top: 4mm; }
  #affiche .impression-bilan th, #affiche .impression-bilan td { border: 1px solid #C9D3DF; padding: 1.5mm; }
  .affiche-table { width: 100%; border-collapse: collapse; margin-top: 8mm; text-align: left; font-size: 11pt; color: #12233A; }
  .affiche-table th, .affiche-table td { border: 1px solid #9aa7b6; padding: 3mm; vertical-align: top; overflow-wrap: anywhere; }
  .affiche-date { margin-top: 6mm; font-size: 10pt; }
}

/* ---------- 1.13 : page Outils en cartes de couleur */
.acces-direct { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; gap: 10px; padding: 10px 16px; background: var(--fond); box-shadow: 0 6px 10px -10px rgba(0,0,0,0.35); }
.ad-outil { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border-radius: 16px; background: var(--c); color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none; box-shadow: 0 3px 10px rgba(1,65,130,0.25); }
.ad-ic, .pill-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-ic .ic, .pill-ic .ic { width: 22px; height: 22px; color: #fff; }
.co-ic-image { background: #fff !important; }
.co-ic-image img { width: 100%; height: 100%; object-fit: contain; }
.sur-titre { font-size: 0.8rem !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 8px; }
ul.recents-outils { list-style: none; margin: 0 -16px; padding: 0 16px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
ul.recents-outils::-webkit-scrollbar { display: none; }
.pill-outil { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 22px; background: var(--surface); border: 1px solid var(--bord); color: var(--texte); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pill-outil .pill-ic { width: 34px; height: 34px; border-radius: 17px; background: var(--c); }
.pill-outil .pill-ic .ic { width: 18px; height: 18px; }
ul.cartes-outils { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.carte-outil { position: relative; min-width: 0; -webkit-touch-callout: none; user-select: none; }
.co-lien { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 112px; height: 100%; padding: 14px; border-radius: 18px; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 82%, #000)); color: #fff; text-decoration: none; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 30%, transparent); transition: transform 0.12s ease; }
.co-lien::after { content: ""; position: absolute; right: -22px; bottom: -22px; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,0.10); }
.co-lien:active { transform: scale(0.97); }
.co-lien.inactif { opacity: 0.55; }
.co-ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.co-ic .ic { width: 26px; height: 26px; color: #fff; }
.co-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.co-nom { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.co-lib { font-size: 0.82rem; opacity: 0.95; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-etat { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.22); }
.co-fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(0,0,0,0.25); color: #fff; display: flex; align-items: center; justify-content: center; }
.co-fav[aria-pressed="true"] { background: var(--orange); color: #1A1100; }
.bientot-ligne { display: flex; gap: 8px; align-items: center; margin: 20px 0 0; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--bord); color: var(--texte-2); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .co-lien { transition: none; } }

/* ---------- 1.13 : fiche d'activité, inscription, Bien démarrer réduit */
.rangee-icones { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; margin-top: 4px; }
.rangee-icones .ri { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-size: 0.8rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.rangee-icones .ri .ic { width: 24px; height: 24px; color: var(--bleu-texte); }
.statut-inscrit { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--vert-fond); color: var(--texte); font-weight: 700; }
.statut-inscrit .ic { color: var(--vert); }
.pastille-inscrit { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 16px; background: var(--vert-fond); color: var(--texte); font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.pastille-inscrit .ic { width: 16px; height: 16px; color: var(--vert); }
.bien-demarrer-replie { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 16px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.bien-demarrer-replie .progression { margin: 0; }

/* ---------- 1.13 : Mon engagement, carnet, carte de membre, célébration */
.carte-etape { text-align: center; background: linear-gradient(160deg, var(--entete), #0B5CB0); color: #fff; border: 0; }
.carte-etape .pied-bloc, .carte-etape .bouton-texte { color: #DCE8F7; }
.ce-etape { margin: 4px 0 12px; font-size: 1.9rem; font-weight: 900; letter-spacing: 0.01em; }
ol.etapes-parcours { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
ol.etapes-parcours::before { content: ""; position: absolute; top: 9px; left: 10%; right: 10%; height: 3px; background: rgba(255,255,255,0.25); }
.etapes-parcours li { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; opacity: 0.75; }
.ep-nom { max-width: 100%; overflow-wrap: anywhere; text-align: center; hyphens: auto; }
ol.etapes-parcours { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ep-point { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.3); border: 3px solid transparent; z-index: 1; }
.etapes-parcours li.faite .ep-point { background: var(--orange); }
.etapes-parcours li.actuelle { opacity: 1; }
.etapes-parcours li.actuelle .ep-point { background: #fff; border-color: var(--orange); transform: scale(1.25); }
.ce-prochaine { margin: 8px 0; }
.ce-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.ce-chiffres div { background: rgba(255,255,255,0.12); border-radius: 12px; padding: 10px 4px; font-size: 0.85rem; }
.ce-chiffres strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.objectif { display: flex; align-items: center; gap: 16px; }
svg.anneau { width: 88px; height: 88px; flex-shrink: 0; transform: rotate(-90deg); }
svg.anneau circle { fill: none; stroke-width: 9; }
.anneau-fond { stroke: var(--surface-2); }
.anneau-plein { stroke: var(--orange); stroke-linecap: round; transition: stroke-dasharray 0.8s ease; }
svg.anneau text { transform: rotate(90deg); transform-origin: 40px 40px; fill: var(--texte); font-weight: 900; font-size: 17px; }
ul.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px dashed var(--bord); color: var(--texte-2); }
.badges li.obtenu { border: 1px solid transparent; background: linear-gradient(160deg, var(--vig3-fond), var(--surface)); color: var(--texte); }
.bg-ic { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.badges li.obtenu .bg-ic { background: var(--orange); color: #1A1100; }
/* lot 8 : badges dessinés, animation de frappe */
.bg-dessin { display: block; width: 96px; height: 112px; }
.bg-dessin svg { display: block; width: 100%; height: 100%; }
.badges li:not(.obtenu) .bg-dessin { opacity: .85; }
.badges li.frappe .bg-dessin { animation: frappe .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes frappe { 0% { transform: scale(1.8) rotate(-12deg); opacity: 0; } 60% { transform: scale(.92) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .badges li.frappe .bg-dessin { animation: none; } }
.bg-nom { font-weight: 800; font-size: 0.86rem; }
.bg-meta { font-size: 0.72rem; line-height: 1.25; }
ul.trophees, ul.mercis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trophees li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--vig3-fond); border-left: 5px solid var(--orange); }
.tr-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; background: var(--orange); color: #1A1100; display: flex; align-items: center; justify-content: center; }
.tr-titre { font-weight: 800; margin: 0; }
.trophees p { margin: 2px 0; }
.mercis li { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.mercis li.nouveau { border-left: 5px solid var(--orange); }
.mercis p { margin: 2px 0; }
ul.carnet { list-style: none; margin: 0; padding: 0; }
.carnet li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.cn-date { width: 48px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--surface-2); padding: 4px 0; }
.cn-date span { display: block; font-size: 1.25rem; font-weight: 900; }
.cn-date small { font-size: 0.72rem; text-transform: uppercase; }
.cn-titre { margin: 0; font-weight: 700; }
.cn-note { margin: 4px 0; font-style: italic; color: var(--texte-2); }
.carte-membre { border-radius: 18px; overflow: hidden; background: linear-gradient(150deg, #014182, #0B5CB0 70%, #F18800 160%); color: #fff; box-shadow: 0 10px 30px rgba(1,65,130,0.35); }
.cm-tete { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.cm-asso { margin: 0; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.02em; }
.cm-dept { margin: 0; font-size: 0.85rem; opacity: 0.9; }
.cm-corps { display: flex; align-items: center; gap: 12px; padding: 10px 16px 14px; }
.cm-avatar { width: 58px; height: 58px; border-radius: 29px; background: var(--orange); color: #1A1100; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; flex-shrink: 0; }
.cm-nom { margin: 0; font-size: 1.25rem; font-weight: 900; }
.cm-pole, .cm-depuis { margin: 2px 0 0; font-size: 0.86rem; opacity: 0.95; }
.cm-qr { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.12); font-size: 0.78rem; line-height: 1.3; }
.cm-qr svg { width: 92px; height: 92px; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 4px; }
.bandeau-action { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin: 10px 0; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--vig3-bord); background: var(--vig3-fond); color: var(--texte); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.celebration { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.celebration i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; animation: confetti 2.2s ease-in forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(540deg); opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .celebration { display: none; } }

/* ---------- 1.13 : réactions, photo de profil, l'association, mon année */
.reactions { display: flex; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.reaction { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; min-width: 48px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-size: 1.05rem; cursor: pointer; transition: transform 0.12s; }
.reaction:active { transform: scale(0.92); }
.reaction.active { border-color: var(--orange); background: var(--vig3-fond); }
.r-n { font-size: 0.85rem; font-weight: 800; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; }
.avatar-bouton { position: relative; border: 0; cursor: pointer; font: inherit; padding: 0; overflow: visible; }
.avatar-modif { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 13px; background: var(--surface); color: var(--bleu-texte); border: 2px solid var(--fond); display: flex; align-items: center; justify-content: center; }
.avatar-modif .ic { width: 14px; height: 14px; }
.photo-profil { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.avatar.tres-grand { width: 120px; height: 120px; border-radius: 60px; font-size: 2.4rem; display: flex; align-items: center; justify-content: center; background: var(--orange); color: #1A1100; font-weight: 900; }
.cm-avatar { overflow: hidden; }
.asso-tete { display: flex; align-items: center; gap: 14px; }
.asso-nom { margin: 0; font-weight: 900; font-size: 1.15rem; }
.asso-chiffres div { background: var(--surface-2); color: var(--texte); }
.texte-long { white-space: pre-line; line-height: 1.55; }
ol.frise-asso { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--orange); }
.frise-asso li { position: relative; padding: 6px 0 10px 14px; }
.frise-asso li::before { content: ""; position: absolute; left: -22px; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); border: 3px solid var(--fond); }
.frise-asso strong { display: block; color: var(--bleu-texte); }
ul.poles-asso { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.poles-asso a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--surface-2); color: var(--texte); text-decoration: none; font-weight: 700; }
.recit { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
.recit::-webkit-scrollbar { display: none; }
.recit-carte { flex: 0 0 86%; scroll-snap-align: center; min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px 22px; border-radius: 22px; color: #fff; background: linear-gradient(160deg, #014182, #0B5CB0); box-shadow: 0 8px 22px rgba(1,65,130,0.3); }
.recit-carte.rc1 { background: linear-gradient(160deg, #9A4A00, #D97706); }
.recit-carte.rc2 { background: linear-gradient(160deg, #166534, #1E7B3A); }
.recit-carte.rc3 { background: linear-gradient(160deg, #5B3F8F, #7C5BB5); }
.recit-carte.rc4 { background: linear-gradient(160deg, #8E1B4A, #B4235F); }
.recit-carte p { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.rc-titre { font-weight: 800; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem !important; }
.ra-grand { font-size: 4.2rem !important; font-weight: 900; line-height: 1 !important; font-variant-numeric: tabular-nums; }
.ra-grand.ra-mot { font-size: 2.6rem !important; text-transform: capitalize; }
ul.ra-liste { list-style: none; margin: 0; padding: 0; font-size: 1.3rem; }
.ra-liste strong { font-size: 2rem; margin-right: 8px; }
.rc-pied { margin-top: auto !important; font-size: 0.8rem !important; opacity: 0.8; text-align: right; }
.recit-carte .bouton.principal { background: #fff; color: var(--bleu); border-color: #fff; align-self: flex-start; margin-top: 10px; }

/* ---------- 1.13 : près de chez moi, carte des activités, Mon espace repliable */
.mc-distance { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 800; color: var(--bleu-texte); background: var(--surface-2); border-radius: 10px; padding: 1px 8px; }
.carte-activites svg { width: 100%; max-height: 62vh; display: block; margin: 8px auto; }
.ca-dept { fill: var(--surface-2); stroke: var(--bleu); stroke-width: 1.2; stroke-linejoin: round; }
.ca-point { fill: var(--bleu); stroke: #fff; stroke-width: 0.8; }
.ca-point.manque { fill: var(--orange); }
.ca-n { fill: #fff; font-weight: 900; pointer-events: none; }
.ca-maison circle { fill: #1E7B3A; stroke: #fff; stroke-width: 0.8; }
.ca-maison text { fill: var(--texte); font-weight: 800; }
.ca-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.85rem; color: var(--texte-2); }
.ca-pt { display: inline-block; width: 12px; height: 12px; border-radius: 6px; background: var(--bleu); margin-right: -6px; }
.ca-pt.manque { background: var(--orange); } .ca-pt.maison { background: #1E7B3A; }
details.repliable > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
details.repliable > summary::-webkit-details-marker { display: none; }
details.repliable > summary h2 { margin: 0; }
details.repliable > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--texte-2); border-bottom: 2.5px solid var(--texte-2); transform: rotate(45deg); transition: transform 0.15s; margin-right: 6px; }
details.repliable[open] > summary::after { transform: rotate(-135deg); }
details.repliable[open] > summary { margin-bottom: 8px; }

/* ---------- 1.13 : pilotage (graphiques, sous-effectif) */
svg.graphe { width: 100%; height: auto; display: block; }
.g-passe { fill: var(--surface-2); }
.g-lib { fill: var(--texte-2); font-size: 9px; font-weight: 700; }
.compte .hausse { color: var(--vert); font-weight: 800; } .compte .baisse { color: #B42318; font-weight: 800; }
.heatmap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
@media (max-width: 360px) { .heatmap { gap: 3px; margin-left: -12px; margin-right: -12px; } .hm-jour { min-height: 40px; } }
.hm-tete { text-align: center; font-size: 0.75rem; font-weight: 800; color: var(--texte-2); }
.hm-jour { position: relative; min-width: 0; aspect-ratio: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--bord); background: color-mix(in srgb, var(--orange) calc(var(--k) * 85%), var(--surface)); color: var(--texte); font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hm-jour b, .hm-jour span { font-size: 0.78rem; background: var(--surface); color: var(--texte); border-radius: 8px; padding: 0 5px; }
.hm-jour b { font-size: 0.72rem; }
.hm-jour.choisi { outline: 3px solid var(--bleu); outline-offset: 1px; }
.ce-chiffres.sante div { background: var(--surface-2); color: var(--texte); }

/* ---------- 1.13 : mode simple, question du jour, main courante, bien rentré */
.ms-bonjour { font-size: 1.8rem; margin: 18px 0 8px; }
.ms-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ms-bouton { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px; padding: 16px; border-radius: 22px; border: 0; background: var(--bleu); color: #fff; font: inherit; font-size: 1.25rem; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(1,65,130,0.25); }
.ms-bouton .ic { width: 44px; height: 44px; }
.ms-bouton small { display: block; font-size: 0.9rem; font-weight: 700; opacity: 0.92; }
.ms-bouton.orange { background: #9A4A00; } .ms-bouton.rouge { background: #A11D16; }
.question-jour .qj-question { font-weight: 800; font-size: 1.1rem; }
.qj-choix { display: grid; gap: 8px; }
.qj-choix .bouton { justify-content: flex-start; text-align: left; white-space: normal; }
.qj-resultat { font-weight: 800; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.qj-resultat.juste { background: var(--vert-fond); }
.qj-explication { margin: 6px 0; }
ol.mainc-fil { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--bord); }
.mainc-fil li { position: relative; padding: 8px 0 12px 14px; }
.mainc-fil li::before { content: ""; position: absolute; left: -22px; top: 13px; width: 13px; height: 13px; border-radius: 50%; background: var(--bleu); border: 3px solid var(--fond); }
.mainc-fil li.mc-decision::before { background: var(--orange); } .mainc-fil li.mc-moyens::before { background: #1E7B3A; }
.mainc-fil p { margin: 4px 0; }
.mc-heure { font-weight: 800; margin-right: 8px; font-variant-numeric: tabular-nums; }
.choix-ligne { display: flex; gap: 10px; align-items: center; }
.choix-ligne input[type="text"], .choix-ligne input:not([type]) { flex: 1; }
.rentre { text-align: center; padding: 28px 18px; }
.lien-copie input { width: 100%; }

/* ---------- 1.14 : télécommande des écrans, connexion avec QG */
.cibles { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.cibles .puce { flex: 0 0 auto; }
.cibles .puce[aria-checked="true"] { background: var(--bleu); color: #fff; border-color: var(--bleu); }
ul.tc-ecrans { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-ecrans li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--bord); }
.tc-etat { width: 12px; height: 12px; border-radius: 6px; background: #B42318; margin-top: 6px; flex-shrink: 0; }
.tc-etat.en-ligne { background: #1E7B3A; box-shadow: 0 0 0 4px color-mix(in srgb, #1E7B3A 25%, transparent); }
.tc-nom { margin: 0; font-weight: 800; } .tc-nom small { font-weight: 600; color: var(--texte-2); }
.tc-ecrans p { margin: 2px 0; }
.tc-ack { font-size: 0.85rem; color: var(--texte-2); } .tc-ack.ok { color: var(--vert); font-weight: 700; }
.tc-pave { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; margin: 6px 0 14px; }
.tc-gros { min-height: 72px; border-radius: 18px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-size: 1.6rem; font-weight: 900; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tc-gros .ic { width: 32px; height: 32px; }
.tc-gros.principal { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.tc-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tc-bouton { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; font-size: 0.85rem; font-weight: 700; text-align: center; cursor: pointer; }
.tc-bouton .ic { width: 26px; height: 26px; color: var(--bleu-texte); }
.tc-gros:active, .tc-bouton:active { transform: scale(0.96); }
.connexion-app { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 18px; }
.connexion-app .bouton { width: 100%; }

.code-liaison { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.12em; text-align: center; color: var(--bleu-texte); font-variant-numeric: tabular-nums; margin: 12px 0; }

.puce-present { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--surface-2); font-weight: 700; }
