/* =============================================================================
   Terrariums — feuille de style.
   -----------------------------------------------------------------------------
   Un seul fichier, aucune dépendance. Les couleurs sont des jetons définis sur
   :root en clair, redéfinis en sombre par prefers-color-scheme : aucun composant
   ne connaît une couleur en dur (sauf l'illustration du socle, qui a les
   siennes). Langage visuel : blanc, gris chauds, noir, grands chiffres fins
   (Inter) ; l'orange et le bleu sont réservés aux deux zones.
   ============================================================================= */

/* La police n'est pas préchargée depuis index.html : la feuille, chargée en
   tête, la découvre aussitôt, et Firefox signalait le préchargement comme
   « inutilisé » quand l'agent de service servait la page. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(polices/inter-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  /* Surfaces */
  --fond: #ffffff;
  --carte: #f6f6f4;
  --creux: #efefec;          /* boutons ronds, puces, segments */
  --champ: #ffffff;          /* champs de saisie, dans les cartes */
  --ligne: #e6e6e3;
  --ligne-forte: #c9ccd0;

  /* Texte */
  --texte: #121315;
  --texte-2: #5f6368;
  --texte-3: #6b7075;

  /* Bouton principal noir ; états contrastés ≥ 4,5:1 sur leur fond (vérifié par axe) */
  --accent: #121315;
  --accent-texte: #ffffff;
  --accent-doux: #e8f3ed;
  --ok: #1e7f4f;
  --ok-texte: #17683f;       /* sur --accent-doux : 5,7:1 */
  --attention: #9a4a07;
  --attention-doux: #fdf1df;
  --danger: #b42318;
  --danger-texte: #ffffff;   /* sur --danger */
  --danger-doux: #fbedeb;
  --focus: #2f6fdb;

  /* Zones : chaud en orange, frais en bleu. Pastilles, jauges, lueurs et
     courbes ; jamais le petit texte. */
  --zone-1: #e0661c;
  --zone-2: #2f6fdb;
  /* Frise de la journée (plages horaires) : jour, pic de chaleur, nuit. */
  --frise-jour: #f4efe5;
  --frise-chaud: #f6d3bc;
  --frise-nuit: #1f2024;

  --rayon: 20px;
  --rayon-petit: 12px;
  --flou: saturate(1.4) blur(14px);

  accent-color: var(--accent);
}

/* Le thème suit le téléphone, sauf choix dans les réglages de l'application
   (data-theme sur la racine) : les mêmes jetons sombres servent aux deux cas. */
:root[data-theme="clair"] { color-scheme: light; }
:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #0d0e10;
  --carte: #17181b;
  --creux: #232428;
  --champ: #1d1e22;
  --ligne: #2a2b30;
  --ligne-forte: #44464d;
  --texte: #f2f2f0;
  --texte-2: #a7abb0;
  --texte-3: #93989e;
  --accent: #f2f2f0;
  --accent-texte: #121315;
  --accent-doux: #173327;
  --ok: #3ccf8e;
  --ok-texte: #3ccf8e;
  --attention: #fbbf24;
  --attention-doux: #332a12;
  --danger: #f97066;
  --danger-texte: #121315;
  --danger-doux: #3a1d1d;
  --focus: #6c9cf0;
  --zone-1: #f08a4b;
  --zone-2: #6c9cf0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0d0e10;
    --carte: #17181b;
    --creux: #232428;
    --champ: #1d1e22;
    --ligne: #2a2b30;
    --ligne-forte: #44464d;
    --texte: #f2f2f0;
    --texte-2: #a7abb0;
    --texte-3: #93989e;
    --accent: #f2f2f0;
    --accent-texte: #121315;
    --accent-doux: #173327;
    --ok: #3ccf8e;
    --ok-texte: #3ccf8e;
    --attention: #fbbf24;
    --attention-doux: #332a12;
    --danger: #f97066;
    --danger-texte: #121315;
    --danger-doux: #3a1d1d;
    --focus: #6c9cf0;
    --zone-1: #f08a4b;
    --zone-2: #6c9cf0;
    --frise-jour: #4a463d;
    --frise-chaud: #6e4a34;
    --frise-nuit: #2b2d33;
  }
}

/* ------------------------------------------------------------------- base */
html { background: var(--fond); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; color: var(--texte-2); }
code {
  background: var(--creux); padding: 1px 6px; border-radius: 6px;
  font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.ico { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

main, header, section, article, form, nav, div, label, input, select, button, canvas, dialog, video {
  box-sizing: border-box;
}

/* ----------------------------------------------------------------- en-tête */
#entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--fond);
  background: color-mix(in oklab, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou);
}
.etat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--texte-2);
  padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--creux);
  white-space: nowrap;
}
.etat::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--texte-3);
}
.etat.ok::before { background: var(--ok); }
.etat.ko { color: var(--danger); }
.etat.ko::before { background: var(--danger); }
.etat.attente::before { background: var(--attention); }

/* ----------------------------------------------------------------- mise en page */
main {
  max-width: 1040px; margin: 0 auto;
  padding: 6px 16px 24px;
}
.vue { display: none; }               /* l'application affiche la vue active (display: block) */
.vue > * + *, .pile > * + *, #detail > * + * { margin-top: 14px; }
.mt { margin-top: 14px; }
.deux > * + * { margin-top: 14px; }
[tabindex="-1"]:focus { outline: none; }
#vue-broker .carte { max-width: 560px; margin-inline: auto; }
.pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.carte {
  background: var(--carte);
  border-radius: var(--rayon);
  padding: 18px;
}
.carte > h2 { margin-bottom: 4px; }
.carte > h2 + .aide { margin-top: 2px; margin-bottom: 10px; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aide { color: var(--texte-2); font-size: 13px; line-height: 1.5; }
.aide + .aide { margin-top: 4px; }
p.aide { margin-top: 10px; }
.discret { color: var(--texte-3); font-size: 12px; }
.separe { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.separe:empty { display: none; }

/* ----------------------------------------------------------------- pastilles */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--creux); color: var(--texte-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.ok { background: var(--accent-doux); color: var(--ok); }
.badge.ko { background: var(--danger-doux); color: var(--danger); }
.badge.warn { background: var(--attention-doux); color: var(--attention); }
.badge.neutre::before { display: none; }

/* ----------------------------------------------------------------- boutons ronds */
.rond {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: var(--creux); color: var(--texte); cursor: pointer;
  transition: transform .08s ease, background .12s ease;
}
.rond .ico { width: 22px; height: 22px; }
.rond:active { transform: scale(.95); }
.rond:focus-visible, .rond-lib:focus-visible .rond { outline: 3px solid var(--focus); outline-offset: 2px; }
.rond-lib {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; background: none; border: 0; color: var(--texte);
  font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer;
}
.rond-lib:focus-visible { outline: none; }
.rond-lib .rond { width: 60px; height: 60px; }
.rond-lib .rond .ico { width: 24px; height: 24px; }
.commandes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.commandes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----------------------------------------------------------------- liste des socles */
.titre-page { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.titre-page h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.bandeau-attention {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--danger-doux); color: var(--danger); font-weight: 500;
}
#bandeau-liste:empty { display: none; }
#socles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.socle { cursor: pointer; display: flex; flex-direction: column; gap: 14px; transition: transform .12s ease; }
.socle:hover { transform: translateY(-1px); }
.socle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.socle.alerte { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--danger) 40%, transparent); }
.socle-tete { display: flex; align-items: center; gap: 14px; }
.socle-tete .ill { width: 84px; height: 80px; flex: none; }
.socle-titre { flex: 1; min-width: 0; }
.socle-titre h2 { font-size: 18px; overflow-wrap: anywhere; }
.socle-tete > .ico { color: var(--texte-2); width: 18px; height: 18px; }
.socle-zones, .zones-accueil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.socle-zones { padding-top: 12px; border-top: 1px solid var(--ligne); }
.zl, .zone-accueil { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nom {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nom::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--zone-1); flex: none; }
.nom[data-zone="1"]::before { background: var(--zone-2); }
.moyen { font-size: 34px; font-weight: 200; letter-spacing: -.03em; line-height: 1.1; }
.grand { font-size: clamp(48px, 15vw, 60px); font-weight: 200; letter-spacing: -.035em; line-height: 1.05; }
.panne { color: var(--danger); }
.sous { font-size: 13px; color: var(--texte-2); }
.sous.ko { color: var(--danger); font-weight: 500; }
.conseil { color: var(--texte-2); font-size: 12px; line-height: 1.4; margin-top: 2px; white-space: normal; }
.zl .squelette, .zone-accueil.squelette { padding: 8px 0; }

/* La ligne d'état : une pastille, une phrase. */
.ligne-etat { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--texte-2); margin-top: 4px; }
.ligne-etat::before { content: ""; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: var(--ok); flex: none; }
.ligne-etat.ko { color: var(--danger); font-weight: 500; }
.ligne-etat.ko::before { background: var(--danger); }
.ligne-etat.warn::before { background: var(--attention); }
.ligne-etat span { display: inline-block; }
.ligne-etat span::first-letter { text-transform: uppercase; }
.ligne-etat.centre { justify-content: center; margin: 0; }
.ligne-etat.eteint::before { background: var(--texte-3); }

/* ----------------------------------------------------------------- accueil d'un socle */
.accueil > * + * { margin-top: 18px; }
.accueil-tete h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.accueil-tete .separe { margin-top: 8px; }
.hors-ligne { background: var(--attention-doux); color: var(--attention); }
.hors-ligne .aide { color: inherit; }
/* Socle muet : la carte dit quoi faire, le reste passe au gris. */
.hors-ligne h2 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.etapes-hl { padding-left: 22px; margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.etapes-hl li + li { margin-top: 6px; }
.etapes-hl + .aide { margin-top: 12px; }
.boutons.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boutons.deux .btn { justify-content: center; text-align: center; text-decoration: none; }
.accueil.eteint .illustration { filter: grayscale(1); opacity: .55; }
.zone-accueil.eteinte .grand, .zone-accueil.eteinte .sous { color: var(--texte-3); }
.rubrique.inactive strong, .rubrique.inactive > .ico { color: var(--texte-3); }
.rubrique.inactive:hover { background: none; }
.rond-lib[aria-disabled="true"] { opacity: .5; }
.illustration { display: flex; justify-content: center; }
.illustration .ill { width: 100%; max-width: 342px; height: auto; }
.zone-accueil {
  padding: 8px 4px; margin: -4px; border: 0; border-radius: 14px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.zone-accueil:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.zone-accueil .nom { font-size: 14px; font-weight: 500; color: var(--texte); }
.zone-accueil .sous { font-size: 14px; }
.zone-accueil .badge { align-self: flex-start; margin-top: 4px; }
.jauge { display: block; width: 100%; height: 4px; margin-top: 8px; }
.jauge rect { fill: var(--ligne); }
.jauge rect + rect { fill: var(--zone-1); opacity: .45; }
.jauge.active rect + rect { opacity: 1; }
[data-z="1"] .jauge rect + rect { fill: var(--zone-2); }
.etat-zone { font-size: 13px; font-weight: 500; margin-top: 4px; }
.etat-zone.calme { color: var(--texte-2); }
.etat-zone.ko { color: var(--danger); }
.commandes { margin-top: 26px; }
.rubriques { margin: 26px -16px 0; border-bottom: 1px solid var(--ligne); }
.rubrique {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 68px;
  padding: 12px 16px; border: 0; border-top: 1px solid var(--ligne);
  background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer;
}
.rubrique > .ico { width: 24px; height: 24px; }
.rubrique > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rubrique strong { font-size: 16px; font-weight: 500; }
.rubrique small { font-size: 14px; color: var(--texte-2); }
.rubrique small:empty { display: none; }
.rubrique > .ico:last-child { color: var(--texte-2); width: 18px; height: 18px; }
.rubrique:hover { background: var(--carte); }
.rubrique:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* L'illustration du socle : couleurs propres, lueur des zones animée. */
.ill .i0 { fill: #121315; opacity: .07; }
.ill .i1 { fill: #2b2c30; }
.ill .i2 { fill: #1b1c1f; }
.ill .i3 { fill: #101113; }
.ill .i4 { fill: #060707; }
.ill .i5 { stroke: var(--zone-1); stroke-width: 1.6; stroke-linecap: round; }
.ill .i6 { fill: #e2d9c9; }
.ill .i7 { fill: #d6ccba; }
.ill .i8 { fill: #f2ede4; }
.ill .i9 { fill: #dce6ee; stroke: #b4c2cf; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ill .i10 { fill: var(--danger); fill-opacity: .12; stroke: var(--danger); stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ill .v { fill: #eef2f6; fill-opacity: .3; }
.ill .ar { fill: none; stroke: #aeb4ba; stroke-width: 1.3; stroke-linejoin: round; }
.ill.petite .ar { stroke-width: 3; }
.ill .lz0 stop { stop-color: var(--zone-1); }
.ill .lz1 stop { stop-color: var(--zone-2); }
.ill .zc0, .ill .zc1, .ill .zo { fill: none; stroke-width: 1.2; stroke-dasharray: 5 5; }
.ill .zc0 { stroke: var(--zone-1); }
.ill .zc1 { stroke: var(--zone-2); }
.ill .zo { stroke: #b3b8bf; }
.lueur { animation: lueur 3.4s ease-in-out infinite; }
@keyframes lueur { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* ----------------------------------------------------------------- feuilles */
.feuille-panneau { animation: glisse .22s ease-out; }
@keyframes glisse { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.feuille-tete { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; }
.feuille-tete > div { text-align: center; min-width: 0; }
.feuille-tete h2 { overflow-wrap: anywhere; }
.feuille-tete .rond { background: none; }
.feuille-panneau > .pile { margin-top: 10px; }

/* Une zone, façon climatisation. */
.clim { display: flex; flex-direction: column; gap: 16px; }
.reglage-cible { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reglage-cible > div { text-align: center; }
.reglage-cible .aide { margin-top: 8px; }
.grand-rond { width: 64px; height: 64px; }
.grand-rond .ico { width: 28px; height: 28px; }
.cible-geante { font-size: clamp(64px, 22vw, 88px); font-weight: 200; letter-spacing: -.04em; line-height: 1; }
.cible-geante span { font-size: .45em; vertical-align: top; margin-left: 2px; letter-spacing: 0; }
.segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--creux); }
.segment button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 0; border-radius: 12px; background: transparent; color: var(--texte);
  font: inherit; font-weight: 500; cursor: pointer;
}
.segment button[aria-pressed="true"] { background: var(--fond); box-shadow: 0 1px 3px rgba(18, 19, 21, .14); }
.segment button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ensuite { font-size: 14px; color: var(--texte-2); text-align: center; }
.clim .commandes { margin-top: 10px; }

/* ----------------------------------------------------------------- formulaires */
label { display: block; font-size: 13px; font-weight: 500; color: var(--texte-2); margin: 10px 0 4px; }
label:first-child { margin-top: 0; }
input, select {
  width: 100%; min-height: 48px;
  background: var(--champ); color: var(--texte);
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit);
  padding: 10px 12px; font: inherit; font-size: 16px;        /* 16px : évite le zoom iOS */
}
input::placeholder { color: var(--texte-3); }
input:focus-visible, select:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 25%, transparent);
}
.rangee { display: grid; gap: 8px 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.rangee label { margin-top: 0; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.boutons .btn { margin-top: 0; }
.rangee + .btn, .rangee + .boutons, .aide + .btn, .aide + .boutons { margin-top: 14px; }

button { font: inherit; }
.btn {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  background: var(--accent); color: var(--accent-texte);
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: filter .12s ease, transform .08s ease;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-secondaire { background: var(--creux); color: var(--texte); }
.carte .btn-secondaire { background: var(--fond); box-shadow: inset 0 0 0 1px var(--ligne-forte); }
.btn-secondaire:hover { filter: none; background: var(--ligne); }
.btn-danger { background: var(--danger-doux); color: var(--danger); }
.btn-fantome { background: transparent; color: var(--texte-2); padding-inline: 10px; }
.btn-plein { width: 100%; }
.btn-petit { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.retour { margin: 2px 0 6px; }

/* Interrupteur : une case à cocher native, redessinée. Le clavier, le focus et
   la sémantique restent ceux du navigateur. */
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 15px; color: var(--texte); min-height: 48px; }
.interrupteur input {
  appearance: none; -webkit-appearance: none;
  width: 50px; height: 30px; min-height: 0; margin: 0; padding: 0; flex: none;
  border-radius: 999px; background: var(--ligne-forte); border: 0; cursor: pointer;
  position: relative; transition: background .18s ease;
}
.interrupteur input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.interrupteur input:checked { background: var(--accent); }
.interrupteur input:checked::after { transform: translateX(20px); background: var(--accent-texte); }
.interrupteur input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ----------------------------------------------------------------- détails */
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
/* Un nom d'hôte long ne pousse plus la tuile hors d'un écran étroit. */
.stat div { background: var(--fond); border-radius: 12px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.stat-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .stat-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat b { display: block; font-size: 17px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--texte-2); }
.titre-zone { display: flex; align-items: center; gap: 8px; }
.titre-zone::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--zone-1); }
.titre-zone[data-zone="1"]::before { background: var(--zone-2); }
.derive { color: var(--attention); font-weight: 600; font-size: 12px; }

/* Courbes */
.durees { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.durees .btn { min-height: 38px; padding: 6px 14px; font-size: 13px; margin: 0; }
#courbe { width: 100%; height: 260px; display: block; border-radius: 14px; background: var(--fond); }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--texte-2); }
.legende i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--zone-1); vertical-align: middle; margin-right: 5px; }
.legende i[data-zone="1"] { background: var(--zone-2); }

/* ----------------------------------------------------------------- message */
#message {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  width: min(92vw, 520px);
  background: var(--texte); color: var(--fond);
  padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  transition: transform .22s ease, opacity .22s ease;
}
#message.visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#message .btn { background: var(--fond); color: var(--texte); min-height: 34px; padding: 6px 14px; font-size: 13.5px; margin-left: auto; }
#message.erreur { background: var(--danger); color: var(--danger-texte); }
/* Envoi en cours : un anneau qui tourne avant le texte (immobile si le
   mouvement est réduit, le texte suffit). */
#message.envoi::before {
  content: ""; width: 16px; height: 16px; flex: none; box-sizing: border-box;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne .9s linear infinite;
}
@media (prefers-reduced-motion: reduce) { #message.envoi::before { animation: none; } }

/* ----------------------------------------------------------------- scanner */
dialog.scan {
  border: 0; border-radius: var(--rayon); padding: 12px; background: var(--fond); color: var(--texte);
  width: min(92vw, 480px); box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
dialog.scan::backdrop { background: rgba(0, 0, 0, .55); }
dialog.scan video { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: #000; object-fit: cover; }

/* ----------------------------------------------------------------- squelettes */
/* Pendant l'attente des premières données : des formes grises qui respirent,
   plutôt qu'un texte « chargement » ou une carte vide. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.os {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--ligne) 25%, var(--carte) 50%, var(--ligne) 75%);
  background-size: 200% 100%;
  animation: respiration 1.4s ease-in-out infinite;
}
.os-1 { width: 55%; }
.os-2 { width: 70%; height: 30px; margin-top: 8px; border-radius: 9px; }
.os-3 { width: 85%; margin-top: 10px; }
.squelette .titre { color: transparent; }
.squelette .temp { margin-top: 0; }
.squelette-bloc { padding: 4px 0; }
.squelette-bloc .os + .os { margin-top: 12px; }
@keyframes respiration { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Écran vide : une illustration sobre et une phrase d'invitation. */
.etat-vide { text-align: center; padding: 28px 16px; }
.etat-vide > .ill { width: 150px; height: 100px; display: block; margin: 0 auto 10px; }
.etat-vide h2 { margin-bottom: 6px; }
.etat-vide .aide { max-width: 360px; margin: 0 auto; }

/* ----------------------------------------------------------------- dialogues */
dialog.feuille {
  border: 0; border-radius: var(--rayon); padding: 22px; background: var(--fond); color: var(--texte);
  width: min(92vw, 440px); box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
dialog.feuille.large { width: min(94vw, 720px); }
dialog.feuille::backdrop { background: rgba(0, 0, 0, .5); }
dialog.feuille h2 { margin-bottom: 6px; }
dialog.feuille[open] { animation: apparition .16s ease-out; }
dialog.feuille:not([open]) { display: none; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boutons.fin { justify-content: flex-end; margin-top: 18px; }
.rapport, .bloc-texte {
  margin: 12px 0 0; padding: 12px; max-height: 50vh; overflow: auto;
  background: var(--creux); border-radius: var(--rayon-petit);
  font: 11.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
  color: var(--texte);
}

/* ----------------------------------------------------------------- pied de page */
.pied.colonne { flex-direction: column; align-items: stretch; gap: 6px; }
.pied-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pied-ligne > .discret { margin-right: auto; }
.pied-ligne.liens { font-size: 12.5px; color: var(--texte-2); gap: 4px 14px; padding: 4px 8px; }
.pied-ligne.liens a { color: var(--texte-2); }
.pied-ligne.liens a:hover { color: var(--texte); }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; }
label.inline select { width: auto; min-height: 36px; padding: 4px 28px 4px 10px; font-size: 13px; border-radius: 11px; }
a.btn { text-decoration: none; }

/* ----------------------------------------------------------------- assistance */
/* Onglet Service, carte Assistance : l'accès du support et les échanges. */
textarea {
  width: 100%; box-sizing: border-box; min-height: 80px; resize: vertical;
  background: var(--champ); color: var(--texte);
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit);
  padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.45;
}
textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 25%, transparent); }
.demande-support { margin-top: 10px; }
.demande-support > summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.demande-support form { margin-top: 8px; }
.fil-support { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fil-support li { max-width: 88%; padding: 10px 12px; border-radius: var(--rayon-petit); background: var(--fond); }
.fil-support li[data-de="client"] { margin-left: auto; background: var(--accent-doux); }
.fil-support p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Sur le vert pâle d'une bulle, le gris discret ne tient pas 4,5:1 : un cran plus foncé. */
.fil-support .discret { color: var(--texte-2); }

/* ----------------------------------------------------------------- santé */
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 8px; vertical-align: -1px; }
.signal i { width: 4px; border-radius: 1px; background: var(--ligne); }
.signal i:nth-child(1) { height: 5px; } .signal i:nth-child(2) { height: 8px; }
.signal i:nth-child(3) { height: 11px; } .signal i:nth-child(4) { height: 14px; }
.signal i.on { background: var(--ok); }

/* ----------------------------------------------------------------- tableau min/max */
table.minmax { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
table.minmax th, table.minmax td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--ligne); }
table.minmax th { font-weight: 600; color: var(--texte-2); font-size: 11.5px; }
table.minmax th:first-child, table.minmax td:first-child { text-align: left; }
table.minmax th.z1::before, table.minmax th.z2::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--zone-1); margin-right: 4px; vertical-align: 1px; }
table.minmax th.z2::before { background: var(--zone-2); }

/* ----------------------------------------------------------------- Service */
.liste-sondes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.liste-sondes b { font-weight: 600; overflow-wrap: anywhere; }
.sonde { grid-template-columns: minmax(0, 1fr) auto; margin-top: 10px; }
.sonde .bas .btn { margin-top: 0; }
.tableau-defile { overflow-x: auto; margin-top: 10px; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.tableau th, table.tableau td { padding: 6px 5px; text-align: right; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
table.tableau thead th { color: var(--texte-2); font-weight: 600; font-size: 11.5px; }
table.tableau th[scope="row"], table.tableau thead th:first-child { text-align: left; font-weight: 600; }
table.tableau tr.avec-defaut td { color: var(--danger); }

/* ----------------------------------------------------------------- bienvenue */
/* Sans broker : l'accueil, puis la connexion ou « chez moi seulement ». En-tête
   masqué sur l'accueil et dans l'assistant : ce sont des écrans pleins. */
body[data-vue="broker"][data-accueil="bienvenue"] #entete,
body[data-vue="broker"][data-accueil="chezMoi"] #entete,
body[data-vue="installation"] #entete {
  /* Masqué à l'œil, pas aux lecteurs d'écran : le titre de l'application reste le h1. */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.bienvenue { max-width: 560px; margin: 0 auto; padding-top: calc(16px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 12px; }
.bienvenue-ill svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.bienvenue-ill .lueur + .lueur { animation-delay: -1.7s; }
.titre-ecran { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.chapeau { font-size: 17px; line-height: 1.45; color: var(--texte-2); }
.actions-colonne { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.btn-grand { min-height: 54px; font-size: 16px; font-weight: 500; }
.bandeau-ok {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-doux); color: var(--ok-texte); font-size: 15px; font-weight: 500;
}
.chez-moi { max-width: 560px; margin-inline: auto; }
.chez-moi .ico.grande, .verrou .ico.grande { width: 34px; height: 34px; }
#form-broker #connexion-retour { display: flex; margin-inline: auto; }

/* ----------------------------------------------------------------- installation */
#vue-installation { max-width: 560px; margin: 0 auto; padding-top: env(safe-area-inset-top); }
#vue-installation > * + * { margin-top: 0; }
.inst-barre { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; }
.rond-nu { background: none; }
.inst-etape { text-align: center; font-size: 14px; font-weight: 500; color: var(--texte-2); }
.inst-progres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 8px 0; }
.inst-progres span { height: 4px; border-radius: 2px; background: var(--ligne); overflow: hidden; }
.inst-progres i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .45s ease; }
.inst-progres i[data-p="25"] { width: 25%; } .inst-progres i[data-p="50"] { width: 50%; }
.inst-progres i[data-p="75"] { width: 75%; } .inst-progres i[data-p="100"] { width: 100%; }
.inst-pas { display: flex; flex-direction: column; gap: 12px; padding: 24px 8px 0; min-height: calc(100vh - 90px); min-height: calc(100dvh - 90px); }
.inst-pas label { margin-top: 6px; }
.inst-pas .aide { margin-top: 0; }
.inst-actions { margin-top: auto; padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.info { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--texte-2); }
.info .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.info.attention { color: var(--attention); }
.sur-titre { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); margin-top: 6px; }

/* Étape 1 : le viseur, une étiquette penchée et une ligne qui balaie. */
.inst-viseur {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  height: 300px; margin-top: 8px; border: 0; border-radius: 24px; background: #1a1b1e; color: #fff;
  font: inherit; cursor: pointer; overflow: hidden;
}
.inst-viseur:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.inst-etiquette {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 168px; padding: 14px; border-radius: 12px;
  background: #fff; color: #121315; transform: rotate(-4deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.inst-etiquette .ico { width: 92px; height: 92px; }
.inst-etiquette b { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.inst-etiquette small { font-size: 11px; color: #5f6368; font-variant-numeric: tabular-nums; }
.inst-coins { position: absolute; inset: 34px calc(50% - 116px) 66px; border-radius: 14px; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) top left / 34px 4px no-repeat, linear-gradient(#fff, #fff) top left / 4px 34px no-repeat,
    linear-gradient(#fff, #fff) top right / 34px 4px no-repeat, linear-gradient(#fff, #fff) top right / 4px 34px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 34px 4px no-repeat, linear-gradient(#fff, #fff) bottom left / 4px 34px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 34px 4px no-repeat, linear-gradient(#fff, #fff) bottom right / 4px 34px no-repeat; }
.inst-balayage { position: absolute; left: calc(50% - 100px); top: 44px; width: 200px; height: 2px; border-radius: 1px;
  background: var(--zone-1); box-shadow: 0 0 12px var(--zone-1); animation: balayage 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes balayage { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(170px); } }
.inst-viseur-lib { position: relative; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); }

/* Étape 2 : le réseau du socle, les consignes, le suivi en direct. */
.inst-ap { padding: 16px; border-radius: 20px; background: var(--carte); display: flex; flex-direction: column; gap: 8px; }
.inst-ap-nom { display: flex; align-items: center; gap: 12px; font-size: 16px; overflow-wrap: anywhere; }
.inst-ap-nom strong { flex: 1; min-width: 0; font-weight: 600; }
.inst-ap-nom .ico { width: 22px; height: 22px; flex: none; }
.inst-etapes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4; }
.inst-etapes li { display: flex; gap: 12px; align-items: flex-start; }
.inst-etapes li > span:first-child { width: 28px; height: 28px; border-radius: 50%; background: var(--creux); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; margin-top: -3px; }
.inst-suivi { list-style: none; margin: 6px 0 0; padding: 0; border-bottom: 1px solid var(--ligne); }
.inst-suivi li { display: flex; align-items: center; gap: 14px; min-height: 52px; border-top: 1px solid var(--ligne); font-size: 16px; }
.inst-suivi li svg { width: 24px; height: 24px; flex: none; }
.inst-suivi .lib { flex: 1; }
.inst-suivi .detail { font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; text-align: right; }
.inst-suivi .attente .lib, .inst-suivi .passe .lib { color: var(--texte-2); }
.coche circle { fill: var(--ok); } .coche path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-suivi .fait svg { animation: apparait .3s ease both; }
@keyframes apparait { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.rouet circle, .anneau circle { fill: none; stroke: var(--ligne); stroke-width: 2.5; }
.rouet path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.rouet { animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.pastille-alerte, .pastille-ico { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.pastille-alerte { background: var(--danger-doux); color: var(--danger); }
.pastille-ico { width: 40px; height: 40px; background: var(--creux); }
.pastille-alerte .ico, .pastille-ico .ico { width: 22px; height: 22px; }
.inst-pistes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ligne); }
.inst-pistes li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); font-size: 15px; line-height: 1.4; }
.inst-pistes .ico { width: 20px; height: 20px; flex: none; }

/* Étape 3 : une grille zone × jour/nuit, des pilules à taper. */
.inst-grille { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px; align-items: center; margin-top: 10px; border-bottom: 1px solid var(--ligne); }
.inst-grille > * { min-height: 60px; border-top: 1px solid var(--ligne); display: flex; align-items: center; justify-content: center; }
.inst-grille > .inst-zone { justify-content: flex-start; }
.inst-grille > :nth-child(-n+3) { min-height: 0; border-top: 0; padding-bottom: 8px; }
.inst-grille .col-tete { justify-content: center; gap: 6px; font-size: 13px; color: var(--texte-2); }
.inst-grille .col-tete .ico { width: 14px; height: 14px; }
.inst-zone { gap: 8px; min-width: 0; }
.pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--zone-1); flex: none; }
.pastille.z2 { background: var(--zone-2); }
input.nom-zone { min-height: 44px; padding: 8px 6px; border-color: transparent; background: transparent; font-weight: 500; }
input.nom-zone:hover { border-color: var(--ligne); }
input.pilule { width: 80px; min-height: 44px; padding: 0 6px; border-radius: 22px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.inst-horaires { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.inst-horaires legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--texte-2); }

/* Fin : la courbe des premières minutes et les alertes. */
.inst-courbe { margin: 8px 0 0; padding: 16px; border-radius: 20px; background: var(--carte); display: flex; flex-direction: column; gap: 10px; }
.inst-courbe figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.inst-courbe figcaption > span { display: inline-flex; align-items: center; gap: 6px; }
.inst-courbe svg { width: 100%; height: auto; display: block; overflow: visible; }
.inst-courbe line { stroke: var(--ligne); stroke-width: 1; }
.inst-courbe text { font-size: 11px; fill: var(--texte-2); }
.inst-courbe .trace { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: trace 1.8s ease-out both; }
.inst-courbe .trace.z1, .inst-courbe .point.z1 { stroke: var(--zone-1); } .inst-courbe .point.z1 { fill: var(--zone-1); }
.inst-courbe .trace.z2, .inst-courbe .point.z2 { stroke: var(--zone-2); } .inst-courbe .point.z2 { fill: var(--zone-2); }
.inst-courbe .point { stroke: var(--carte); stroke-width: 2; animation: apparait .3s ease 1.7s both; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.inst-notifs { margin-top: 6px; padding: 16px; border-radius: 20px; border: 1px solid var(--ligne); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.inst-notifs strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.inst-notifs .btn { grid-column: 1 / -1; }
.inst-notifs .btn.actif { background: var(--accent-doux); color: var(--ok-texte); box-shadow: inset 0 0 0 1.5px var(--ok); }
@media (prefers-reduced-motion: reduce) {
  .inst-balayage, .rouet, .inst-courbe .trace, .inst-courbe .point, .inst-suivi .fait svg, .inst-progres i { animation: none; transition: none; }
}

/* ----------------------------------------------------------------- démonstration */
html #bandeau-demo {
  max-width: 1040px; margin: 10px auto 0; padding: 10px 16px;
  background: var(--attention-doux); color: var(--attention); border: 0; border-radius: 14px;
  font-size: 12.5px; line-height: 1.45;
}

/* ----------------------------------------------------------------- écrans larges */
@media (min-width: 760px) {
  main { padding: 10px 24px 32px; }
  #entete { padding-inline: max(24px, calc(50% - 496px)); }
  .accueil { max-width: 680px; margin-inline: auto; }
  .rubriques { margin-inline: 0; }
  .feuille-panneau { max-width: 960px; margin-inline: auto; }
  .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .deux > * + * { margin-top: 0; }
  #courbe { height: 320px; }
}

/* ----------------------------------------------------------------- préférences */
@media (prefers-reduced-motion: reduce) {
  .socle, .btn, .rond, .interrupteur input, .interrupteur input::after, #message { transition: none; }
  .os, dialog.feuille[open], .lueur, .feuille-panneau { animation: none; }
}
@media (forced-colors: active) {
  .carte, .btn, .rond, input, select, .rubrique { border: 1px solid CanvasText; }
  .segment button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .frise rect { fill: Canvas; stroke: CanvasText; stroke-width: 2px; }
  .frise rect.nuit { fill: GrayText; }
  .frise-maintenant { background: Highlight; }
  .option-radio:has(input:checked) { outline: 2px solid Highlight; }
}

/* ----------------------------------------------------------------- pages annexes */
/* Aide, mentions légales, installateur : des pages de lecture, même langage visuel. */
body[data-vue="page"] #entete h1 { font-size: 18px; }
main.page { max-width: 760px; }
main.page > * + * { margin-top: 14px; }
.prose { line-height: 1.6; }
.prose h2 { font-size: 18px; margin: 26px 0 8px; }
.prose h3 { font-size: 15px; color: var(--texte); margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--accent); }
.prose pre { background: var(--creux); padding: 12px; border-radius: var(--rayon-petit); overflow: auto; font-size: 12.5px; line-height: 1.5; }
.prose table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin-bottom: 12px; }
.prose th, .prose td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.prose th { color: var(--texte-2); font-weight: 600; }
.prose blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--attention); background: var(--attention-doux); color: var(--attention); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; }
.prose img { max-width: 100%; border-radius: var(--rayon-petit); }
.prose .sommaire { background: var(--creux); border-radius: var(--rayon-petit); padding: 12px 16px 12px 32px; font-size: 13.5px; }
.prose .sommaire li + li { margin-top: 2px; }
.prose .sommaire a { display: inline-block; padding: 4px 0; }
.etapes { padding-left: 22px; margin: 10px 0 0; line-height: 1.55; font-size: 14px; }
.etapes li + li { margin-top: 6px; }
.a-completer { background: var(--attention-doux); color: var(--attention); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
@media print {
  /* Toute page de lecture (aide, pages légales) s'imprime sans en-tête ni pied
     de site, sur fond blanc, texte noir : l'encre sert au contenu. */
  body[data-vue="page"] { background: #fff; color: #000; }
  body[data-vue="page"] #entete, body[data-vue="page"] .pied, .sans-impression { display: none !important; }
  body[data-vue="page"] main.page { max-width: none; padding: 0; margin: 0; }
  body[data-vue="page"] main.page > * + * { margin-top: 0; }
  body[data-vue="page"] .carte { box-shadow: none; border: 0; padding: 0; background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose th { color: #000; }
  .prose a { color: #000; }
  .prose .sommaire { background: none; padding-left: 30px; }
  .prose .discret { display: none; }
  @page { size: A4; margin: 12mm; }
}

.page-404 { text-align: center; padding: 40px 16px; }
.page-404 .code { font-size: 64px; font-weight: 700; letter-spacing: -.04em; color: var(--texte-3); line-height: 1; }
.boutons.centre { justify-content: center; }

/* ---- verrouillage par code ------------------------------------------------ */
.verrou { text-align: center; max-width: 420px; margin: 24px auto; }
.verrou .ico.grande { width: 40px; height: 40px; color: var(--accent); margin: 4px auto 8px; display: block; }
.verrou label { text-align: left; }
.verrou input { text-align: center; letter-spacing: 6px; font-size: 20px; }
.erreur-code { color: var(--danger); min-height: 1.2em; }

/* ---- compte sur un serveur Terrariums ---------------------------------------- */
.liste-cles { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.liste-cles li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--carte); border-radius: var(--rayon-petit); padding: 8px 10px; }
.liste-cles li > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.erreur-code:empty { display: none; }

/* ---- mise à jour du firmware ---------------------------------------------- */
.progression { display: block; width: 100%; height: 8px; margin-top: 8px; accent-color: var(--accent); }

/* ---- journal du socle ------------------------------------------------------ */
.aide.centre { text-align: center; }
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.puce {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--ligne-forte); border-radius: 20px;
  background: var(--fond); color: var(--texte); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.puce[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.puce:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.journal-jour {
  margin: 0; padding: 14px 0 6px; border-top: 1px solid var(--ligne);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2);
}
.journal > .journal-jour:first-child { border-top: 0; }
.journal-ligne { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.journal-heure { width: 44px; flex: none; font-size: 14px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.journal-point { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; flex: none; background: var(--texte-3); }
.journal-point.urgent { background: var(--danger); }
.journal-point.attention { background: var(--attention); }
.journal-point.bon { background: var(--ok); }
.journal-point.reglage { background: var(--texte); }
.journal-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.journal-texte > span { font-size: 16px; overflow-wrap: anywhere; }
.journal-texte small { font-size: 13px; color: var(--texte-2); overflow-wrap: anywhere; }
.journal-fin { margin-top: 14px; text-align: center; }

/* ---- consommation ------------------------------------------------------------ */
.conso-tete { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.conso-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.conso-total > span:last-child { font-size: 16px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.conso-barres { margin-top: 22px; }
.conso-barres > svg:first-child { display: block; width: 100%; height: 130px; }
.conso-barres rect { fill: var(--texte); }
.conso-barres rect.en-cours { fill: var(--ligne-forte); }
.conso-jours { display: block; width: 100%; height: auto; margin-top: 4px; }
.conso-jours text { font-size: 9px; fill: var(--texte-2); text-anchor: middle; font-variant-numeric: tabular-nums; }
.conso-legende { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.conso-titre { margin: 24px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.conso-lignes { border-bottom: 1px solid var(--ligne); margin-bottom: 18px; }
.conso-ligne { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--ligne); }
.pastille.socle { background: var(--texte-3); }
.conso-texte { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conso-texte > span { font-size: 16px; overflow-wrap: anywhere; }
.conso-texte small { font-size: 13px; color: var(--texte-2); }
.conso-valeur { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conso-prix { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.conso-prix label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.conso-prix label > span { font-size: 16px; color: var(--texte); font-weight: 400; }
.conso-prix small { font-size: 13px; color: var(--texte-2); }
.champ-euro { display: flex; align-items: center; gap: 6px; }
.champ-euro input { width: 84px; text-align: right; }

/* ----------------------------------------------------------------- liste : groupes et vue compacte (U9) */
.titre-groupe { grid-column: 1 / -1; margin: 10px 2px 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
#socles.compacte { display: block; border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; }
#socles.compacte .titre-groupe { margin: 0; padding: 10px 14px 6px; background: var(--carte); }
#socles.compacte > * + * { border-top: 1px solid var(--ligne); }
.socle.compacte { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 0; background: none; min-height: 52px; }
.socle.compacte:hover { transform: none; background: var(--carte); }
.socle.compacte.alerte { box-shadow: inset 3px 0 0 var(--danger); }
.pastille-etat { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); }
.pastille-etat.ko { background: var(--danger); }
.pastille-etat.warn { background: var(--attention); }
.pastille-etat.eteint { background: var(--texte-3); }
.nom-compact { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-compacte { display: inline-flex; align-items: center; gap: 5px; min-width: 62px; justify-content: flex-end; font-size: 15px; }
.t-compacte.ko { color: var(--danger); font-weight: 600; }
.point-zone { width: 6px; height: 6px; border-radius: 50%; background: var(--zone-1); flex: none; }
.point-zone.z1 { background: var(--zone-2); }

/* ----------------------------------------------------------------- réglages de l'application */
.rubriques-app { margin-top: 26px; }
#vue-reglages { max-width: 680px; margin-inline: auto; }
.reglages > * + * { margin-top: 24px; }
.reglages { margin-top: 10px; }
.groupe-reglages { margin-inline: -16px; }
.titre-section { display: block; margin: 0 16px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.ligne-reglage {
  box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0;
  padding: 8px 16px; border: 0; border-top: 1px solid var(--ligne);
  background: none; color: var(--texte); font: inherit; font-size: 16px; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer;
}
.groupe-reglages > .ligne-reglage:last-child, .groupe-reglages > :last-child > .ligne-reglage:last-child { border-bottom: 1px solid var(--ligne); }
div.ligne-reglage, label.ligne-reglage { cursor: default; }
.ligne-reglage:is(button, a):hover { background: var(--carte); }
.ligne-reglage:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ligne-reglage .lib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-reglage small { font-size: 13px; color: var(--texte-2); overflow-wrap: anywhere; }
.ligne-reglage small:empty { display: none; }
.ligne-reglage > .ico:last-child { width: 16px; height: 16px; color: var(--texte-2); }
.ligne-reglage .valeur { color: var(--texte-2); font-size: 15px; }
.ligne-reglage select { width: auto; min-width: 140px; min-height: 40px; padding: 6px 10px; }
.ligne-reglage .btn { flex: none; }
.ligne-reglage.interrupteur { font-size: 16px; }
.segment.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); flex: none; }
.ligne-reglage .segment button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.carte-compte {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--carte); color: var(--texte); font: inherit; text-align: left; cursor: pointer;
}
.carte-compte:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.carte-compte .lib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.carte-compte strong { font-size: 16px; font-weight: 600; }
.carte-compte small { font-size: 14px; color: var(--texte-2); overflow-wrap: anywhere; }
.carte-compte > .ico:last-child { width: 16px; height: 16px; color: var(--texte-2); }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-texte); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.zone-effacer { text-align: center; }
.zone-effacer .aide { margin-top: 6px; }
.btn-danger { color: var(--danger); }
.btn-pointille { width: 100%; background: transparent; color: var(--texte); border: 1px dashed var(--texte-3); }
.groupe-reglages > .btn-pointille { width: calc(100% - 32px); margin-inline: 16px; }

/* Organiser : ordre, noms et groupes. */
.ligne-ordre { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 16px; border-top: 1px solid var(--ligne); }
.ligne-ordre:last-child { border-bottom: 1px solid var(--ligne); }
.rang { width: 20px; flex: none; font-size: 14px; color: var(--texte-2); text-align: center; }
.champ-nom, .champ-groupe { flex: 1; min-width: 0; min-height: 44px; }
.rond-petit { width: 44px; height: 44px; }
.rond-petit .ico { width: 18px; height: 18px; }
.rond:disabled { opacity: .35; cursor: default; }
.ligne-groupe { padding: 18px 16px 10px; border-top: 1px solid var(--ligne); }
.ligne-groupe .titre-section { margin: 0 0 6px; }
.ligne-groupe-champ { display: flex; align-items: center; gap: 10px; }
.ligne-groupe .aide { margin-top: 6px; }
.apercu-compact { margin: 12px 16px 0; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; }
.ligne-apercu { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ligne-apercu + .ligne-apercu { border-top: 1px solid var(--ligne); }
.ligne-case { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 0 16px; font-size: 16px; font-weight: 400; color: var(--texte); }
.ligne-case input { width: 22px; height: 22px; min-height: 0; flex: none; }
.groupe-reglages > .boutons, .groupe-reglages > .aide { margin-inline: 16px; }
.groupe-reglages > .aide:empty { display: none; }

/* Copier des réglages (U18, U19). */
.de-vers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 16px; }
.choix-socle { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--carte); color: var(--texte-2); font-size: 12px; font-weight: 500; }
.choix-socle select { margin-top: 4px; min-height: 40px; padding: 6px 8px; font-size: 15px; font-weight: 600; background: var(--fond); }
.fleche-de-vers { display: flex; justify-content: center; color: var(--texte-2); transform: rotate(90deg); }
@media (min-width: 560px) {
  .de-vers { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: end; gap: 8px; }
  .fleche-de-vers { transform: none; padding-bottom: 18px; color: var(--texte); }
}
.cases-transfert { margin: 12px 0 0; padding: 0; border: 0; }
.cases-transfert .ligne-case { border-top: 1px solid var(--ligne); }
.cases-transfert .ligne-case:last-child { border-bottom: 1px solid var(--ligne); }
.apercu-transfert, .action-transfert { margin-inline: 16px; }
.apercu-transfert > * + *, .action-transfert > * + * { margin-top: 10px; }
.tableau-transfert { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau-transfert th, .tableau-transfert td { padding: 10px 0; border-top: 1px solid var(--ligne); text-align: right; }
.tableau-transfert thead th { border-top: 0; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--texte-2); }
.tableau-transfert th[scope="row"], .tableau-transfert thead th:first-child { text-align: left; font-weight: 400; }
.tableau-transfert tbody tr:last-child > * { border-bottom: 1px solid var(--ligne); }
.tableau-transfert td.avant, .discret-cellule { color: var(--texte-2); }
.tableau-transfert td.apres { font-weight: 600; padding-left: 12px; }
.action-transfert { margin-top: 14px; }
.bandeau-fait { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 8px 0 16px; border-radius: 28px; background: var(--accent-doux); color: var(--ok-texte); font-size: 14px; font-weight: 600; }
.bandeau-fait > span { flex: 1; }
.bandeau-fait .btn { background: var(--fond); color: var(--texte); }

/* Exports : carnet PDF et mesures CSV (F16, F17). */
.choix-export { width: calc(100% + 32px); margin-inline: -16px; border-bottom: 1px solid var(--ligne); }
.carte-export { display: flex; flex-direction: column; gap: 12px; }
.tete-export { display: flex; align-items: center; gap: 12px; }
.tete-export > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tete-export h3 { font-size: 17px; font-weight: 600; color: var(--texte); }
.tete-export small { font-size: 13px; color: var(--texte-2); }
.pastille-export { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--creux); display: flex; align-items: center; justify-content: center; }
.carte-export .segment button { min-height: 40px; font-size: 14px; }
[data-r="mail"] > .ligne-reglage { border-bottom: 1px solid var(--ligne); }
[data-r="mail"] > .aide { margin-top: 10px; }

/* Programmation : maintenant, plages horaires, saisons, préchauffage, vacances (F5-F7, F9). */
.prog-maintenant { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.prog-sur { font-size: 14px; font-weight: 500; color: var(--texte-2); }
.prog-titre { display: flex; align-items: center; gap: 12px; font-size: 44px; font-weight: 200; letter-spacing: -.03em; line-height: 1.05; }
.prog-titre .ico { width: 30px; height: 30px; flex: none; stroke-width: 1.4; }
.prog-cibles { font-size: 15px; color: var(--texte-2); }
.frise { margin-top: 12px; }
.frise.grande { margin-top: 40px; }
.frise-barre { position: relative; }
.frise svg { display: block; width: 100%; height: 44px; border-radius: var(--rayon-petit); }
.frise.grande svg { height: 56px; border-radius: 14px; }
.frise rect.jour { fill: var(--frise-jour); }
.frise rect.chaud { fill: var(--frise-chaud); }
.frise rect.nuit { fill: var(--frise-nuit); }
.frise-maintenant { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--texte); box-shadow: 0 0 0 1.5px var(--fond); }
.frise-instant { position: absolute; top: -30px; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.frise-heures { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.frise.grande .frise-heures { margin-top: 12px; }
.frise-heures span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.frise-heures .borne { left: 0; transform: none; }
.frise-heures .borne.fin { left: auto; right: 0; }
.prog-maintenant .aide { margin-top: 2px; }
[data-r="prog-note"] { margin-inline: 0; }
.apercu-plages .frise { margin-top: 0; }
.reglages-hiver > * + * { margin-top: 12px; }
.jeux-plages { margin-bottom: 10px; }
.ligne-plage .pl-heure { width: 48px; flex: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.ligne-plage .lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ligne-plage .valeur { font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste-plages > .btn-pointille { margin-top: 10px; }
.pl-aide, .pl-exemple { margin-top: 8px; }
.ligne-jours { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 16px; }
.ligne-jours .segment button { min-height: 36px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
.saison-ete > .ico { color: var(--zone-1); }
.saison-hiver > .ico { color: var(--zone-2); }
/* Saisons coupées : le texte s'éteint sans tomber sous le contraste minimal. */
.inactif .lib, .inactif .lib small { color: var(--texte-3); }
.inactif .ico { opacity: .45; }
.reglages-hiver { margin-top: 10px; }
.reglages-hiver summary { min-height: 44px; display: flex; align-items: center; font-weight: 500; cursor: pointer; }
.reglages-hiver summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.etiquette { display: block; font-size: 13px; font-weight: 500; color: var(--texte-2); margin: 10px 0 4px; }
.choix-date { display: flex; gap: 8px; }
.choix-date select:first-child { width: 76px; flex: none; }
.vacances .intro { font-size: 16px; line-height: 1.5; color: var(--texte-2); }
.vacances > * + * { margin-top: 18px; }
.deux-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deux-dates label { margin: 0; }
.deux-dates input { margin-top: 4px; }
.choix-radio { margin-inline: 0; margin-bottom: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; }
.option-radio { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--ligne); border-radius: 16px; color: var(--texte); font-size: 16px; cursor: pointer; }
.option-radio:has(input:checked) { border-color: var(--texte); box-shadow: inset 0 0 0 1px var(--texte); }
.option-radio input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; }
.option-radio span { display: flex; flex-direction: column; gap: 2px; }
.option-radio strong { font-weight: 600; }
.option-radio small { font-size: 13px; color: var(--texte-2); }
.vacances-faites { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 18px; }
.titre-leger { font-size: 28px; font-weight: 300; letter-spacing: -.02em; line-height: 1.2; color: var(--texte); }
.vacances-faites p { font-size: 16px; line-height: 1.5; color: var(--texte-2); }
.vacances-faites .btn { width: 100%; }
.vacances-faites .btn-plein { margin-top: 12px; }
.lien-danger { color: var(--danger); }
.pastille-ok { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-doux); color: var(--ok-texte); display: flex; align-items: center; justify-content: center; }
.pastille-ok .ico { width: 26px; height: 26px; }
.alerte-texte { color: var(--danger); }
.alerte-texte:empty { display: none; }
.segment.un { grid-template-columns: minmax(0, 1fr); }
.rond[aria-disabled="true"] { opacity: .35; }

/* Sécurité : l'alimentation, réglée à l'atelier (U20). */
.ligne-alim { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ligne-alim .lib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-alim strong { font-size: 16px; font-weight: 500; }
.ligne-alim small { font-size: 13px; color: var(--texte-2); }
.verrou-atelier { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; color: var(--texte-2); }
.verrou-atelier .ico { width: 16px; height: 16px; }
.carte-alim .aide { margin-top: 10px; }

/* Alertes : en cours, essai, alertes du socle par ntfy (U31, F18). */
.etat-alertes { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 8px; }
.etat-alertes p { color: var(--texte-2); }
.etat-alertes .bandeau-fait { align-self: stretch; }
.pastille-ok.ko { background: var(--danger-doux); color: var(--danger); }
.al-ntfy-detail:empty { display: none; }
.al-ntfy-detail { margin-top: 12px; }
.al-ntfy-detail > * + * { margin-top: 10px; }
.etapes-ntfy { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--texte-2); }
.etapes-ntfy code { font-size: 14px; overflow-wrap: anywhere; color: var(--texte); }

/* Partager un socle (F12, U4). */
.pa-inviter > * + * { margin-top: 14px; }
#reglages [data-r="pa-socles"]:empty { display: none; }
.ligne-acces { cursor: default; }
.ligne-acces .avatar { width: 40px; height: 40px; font-size: 14px; }
.avatar.invite { background: var(--creux); color: var(--texte); }
.avatar.invite .ico { width: 20px; height: 20px; }
.lien-pret { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--carte); }
.lien-pret small { font-size: 13px; color: var(--texte-2); }
.attention-texte { color: var(--attention) !important; }
.lien-invitation { font-size: 13px; color: var(--texte-2); }

/* Aide dans l'application. */
.recherche-aide { position: relative; }
.recherche-aide .ico { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; color: var(--texte-2); }
.recherche-aide input { padding-left: 44px; border-radius: 24px; background: var(--creux); border-color: transparent; }
[data-r="ai-resultats"]:not(:empty) { margin-top: 12px; }
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary { min-height: 56px; display: flex; align-items: center; font-size: 16px; cursor: pointer; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.faq p { padding-bottom: 14px; color: var(--texte-2); line-height: 1.5; }
.boutons-pile { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
