/* Alcyons : styles repris de l'onglet Vols de Dops (cartes cernees d'encre, ombre decalee,
   palette ciel). Polices hebergees avec l'app (licence SIL OFL). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(polices/figtree.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(polices/bricolage-grotesque.woff2) format("woff2"); }

:root {
  --fond: #fff6cc;
  --surface: #fffdf3;
  --surface-2: #fff1bf;
  --encre: #1c2340;
  --bord: rgba(28, 35, 64, 0.18);
  --texte: #1c2340;
  --texte-2: #5a6180;
  --soleil: #ffcf33;
  --accent: #2b3fd6;
  --accent-texte: #ffffff;
  --accent-doux: #dfe3ff;
  --alerte: #c8431a;
  --alerte-doux: #ffb98f;
  --ok: #2f9e6e;
  --ok-doux: #c9f0d9;
  --ambre: #8a5a00;
  --ambre-doux: #ffe08a;
  --rayon: 20px;
  --titre: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.45 var(--sans);
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

button, a.btn { font: inherit; }

svg { width: 20px; height: 20px; flex: none; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 620px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(10px);
}

.marque { display: flex; align-items: center; gap: 12px; }

.logo {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-doux);
  color: var(--accent); font: 700 18px var(--mono);
}

h1 { margin: 0; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }

.date { margin: 0; color: var(--texte-2); font-size: 14px; }

.icone-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2);
  cursor: pointer;
}
.icone-btn.tourne svg { animation: tourne 0.8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

.bandeau {
  max-width: 620px; margin: 0 auto 8px; padding: 8px 16px;
  color: var(--ambre); font-size: 13px; font-family: var(--mono);
}

main { max-width: 620px; margin: 0 auto; padding: 0 16px; display: grid; gap: 14px; }

/* ---------- Cartes ---------- */

.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px;
}

.carte h2 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 12px;
  font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--texte-2);
}
.carte h2 .compte { color: var(--accent); }

.vide { margin: 0; color: var(--texte-2); font-size: 15px; }

.squelette div { height: 14px; margin: 10px 0; border-radius: 7px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.squelette div:nth-child(2) { width: 70%; }
.squelette div:nth-child(3) { width: 45%; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Jauges ---------- */


  display: grid; gap: 2px; justify-items: start;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--bord); background: var(--surface);
  color: var(--texte); text-decoration: none;
}

/* ---------- Brief ---------- */

.brief { display: grid; gap: 12px; background: linear-gradient(160deg, var(--accent-doux), transparent 60%), var(--surface); }

.lecteur { display: flex; align-items: center; gap: 14px; }

.lecture-btn {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-texte); cursor: pointer;
  box-shadow: 0 0 0 6px var(--accent-doux);
}
.lecture-btn svg { width: 24px; height: 24px; }
.lecture-btn:disabled { opacity: 0.4; cursor: default; }

.lecteur-infos { flex: 1; min-width: 0; }
.lecteur-infos strong { display: block; }
.lecteur-infos small { color: var(--texte-2); font-family: var(--mono); font-size: 12px; }

.progression { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.progression div { height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }

details.texte summary { cursor: pointer; color: var(--texte-2); font-size: 14px; }
details.texte p { margin: 10px 0 0; white-space: pre-line; font-size: 15px; }

/* ---------- Listes ---------- */

.liste { list-style: none; margin: 0; padding: 0; display: grid; }
.liste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bord); }
.liste li:first-child { border-top: 0; padding-top: 2px; }

.heure { flex: none; width: 52px; font: 600 14px var(--mono); color: var(--accent); }
.heure.journee { font-size: 11px; color: var(--texte-2); }

.ligne { flex: 1; min-width: 0; }
.ligne .titre { display: block; overflow-wrap: anywhere; }
.ligne .meta { display: block; font-size: 13px; color: var(--texte-2); }

.sous-titre { margin: 14px 0 4px; font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-2); }
h2 + .sous-titre { margin-top: 0; }
.sous-titre.alerte { color: var(--alerte); }

.pastille { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 12px var(--mono); }
.pastille.alerte { background: var(--alerte-doux); color: var(--alerte); }
.pastille.ambre { background: var(--ambre-doux); color: var(--ambre); }
.pastille.ok { background: var(--ok-doux); color: var(--ok); }

.gestes { display: flex; gap: 6px; flex: none; }

.geste {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  font: 600 13px var(--mono); cursor: pointer;
}
.geste.fait { color: var(--ok); }
.geste:disabled { opacity: 0.4; }

.faite .titre { text-decoration: line-through; color: var(--texte-2); }

details.plus summary { cursor: pointer; padding-top: 10px; color: var(--texte-2); font-size: 14px; }

/* ---------- Plantes ---------- */

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  cursor: pointer; font-size: 15px;
}
.puce.demain { opacity: 0.6; }
.puce.arrosee { border-color: var(--ok); color: var(--ok); }

.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primaire { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.btn.petit { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.danger { color: var(--alerte); }
.btn:disabled { opacity: 0.5; }


/* ---------- Propositions ---------- */

.proposition + .proposition { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bord); }
.proposition p { margin: 4px 0 0; font-size: 14px; color: var(--texte-2); }

/* ---------- Feuille de capture ---------- */

dialog.feuille {
  width: min(560px, 100vw); max-width: 100vw; margin: auto auto 0; padding: 0;
  border: 1px solid var(--bord); border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--texte);
}
@media (min-width: 640px) { dialog.feuille { margin: auto; border-radius: 20px; } }
dialog::backdrop { background: rgba(0, 0, 0, 0.55); }

dialog form { display: grid; gap: 14px; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
dialog h2 { margin: 0; font-size: 18px; }

.segments, .echeances { display: flex; flex-wrap: wrap; gap: 8px; }
.segments label, .echeances label { position: relative; }
.segments input, .echeances input { position: absolute; opacity: 0; inset: 0; }
.segments span, .echeances span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--bord); background: var(--surface-2);
  font-size: 14px; cursor: pointer;
}
.segments input:checked + span, .echeances input:checked + span { border-color: var(--accent); background: var(--accent-doux); color: var(--accent); }
.segments input:focus-visible + span, .echeances input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

textarea {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  font: 16px/1.4 var(--sans); resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.aide { margin: 0; font-size: 13px; color: var(--texte-2); }
.pied { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 20;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--texte); color: var(--fond); font-size: 15px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.erreur { background: var(--alerte); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* ---------- Onglets ---------- */



/* ---------- Galerie des plantes ---------- */

.galerie { display: grid; gap: 14px; }
@media (min-width: 560px) { .galerie { grid-template-columns: 1fr 1fr; } }

.plante { padding: 0; overflow: hidden; }

.carrousel {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  aspect-ratio: 8 / 5; background: var(--surface-2); scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.carrousel figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carrousel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.carrousel figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 12px var(--mono);
}
.points { position: absolute; right: 10px; bottom: 12px; display: flex; gap: 5px; pointer-events: none; }
.points i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.points i.actif { background: #fff; }

.sans-photo {
  display: grid; place-items: center; align-content: center; gap: 6px; width: 100%;
  color: var(--texte-2); text-align: center; padding: 16px;
}
.sans-photo strong { font: 700 48px var(--mono); color: var(--accent); }

.plante-infos { padding: 14px 16px 16px; display: grid; gap: 6px; }
.plante-infos h3 { margin: 0; font-size: 18px; }
.plante-infos .meta { color: var(--texte-2); font-size: 14px; }
.plante-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plante-infos .boutons { margin-top: 6px; }

/* ---------- Bibliotheque ---------- */

.entete-vue { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.filtres { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filtres button {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2);
  font: 600 13px var(--sans); cursor: pointer;
}
.filtres button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); color: var(--accent); }

.rayon { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; }

.ouvrage { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--texte); text-align: left; cursor: pointer; font: inherit; }
.couv {
  position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), var(--accent-doux));
  border: 1px solid var(--bord); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couv .repli { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: 600 13px/1.25 var(--sans); color: var(--texte-2); }
.couv .pastille { position: absolute; top: 6px; left: 6px; backdrop-filter: blur(6px); }
.ouvrage .t { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ouvrage .a { font-size: 12px; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille.accent { background: var(--accent-doux); color: var(--accent); }

.detail { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.detail .couv { width: 110px; }
.detail h2 { margin: 0 0 4px; font-size: 18px; }
.detail p { margin: 0; color: var(--texte-2); }

#feuille-contenu { display: grid; gap: 14px; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
#feuille-contenu input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); font: 16px var(--sans);
}
#feuille-contenu input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.icone-btn.ajout { flex: none; background: var(--accent); border-color: var(--accent); color: var(--accent-texte); font: 600 24px/1 var(--sans); }
.entete-vue .filtres { flex: 1; min-width: 0; }
.couv .pastille { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

.plante-gestes { flex-wrap: nowrap; }
.plante-gestes .btn { flex: 1; gap: 6px; padding: 0 6px; white-space: nowrap; font-size: 13px; }
.plante-gestes svg { width: 16px; height: 16px; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.case input { width: 22px; height: 22px; accent-color: var(--accent); }
.reglage { display: flex; align-items: center; justify-content: center; gap: 18px; }
.reglage .geste { width: 52px; height: 52px; font-size: 24px; border-radius: 50%; }
.compteur { min-width: 140px; text-align: center; font: 600 22px var(--mono); }

/* ---------- Carte « À arroser » ---------- */

.arrosage-grille { display: grid; grid-template-columns: 1fr 72px 64px; align-items: center; row-gap: 2px; }
.arrosage-grille .col { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); text-align: center; }
.arrosage-grille .ligne { padding: 10px 0; border-top: 1px solid var(--bord); }
.arrosage-grille .ligne .meta { margin-top: 2px; }
.case-cellule { display: grid; place-items: center; height: 100%; min-height: 48px; border-top: 1px solid var(--bord); cursor: pointer; }
.case-cellule input { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.lien-plante {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--bord); text-underline-offset: 3px;
}
.lien-plante:hover { text-decoration-color: var(--accent); }
.carte.plante { scroll-margin-top: calc(var(--haut-entete, 80px) + 76px); transition: box-shadow 0.3s; }
.carte.plante.ciblee { box-shadow: 0 0 0 3px var(--accent); }


/* =================== Direction A « Rituel » =================== */

body { font-variant-numeric: tabular-nums; }
h1 { font: 800 22px/1.1 var(--titre); letter-spacing: 0; text-transform: none; }
.logo { width: 46px; height: 46px; border: 0; box-shadow: none; display: block; }
.logo svg { width: 46px; height: 46px; display: block; }

.carte { border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 3px 3px 0 var(--encre); background: var(--surface); }
.carte h2 { font: 800 17px/1.2 var(--titre); letter-spacing: 0; text-transform: none; color: var(--texte); }
.carte h2 .compte { padding: 0 9px; border: 1.5px solid var(--encre); border-radius: 99px; background: var(--soleil); color: var(--encre); font: 700 13px var(--sans); transform: rotate(-3deg); }
.carte h2 .compte:empty { display: none; }

.icone-btn { border: 2px solid var(--encre); background: var(--surface); color: var(--encre); box-shadow: 2px 2px 0 var(--encre); }


.brief { background: var(--soleil); }
.lecture-btn { background: var(--encre); color: var(--soleil); box-shadow: none; }
.lecteur-infos strong { font: 800 17px var(--titre); }
.lecteur-infos small { color: var(--encre); font-family: var(--sans); font-weight: 600; }
.progression { background: rgba(28, 35, 64, 0.18); }
.progression div { background: var(--encre); }
.brief details.texte summary, .brief .aide { color: var(--encre); }

.heure { font: 700 14px var(--sans); color: var(--accent); }
.sous-titre { font: 700 12px var(--titre); letter-spacing: 0.06em; }
.liste li, .arrosage-grille .ligne, .case-cellule { border-top: 1.5px dashed var(--bord); }

.pastille { border: 1.5px solid var(--encre); color: var(--encre); font: 700 12px var(--sans); transform: rotate(-3deg); background: var(--surface); }
.pastille.alerte { background: var(--alerte-doux); color: var(--encre); }
.pastille.ambre { background: var(--ambre-doux); color: var(--encre); }
.pastille.ok { background: var(--ok-doux); color: var(--encre); }
.pastille.accent { background: var(--accent-doux); color: var(--encre); }

.btn { border: 2px solid var(--encre); border-radius: 99px; background: var(--surface); color: var(--encre); box-shadow: 2px 2px 0 var(--encre); }
.btn.primaire { background: var(--accent); border-color: var(--encre); color: var(--accent-texte); }
.btn.danger { color: var(--alerte); }
.btn:active:not(:disabled), .icone-btn:active, .jauge:active, .geste:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }

.geste { border: 2px solid var(--encre); border-radius: 12px; background: var(--surface); color: var(--encre); box-shadow: 2px 2px 0 var(--encre); }
.geste.fait { background: var(--ok-doux); color: var(--encre); }

.entete { background: color-mix(in srgb, var(--fond) 92%, transparent); }

.case-cellule input, .case input { accent-color: var(--accent); }

dialog.feuille { background: var(--fond); color: var(--texte); border: 2px solid var(--encre); }
dialog::backdrop { background: rgba(28, 35, 64, 0.45); }
textarea, #feuille-contenu input[type="text"] { background: #ffffff; border: 2px solid var(--encre); color: var(--texte); }
.segments span, .echeances span { border: 2px solid var(--encre); background: var(--surface); color: var(--encre); }
.segments input:checked + span, .echeances input:checked + span { background: var(--soleil); border-color: var(--encre); color: var(--encre); }

.toast { background: var(--encre); color: var(--fond); border-radius: 99px; }
.toast.erreur { background: var(--alerte); color: #ffffff; }

.carrousel { background: var(--surface-2); }
.sans-photo strong { color: var(--encre); font-family: var(--titre); }
.plante-infos h3 { font: 800 19px var(--titre); }
.carte.plante.ciblee { box-shadow: 3px 3px 0 var(--encre), 0 0 0 4px var(--soleil); }

.filtres button { border: 2px solid var(--encre); background: var(--surface); color: var(--encre); }
.filtres button[aria-pressed="true"] { background: var(--soleil); border-color: var(--encre); color: var(--encre); }
.icone-btn.ajout { background: var(--accent); border-color: var(--encre); color: #ffffff; }
.couv { border: 2px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); border-radius: 12px; }
.couv .repli { color: var(--encre); font-family: var(--titre); }

.lien-plante { text-decoration-color: var(--soleil); text-decoration-thickness: 3px; }
.bandeau { color: var(--ambre); font-family: var(--sans); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Rappel d'arrosage ---------- */
.rappel-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rappel-ligne input[type="time"] {
  min-height: 44px; padding: 0 12px; border: 2px solid var(--encre); border-radius: 12px;
  background: #ffffff; color: var(--texte); font: 700 18px var(--sans); font-variant-numeric: tabular-nums;
}
#rappel .boutons { margin-top: 10px; }
#rappel .aide { margin-top: 10px; }

/* ---------- Vols ---------- */
.carte.vol { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--texte); cursor: pointer; }
.vol-route { font: 800 20px var(--titre); letter-spacing: 0.02em; }
.vol-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.vol-date { font-weight: 700; margin-right: 4px; }
.liste-vols { display: grid; gap: 12px; margin-top: 12px; }
.vol-titre h2 { margin: 0; font: 800 26px var(--titre); }
.vol-titre p { margin: 2px 0 0; }
.sous-onglets { margin-bottom: 2px; }
.sous-onglets button { flex: 1; }
.champs { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.champs input, .champs select, .recherche-terrain {
  min-height: 44px; padding: 0 12px; border: 2px solid var(--encre); border-radius: 12px;
  background: #ffffff; color: var(--texte); font: 600 16px var(--sans); width: 100%; min-width: 0;
}
.terrain-nom { display: block; font: 800 18px var(--titre); }
.pistes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pistes .col { font: 700 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); }
.pistes .qfu { font-weight: 800; }
.selecteur { display: grid; gap: 8px; margin-top: 10px; }
.resultats { display: grid; gap: 6px; }
.resultat {
  display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; text-align: left;
  padding: 10px 12px; border: 2px solid var(--encre); border-radius: 12px; background: var(--surface); color: var(--texte); font: inherit; cursor: pointer;
}
.resultat .meta { grid-column: 2; font-size: 13px; color: var(--texte-2); }
.nouveau-vol { display: grid; gap: 12px; }
.nouveau-vol .sous-titre { margin: 6px 0 0; }
.carte.cdb .boutons { margin-top: 8px; }

/* ---------- Vols : meteo ---------- */
.meteo { display: grid; gap: 14px; }
.station { display: grid; gap: 6px; padding: 10px 0; border-top: 1.5px dashed var(--bord); }
.station:first-of-type { border-top: 0; padding-top: 0; }
.station-tete { display: flex; align-items: baseline; gap: 10px; }
.station-tete strong { font: 800 17px var(--titre); }
.code-ligne { display: grid; gap: 4px; justify-items: start; }
.code {
  display: block; width: 100%; padding: 8px 10px; border: 1.5px solid var(--encre); border-radius: 10px;
  background: #ffffff; color: var(--texte); font: 500 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.pages { display: grid; gap: 10px; margin-top: 10px; }
.pages img { width: 100%; height: auto; display: block; border: 2px solid var(--encre); border-radius: 12px; background: #ffffff; }
details.notam { border-top: 1.5px dashed var(--bord); padding: 8px 0; }
details.notam summary { cursor: pointer; font-size: 14px; line-height: 1.4; }
.notam-texte { margin: 6px 0 0; white-space: pre-line; font: 500 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
details.depliable summary { cursor: pointer; list-style: none; }
details.depliable summary .h2 { font: 800 17px var(--titre); }
details.depliable[open] summary { margin-bottom: 10px; }
.carte.alertes { background: var(--alerte-doux); }

/* =================== Une couleur par onglet =================== */
/* data-onglet est pose sur <html> par app.js (changerVue). Les formes restent celles de A. */

body { transition: background-color 0.35s ease; }

:root[data-onglet="plantes"] {
  --fond: #e8f6dc;
  --surface: #fbfff6;
  --surface-2: #d6efc2;
  --encre: #17321f;
  --texte: #17321f;
  --texte-2: #4f6b55;
  --bord: rgba(23, 50, 31, 0.18);
  --soleil: #9fd96f;
  --accent: #1f7a4d;
  --accent-doux: #cdeed8;
}

:root[data-onglet="vols"] {
  --fond: #dcefff;
  --surface: #ffffff;
  --surface-2: #e9f5ff;
  --encre: #14284b;
  --texte: #14284b;
  --texte-2: #4d6383;
  --bord: rgba(20, 40, 75, 0.16);
  --soleil: #9fd3ff;
  --accent: #1d5fd1;
  --accent-doux: #d6e7ff;
}
/* Nuages : quelques ellipses blanches floues, fixes derriere le contenu. */
:root[data-onglet="vols"] body {
  background-color: var(--fond);
  background-image:
    radial-gradient(70px 26px at 12% 14%, rgba(255,255,255,0.95) 60%, transparent 72%),
    radial-gradient(48px 30px at 18% 11%, rgba(255,255,255,0.95) 60%, transparent 72%),
    radial-gradient(90px 30px at 82% 30%, rgba(255,255,255,0.9) 60%, transparent 72%),
    radial-gradient(56px 34px at 88% 26%, rgba(255,255,255,0.9) 60%, transparent 72%),
    radial-gradient(80px 26px at 30% 62%, rgba(255,255,255,0.85) 60%, transparent 72%),
    radial-gradient(50px 30px at 36% 59%, rgba(255,255,255,0.85) 60%, transparent 72%),
    radial-gradient(100px 32px at 74% 86%, rgba(255,255,255,0.9) 60%, transparent 72%),
    radial-gradient(60px 36px at 80% 82%, rgba(255,255,255,0.9) 60%, transparent 72%),
    linear-gradient(180deg, #cfe8ff 0%, var(--fond) 55%, #eef7ff 100%);
  background-attachment: fixed;
}

:root[data-onglet="bibliotheque"] {
  --fond: #fde8ec;
  --surface: #fffafb;
  --surface-2: #f9d3db;
  --encre: #3a1220;
  --texte: #3a1220;
  --texte-2: #7a5160;
  --bord: rgba(58, 18, 32, 0.16);
  --soleil: #f5a3b5;
  --accent: #9b1d3a;
  --accent-doux: #f8d2dc;
}

/* ---------- Vols : navigation ---------- */
.nav { display: grid; gap: 14px; }
.grille-saisie { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px 10px; }
.champ { display: grid; gap: 3px; min-width: 0; }
.champ.large { grid-column: span 2; }
.champ span { font: 700 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--texte-2); }
.champ input, .champ select {
  min-height: 42px; width: 100%; min-width: 0; padding: 0 10px; border: 2px solid var(--encre); border-radius: 10px;
  background: #ffffff; color: var(--texte); font: 700 16px var(--sans); font-variant-numeric: tabular-nums;
}
.resultat-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 8px 10px;
  border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.branche .sous-titre { margin-top: 14px; }
.revetement { margin-top: 8px; }
.revetement button { flex: 1; }

/* ---------- Vols : carburant et centrage ---------- */
.decision { margin: 4px 0 12px; padding: 12px 14px; border: 2px solid var(--encre); border-radius: 14px; font: 800 22px var(--titre); text-align: center; }
.decision.go { background: var(--ok-doux); }
.decision.nogo { background: var(--alerte-doux); }
.decision.attente { background: var(--surface-2); font: 600 15px var(--sans); }
.tableau-bilan { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.tableau-bilan strong:nth-last-child(-n+2), .tableau-bilan strong { border-top: 1.5px dashed var(--bord); padding-top: 4px; }
.nb { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-centrage { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr; gap: 6px 8px; align-items: center; font-size: 14px; margin: 10px 0; }
.tableau-centrage .col { font: 700 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--texte-2); }
.tableau-centrage .champ input { min-height: 36px; text-align: right; padding: 0 8px; }
.tableau-centrage .champ span:empty { display: none; }
.jauge-centrage { position: relative; height: 66px; margin: 22px 6px 34px; border-bottom: 2px solid var(--encre); }
.jauge-centrage .zone-ok { position: absolute; bottom: 0; height: 18px; background: var(--ok-doux); border: 1.5px solid var(--encre); border-bottom: 0; border-radius: 6px 6px 0 0; }
.jauge-centrage .borne { position: absolute; bottom: -20px; transform: translateX(-50%); font: 700 11px var(--sans); color: var(--texte-2); white-space: nowrap; }
.jauge-centrage .curseur { position: absolute; bottom: 0; width: 3px; height: 34px; transform: translateX(-50%); background: var(--encre); }
.jauge-centrage .curseur.arr { background: var(--accent); height: 52px; }
.jauge-centrage .etiquette { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 700 11px var(--sans); white-space: nowrap; }
.jauge-centrage .curseur.arr .etiquette { color: var(--accent); }

/* ---------- Fiche d'un vol : sous-onglets, voyants, validation ---------- */
.sous-onglets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sous-onglets button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px;
  border: 2px solid var(--encre); border-radius: 99px; background: var(--surface); color: var(--encre);
  font: 700 13px var(--sans); cursor: pointer;
}
.sous-onglets button[aria-pressed="true"] { background: var(--soleil); }
.voyant { display: inline-grid; place-items: center; flex: none; font: 800 11px var(--sans); }
.voyant.point { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--encre); background: var(--surface-2); }
.voyant.point.ok { background: var(--ok); }
.voyant.point.alerte { background: var(--alerte); }
.voyant.point.ambre { background: #f0b429; }
.voyant.plein { width: 18px; height: 18px; border-radius: 50%; color: #ffffff; border: 1.5px solid var(--encre); }
.voyant.plein.ok { background: var(--ok); }
.voyant.plein.alerte { background: var(--alerte); }
.voyant.ambre:not(.point) { width: 18px; height: 18px; border-radius: 50%; background: #f0b429; color: var(--encre); border: 1.5px solid var(--encre); }
.carte.validation { padding: 12px 14px; }
.validation-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.validation .aide { margin-top: 6px; }
.validation-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn.valide-go { background: var(--ok); color: #ffffff; }
.btn.valide-nogo { background: var(--alerte); color: #ffffff; }

/* Recap : schema du vol */
.schema-vol { display: grid; margin: 4px 0 10px; }
.schema-terrain { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.schema-terrain strong { font: 800 17px var(--titre); }
.schema-terrain .meta { display: block; font-size: 13px; color: var(--texte-2); }
.schema-point { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 3px solid var(--encre); background: var(--soleil); }
.schema-branche { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.schema-trait { justify-self: center; width: 3px; min-height: 64px; background: repeating-linear-gradient(var(--encre) 0 8px, transparent 8px 12px); }
.schema-infos { display: grid; gap: 2px; padding: 8px 0 10px; font-size: 14px; }
.schema-deg { color: var(--accent); font-weight: 700; }
.etats-liste { display: grid; gap: 6px; margin-top: 10px; }
.etat-ligne { display: grid; grid-template-columns: 22px 64px 1fr; align-items: center; gap: 8px; padding: 8px 10px; text-align: left;
  border: 1.5px solid var(--bord); border-radius: 12px; background: var(--surface); color: var(--texte); font: inherit; cursor: pointer; }
.etat-ligne .meta { font-size: 13px; color: var(--texte-2); }

/* Nav : route et barres de piste */
.route-edit { display: grid; gap: 6px; }
.route-ligne { display: grid; grid-template-columns: 70px auto 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1.5px dashed var(--bord); }
.route-ligne:first-child { border-top: 0; }
.route-role { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-2); }
.route-ligne .meta { font-size: 13px; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-piste { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.barre-titre { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.barre-titre .meta { color: var(--texte-2); font-size: 13px; }
.piste { position: relative; height: 30px; border-radius: 6px; background: var(--surface); }
.piste-dispo { position: absolute; left: 0; top: 0; bottom: 0; border: 2px solid var(--encre); border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(20,40,75,0.08) 18px 22px); }
.piste-dispo span { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 11px var(--sans); color: var(--texte-2); }
.piste-besoin { position: absolute; left: 0; top: 7px; height: 16px; border-radius: 4px; border: 1.5px solid var(--encre); }
.piste-besoin.ok { background: var(--ok); }
.piste-besoin.ko { background: var(--alerte); }
.piste-repere { position: absolute; top: 2px; bottom: 2px; width: 0; border-left: 2.5px dashed var(--encre); }
.barre-legende { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }

/* Carbu : jauges par branche */
.schema-carbu { display: grid; gap: 12px; }
.carbu-branche { display: grid; gap: 6px; }
.jauge-carbu { position: relative; height: 22px; border: 2px solid var(--encre); border-radius: 6px; background: var(--surface); overflow: hidden; }
.carbu-reste { position: absolute; left: 0; top: 0; bottom: 0; background: var(--soleil); }
.carbu-conso { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--accent-doux) 0 6px, transparent 6px 10px); border-left: 2px solid var(--encre); }
.carbu-reserve { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 3px solid var(--alerte); }

/* Debrief */
.formulaire { display: grid; gap: 8px; }
.formulaire label { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-2); }
.formulaire label.case { text-transform: none; letter-spacing: 0; font: 500 14px var(--sans); color: var(--texte); }
.formulaire textarea, .formulaire input[type="text"] { width: 100%; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 12px; background: #ffffff; color: var(--texte); font: 16px var(--sans); }

/* ---------- Administration ---------- */
.entete-boutons { display: flex; gap: 8px; }
:root[data-onglet="admin"] {
  --fond: #eceff4; --surface: #ffffff; --surface-2: #e2e7ef; --encre: #1b2333; --texte: #1b2333; --texte-2: #55607a;
  --bord: rgba(27, 35, 51, 0.16); --soleil: #c3cfe2; --accent: #3b4a6b; --accent-doux: #dde3ee;
}
.tableau-import { display: grid; grid-template-columns: 28px 1.6fr 0.8fr 0.8fr; gap: 6px 8px; align-items: center; font-size: 13px; margin: 8px 0; }
.tableau-import .meta { display: block; font-size: 11px; color: var(--texte-2); }
.tableau-import .case { min-height: 0; }
.remarques { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.liste.controles li { align-items: flex-start; }
.champ input.manquant { border-color: var(--alerte); border-style: dashed; }
.abaque { margin-top: 8px; }
.abaque-grille { display: grid; gap: 4px; align-items: center; overflow-x: auto; }
.abaque-grille > .champ:first-of-type, .abaque-grille { grid-auto-columns: minmax(0, 1fr); }
.abaque-grille .champ input { min-height: 36px; padding: 0 6px; font-size: 14px; text-align: right; }
.abaque-grille .champ span:empty { display: none; }
.jauge-centrage.bras { margin-bottom: 30px; }
.barre-enregistrer { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }

/* ---------- Plantes : options ; Biblio : raccourcis ---------- */
.plante-titre { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icone-btn.mini { width: 36px; height: 36px; box-shadow: 1.5px 1.5px 0 var(--encre); }
.icone-btn.mini svg { width: 18px; height: 18px; }
.choix-photo { display: grid; gap: 10px; }
.choix-photo .btn { gap: 8px; }
.raccourcis { display: grid; gap: 8px; }
#feuille-contenu .carte { box-shadow: none; }

/* Administration des avions : exemple recalcule, enveloppe, tables en lecture */
.tableau-concordance { display: grid; grid-template-columns: 1.6fr 1fr 1fr 20px; gap: 4px 8px; font-size: 13px; margin: 6px 0 10px; }
.tableau-concordance .col { font-size: 11px; color: var(--texte-2); }
.ok-texte { color: var(--ok); font-weight: 700; }
.alerte-texte { color: var(--alerte); font-weight: 700; }
.graphe-enveloppe { margin: 10px 0 0; }
.graphe-enveloppe svg { width: 100%; height: auto; display: block; }
.graphe-enveloppe text { font: 10px var(--mono); fill: var(--texte-2); }
.graphe-enveloppe .env-titre { font: 600 12px var(--sans); fill: var(--texte); }
.graphe-enveloppe .env-legende { font: 10px var(--sans); }
.graphe-enveloppe .axe { stroke: var(--texte); stroke-width: 1.2; }
.graphe-enveloppe .env-zone { fill: var(--ok-doux); opacity: 0.6; }
.graphe-enveloppe .env-contour { stroke: var(--encre); stroke-width: 2.4; fill: none; stroke-linecap: square; }
.graphe-enveloppe .env-att { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; fill: none; }
.graphe-enveloppe .env-rappel { stroke: var(--texte-2); stroke-width: 0.8; stroke-dasharray: 4 3; }
.graphe-enveloppe .env-rappel-pt { stroke: var(--encre); stroke-width: 0.8; stroke-dasharray: 2 3; opacity: 0.7; }
.graphe-enveloppe .env-rappel-pt.arr { stroke: var(--accent); }
.graphe-enveloppe .env-rappel-pt.vide { opacity: 0.35; }
.graphe-enveloppe .env-trajet { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.graphe-enveloppe .point { fill: var(--encre); stroke: var(--surface); stroke-width: 1.5; }
.graphe-enveloppe .point.arr { fill: var(--accent); }
.graphe-enveloppe .point.hors { fill: var(--alerte); }
.graphe-enveloppe .point.vide { fill: var(--texte-2); }
.graphe-enveloppe .etiquette { fill: var(--texte); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.grille-lecture { display: grid; gap: 2px 6px; font-size: 13px; overflow-x: auto; }
.grille-lecture .col { font-size: 11px; color: var(--texte-2); }

/* Administration : edition des fiches (points, reservoirs, tables par masse) */
.btn.mini { min-height: 36px; min-width: 36px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.editeur-points { display: grid; gap: 6px; margin: 6px 0 10px; }
.ligne-points { display: grid; grid-template-columns: 1fr 1fr 84px; gap: 6px; align-items: center; }
.ligne-points.entete .col { font-size: 11px; color: var(--texte-2); }
.ligne-points .champ span:empty { display: none; }
.ligne-points .champ input { min-height: 40px; text-align: right; }
.gestes-ligne { display: flex; gap: 4px; justify-content: flex-end; }
.ligne-reservoir { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; align-items: end; padding: 8px 0; border-bottom: 1px dashed var(--bord); }
.ligne-reservoir:last-of-type { border-bottom: 0; }
.bloc-masse { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--bord); }
.entete-masse { display: flex; gap: 8px; align-items: end; }
.entete-masse .champ { flex: 1; }
.case-ligne { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 14px; line-height: 1.35; }
.case-ligne input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.editeur-tables .boutons { flex-wrap: wrap; }
@media (max-width: 380px) { .ligne-reservoir { grid-template-columns: 1fr 1fr; } }
.ligne-points.entete .col { background: none; padding: 0; text-align: center; }

/* =================== Onglet Dops : conversation et appel =================== */
:root[data-onglet="dops"] {
  --fond: #ffe9d9;
  --surface: #fffaf5;
  --surface-2: #ffd5c2;
  --encre: #3b2320;
  --texte: #3b2320;
  --texte-2: #7c5a52;
  --bord: rgba(59, 35, 32, 0.16);
  --soleil: #ffcf33;
  --accent: #ff6b4a;
  --accent-texte: #ffffff;
  --accent-doux: #ffd5c2;
  --specialiste: #b9478f;
}
:root[data-onglet="dops"] main { padding-bottom: 110px; }

.fil-dops { display: grid; gap: 10px; }
.bulle { max-width: 88%; padding: 10px 14px; border-radius: 18px; border: 2px solid var(--encre); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.bulle p { margin: 4px 0; }
.bulle ul { margin: 4px 0; padding-left: 20px; }
.bulle li { margin: 2px 0; }
.bulle code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.bulle .md-titre { font-weight: 800; margin-top: 8px; }
.bulle .md-table { font-size: 13px; }
.bulle.moi { justify-self: end; background: linear-gradient(110deg, #ff8a3d, #ff5f6d); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.bulle.agent { justify-self: start; background: var(--surface); box-shadow: 3px 3px 0 var(--encre); border-bottom-left-radius: 6px; }
.bulle.agent.specialiste { box-shadow: 3px 3px 0 var(--specialiste, var(--accent)); border-color: var(--specialiste, var(--accent)); }
.bulle.agent.specialiste .bulle-nom { color: var(--specialiste, var(--accent)); }
.bulle.en-attente { opacity: 0.65; }
.bulle-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bulle-tete .btn.mini { min-height: 30px; min-width: 30px; padding: 0 6px; border-width: 1px; box-shadow: none; }
.bulle-nom { font: 800 11px var(--titre); text-transform: uppercase; letter-spacing: 0.06em; color: #e0532f; }
.bulle .erreur { color: var(--alerte); }
.passage { justify-self: center; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--texte-2); font-size: 13px; }
.reflechit { display: flex; align-items: center; }
.points i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--accent); animation: rebond 1.2s infinite; }
.points i:nth-child(2) { animation-delay: 0.15s; }
.points i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rebond { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
.accueil-tete { display: flex; gap: 14px; align-items: center; }
.accueil-tete h2 { margin: 0; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.puce { padding: 8px 12px; border: 2px solid var(--encre); border-radius: 999px; background: var(--surface-2); color: var(--texte); font: inherit; font-size: 14px; cursor: pointer; }
.btn.large { width: 100%; }
.liste-conversations { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }

.composeur {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 640px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 18px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(color-mix(in srgb, var(--fond) 0%, transparent), var(--fond) 32%);
}
.composeur textarea {
  flex: 1; min-width: 0; min-height: 48px; max-height: 140px; resize: none;
  padding: 12px 14px; border: 2px solid var(--encre); border-radius: 16px;
  background: var(--surface); color: var(--texte); font: inherit; font-size: 16px; line-height: 1.3;
}
.composeur .icone-btn { flex: none; width: 48px; height: 48px; border: 2px solid var(--encre); color: var(--encre); font-size: 20px; }
.composeur .icone-btn.actif { background: var(--alerte-doux); animation: pulse 1s infinite; }
.composeur .envoyer { background: var(--accent); color: #fff; border-color: var(--accent); }
.composeur .appeler { background: var(--soleil); }

.orbe {
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--encre);
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffcf33 55%, #f0a500);
  box-shadow: 0 0 0 6px rgba(214, 51, 108, 0.14);
}
.orbe-coeur { font: 900 26px var(--titre); color: #1c2340; }
.orbe.calme { animation: respire 4s ease-in-out infinite; }
@keyframes respire { 50% { box-shadow: 0 0 0 12px rgba(214, 51, 108, 0.08); } }

.appel {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(175deg, #ffb25c, #ff6f61 55%, #c9488b); color: #ffffff; text-align: center;
}
.appel-agent { margin: 0; font: 800 13px var(--titre); letter-spacing: 0.12em; text-transform: uppercase; color: #fff2b0; }
.appel-orbe { padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.appel .orbe { width: 168px; height: 168px; border-width: 3px; border-color: #ffffff; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.28); }
.appel .orbe-coeur { font-size: 64px; }
.appel[data-etat="ecoute"] .orbe { animation: ecoute 1.4s ease-in-out infinite; }
.appel[data-etat="reflechit"] .orbe { animation: pense 1.2s ease-in-out infinite; }
.appel[data-etat="parle"] .orbe { animation: parle 0.45s ease-in-out infinite alternate; }
.appel[data-etat="pause"] .orbe { filter: saturate(0.4) brightness(0.8); box-shadow: none; }
@keyframes ecoute { 50% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.3), 0 0 0 50px rgba(255, 255, 255, 0.12); } }
@keyframes pense { 50% { transform: scale(0.93); filter: brightness(1.2); } }
@keyframes parle { from { transform: scale(1); } to { transform: scale(1.07); } }
.appel-etat { min-height: 1.4em; margin: 0; font: 700 18px var(--titre); }
.appel-texte { max-width: 520px; max-height: 32vh; margin: 0; overflow-y: auto; color: #fff4ec; font-size: 16px; line-height: 1.5; }
.appel-aide { min-height: 1.3em; margin: 0; color: #fff4ec; font-size: 14px; opacity: 0.85; }
.appel-annuler, .appel .lien-bouton { color: #fff4ec; }
.btn.raccrocher { min-width: 180px; background: #e5484d; border-color: #fff; color: #fff; }
@media (prefers-reduced-motion: reduce) { .orbe, .appel .orbe, .points i, .composeur .icone-btn.actif { animation: none !important; } }

/* =================== Onglet Aujourd'hui : Agrume (2026-11-01) =================== */
/* Fond jaune garde ; encre brun chaud au lieu du bleu nuit ; boutons et titre du brief orange. */
:root[data-onglet="jour"] {
  --encre: #3b2a1e;
  --texte: #3b2a1e;
  --texte-2: #7a5d45;
  --bord: rgba(59, 42, 30, 0.2);
  --soleil: #ffd84a;
  --accent: #e0650c;
  --accent-texte: #ffffff;
  --accent-doux: #ffe0c2;
}
:root[data-onglet="jour"] .brief h2,
:root[data-onglet="jour"] .brief .lecteur-infos strong { color: #a8410a; }
:root[data-onglet="jour"] .lecture-btn { background: #ff8a1f; color: #fff; border-color: var(--encre); }
:root[data-onglet="jour"] .progression div { background: #ff8a1f; }

/* ---------- Partager vers Dops ---------- */
.carte.partage { display: grid; gap: 14px; }
.apercu-partage { display: grid; gap: 6px; padding: 10px 12px; border: 1.5px dashed var(--bord); border-radius: 14px; background: var(--surface-2); overflow-wrap: anywhere; }
.apercu-partage p { margin: 0; font-size: 14px; color: var(--texte-2); }
.apercu-partage a { font-size: 13px; color: var(--accent); }
.vignettes-partage { display: flex; gap: 6px; overflow-x: auto; }
.vignettes-partage img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--encre); flex: none; }
.puce[aria-checked="true"] { background: var(--accent); color: var(--accent-texte, #fff); border-color: var(--encre); }
.carte.partage textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 12px; background: var(--surface); color: var(--texte); font: inherit; }

/* Logo 1.1A (cerveau + D) : en-tete et cercle de l'onglet Dops */
img.logo { width: 46px; height: 46px; object-fit: contain; display: block; }
.orbe { background: #ffffff; }
.orbe-logo { width: 74%; height: 74%; object-fit: contain; }
img.logo { border-radius: 0; }

/* Onglet Dops : reponse qui s'ecrit, boutons de l'ecran d'appel */
.bulle.en-cours p:last-child::after { content: "▍"; margin-left: 2px; animation: pulse 1s infinite; color: var(--accent); }
.appel-boutons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.brief-appel { background: rgba(255, 255, 255, 0.92); color: #3b2320; border-color: #fff; }
.accueil-dops .btn.large + .btn.large { margin-top: 8px; }

/* Biblio : atelier de lecture et revision espacee */
.atelier-biblio { display: grid; gap: 12px; }
@media (min-width: 560px) { .atelier-biblio { grid-template-columns: 1fr 1fr; } }
.carte.atelier { display: grid; gap: 8px; align-content: start; }
.carte.atelier strong { font: 800 15px var(--titre); }
.carte.atelier .liste li { padding: 6px 0; }

/* Notifications et bascule Vols / Avions */
.rappels-grille { display: grid; gap: 12px; }
@media (min-width: 560px) { .rappels-grille { grid-template-columns: repeat(3, 1fr); } }
.bascule-vols { justify-content: flex-start; }
.carte .liste li .pastille { margin-left: auto; flex: none; }
:root[data-onglet="notifications"] { --fond: #eceff4; --surface: #ffffff; --surface-2: #e3e8f0; --encre: #1b2333; --texte: #1b2333; --texte-2: #55617a; --soleil: #c3cfe2; --accent: #3b4a6b; --accent-doux: #dde3ee; }

/* =================== Onglet Objectifs (lagon) =================== */
:root[data-onglet="objectifs"] {
  --fond: #d8f6f1;
  --surface: #fbfffe;
  --surface-2: #c3ede5;
  --encre: #123a3a;
  --texte: #123a3a;
  --texte-2: #4c7372;
  --bord: rgba(18, 58, 58, 0.16);
  --soleil: #14b8a6;
  --accent: #0f8f82;
  --accent-texte: #ffffff;
  --accent-doux: #c3ede5;
}
.cap-actions li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cap-texte { display: grid; gap: 2px; min-width: 0; }
.cap-objectif { font: 800 12px var(--titre); letter-spacing: 0.03em; color: var(--accent); }
.cap-etat { display: flex; gap: 6px; align-items: center; flex: none; }
.objectifs-liste { display: grid; gap: 12px; }
.objectif { display: grid; gap: 4px; padding-top: 10px; border-top: 1.5px dashed var(--bord); }
.objectif:first-child { border-top: 0; padding-top: 0; }
.objectif-tete { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.objectif p { margin: 0; font-size: 14px; }
.jalons li { display: grid; gap: 2px; }
.bulle-lecture { display: grid; gap: 8px; }
.bulle-lecture p, .bulle-lecture li { font-size: 14.5px; line-height: 1.5; }
.bulle-lecture .md-titre { font: 800 15px var(--titre); margin-top: 6px; }
.carte h2.titre-libre { display: block; }

/* Objectifs : tableau de score, focus, cap a trois etats */
.score-ligne { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-top: 1.5px dashed var(--bord); }
.carte.score h2 + .score-ligne { border-top: 0; }
.score-gestes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.score-gestes .geste, .soirs-oublies .geste { min-height: 34px; padding: 0 10px; }
.soirs-oublies { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 6px; }
.soir-oublie { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.pastille.focus { background: var(--soleil); color: #fff; margin-left: 6px; }
.focus-carte { display: grid; gap: 4px; }
.focus-carte strong { font: 800 17px var(--titre); }
.focus-carte p { margin: 0; }
.cap-attente { font-size: 14px; }
.cap-attente.longue { color: var(--alerte); font-weight: 600; }
.cap-pause { opacity: 0.75; }
.carte.bilan-en-tete { border-width: 3px; box-shadow: 4px 4px 0 var(--accent); }

/* Accueil : carte Cap et score */
.cap-score { display: grid; gap: 8px; }
.cap-score-focus { display: grid; gap: 2px; }
.cap-score-ligne { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cap-score .cap-objectif { color: var(--accent); }

/* Chat : details des outils, pieces jointes, couper / relancer / modifier */
.details-agent { margin: 4px 0 8px; border: 1.5px dashed var(--bord); border-radius: 12px; padding: 4px 10px; background: var(--surface-2); font-size: 13px; }
.details-agent summary { cursor: pointer; font-weight: 700; color: var(--texte-2); padding: 4px 0; }
.outil { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--bord); }
.outil-nom { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 700; }
.outil-nom code { font-size: 11px; font-weight: 400; color: var(--texte-2); }
.outil-etiquette { font: 700 10px var(--titre); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); margin-top: 2px; }
.outil pre { margin: 0; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--bord); font: 12px/1.4 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
.raison { margin: 2px 0 6px; font-size: 13px; color: var(--texte-2); white-space: pre-wrap; }
.bulle-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.moi-bloc { justify-self: end; display: grid; gap: 4px; max-width: 88%; justify-items: end; }
.moi-bloc .bulle.moi { max-width: 100%; }
.pieces-bulle { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vignette-bulle img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid var(--encre); display: block; }
.fichier-bulle { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1.5px solid var(--encre); border-radius: 99px; background: var(--surface); font-size: 13px; }
.interrompu { color: var(--alerte); }
.ligne-conversation { display: flex; gap: 6px; align-items: center; }
.ligne-conversation .carte { flex: 1; min-width: 0; }
.composeur { flex-wrap: wrap; }
.pieces-attente { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.piece-attente { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 4px; border: 1.5px solid var(--encre); border-radius: 99px; background: var(--surface); font-size: 12px; max-width: 160px; }
.piece-attente img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.piece-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece-retirer { border: 0; background: none; color: var(--texte-2); cursor: pointer; padding: 0 2px; }
.bandeau-modif { flex-basis: 100%; font-size: 13px; color: var(--accent); font-weight: 700; }
.lien-bouton { border: 0; background: none; color: var(--texte-2); text-decoration: underline; cursor: pointer; font: inherit; }
.composeur .couper { background: var(--alerte); border-color: var(--encre); color: #fff; }
.versions { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; }
.versions .btn:disabled { opacity: 0.35; }
.moi-bloc .bulle-actions { justify-content: flex-end; }
.moi-bloc .versions { margin-right: 0; }

/* ---------- Navigation : barre du bas, cinq destinations ---------- */
html { overscroll-behavior-y: contain; }
.navigation {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  display: grid; grid-template-columns: 79fr 79fr 66fr 46fr 46fr 66fr; align-items: center;
  height: 72px; box-sizing: content-box; padding: 0 4px env(safe-area-inset-bottom);
  background: var(--surface); border-top: 2px solid var(--encre);
}
.navigation a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; color: var(--encre); text-decoration: none; font-size: 12px; font-weight: 600;
}
.navigation svg { width: 22px; height: 22px; }
.navigation a[aria-current="page"] { color: var(--accent); font-weight: 800; }
.entete h1 { margin: 0; font: 800 22px/1.1 var(--titre); color: var(--texte); }
.entete h1::first-letter { text-transform: uppercase; }
.logo { border: 0; background: none; }
.tirer {
  position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%; z-index: 30; transform: translateX(-50%);
  display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--encre); color: var(--encre);
}
.tirer.tire, .tirer.tourne { display: grid; }
.tirer.tourne svg { animation: tourne 0.8s linear infinite; }

/* Aujourd'hui : place pour le composeur au-dessus de la barre */
:root[data-vue="jour"] body { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
:root[data-vue="jour"] .composeur { bottom: calc(74px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
.parole-dops { display: grid; gap: 10px; }
.phrase-dops { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--encre); }
.btn.lecture-brief { justify-self: start; gap: 8px; padding: 0 16px; min-height: 44px; background: var(--accent); color: var(--accent-texte); }
.lecture-icone { display: inline-flex; }
.lecture-icone svg { width: 16px; height: 16px; }
.boutons-egaux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ligne-arrosage { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--bord); }
.geste.arroser { flex: none; min-height: 40px; padding: 0 12px; font-weight: 700; background: var(--ok-doux); }
.raccourcis { padding-top: 4px; padding-bottom: 4px; display: grid; }
.raccourci { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 6px 0; border: 0; background: none; color: var(--texte); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.raccourci + .raccourci { border-top: 1px dashed var(--bord); }
.raccourci strong, .raccourci .meta { display: block; }
.derniere-conversation { display: grid; gap: 2px; padding: 10px 14px; border: 1.5px dashed var(--encre); border-radius: 16px; background: var(--surface); color: var(--texte); text-decoration: none; }
.derniere-conversation[hidden] { display: none; }
.derniere-tete { font-size: 12px; font-weight: 700; color: var(--texte-2); }
.derniere-texte { font-weight: 500; }
.faite-soir { padding: 3px 0; }

/* Bouton + */
.feuille-plus { display: grid; gap: 12px; }
.feuille-plus h2 { margin: 0; font: 800 20px var(--titre); }
.tuiles-plus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile-plus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; border: 2px solid var(--encre); border-radius: 16px; background: var(--surface); color: var(--encre); font: inherit; font-weight: 700; cursor: pointer; }
.tuile-plus.vive { background: var(--soleil); }
.toast-action { margin-left: 8px; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* Conversation : plein ecran, sans en-tete general ni barre */
:root[data-vue="dops"] .entete, :root[data-vue="dops"] .navigation { display: none; }
.entete-dops { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 8px; background: color-mix(in srgb, var(--fond) 92%, transparent); }
.entete-dops select { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--texte); font: 800 18px var(--titre); }
.composeur .icone-btn:disabled { opacity: 0.5; }
.composeur .icone-btn[hidden] { display: none; }

/* ---------- Objectifs : trois vues, cap par etat, mesures en barres ---------- */
.bascule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 2px solid var(--encre); border-radius: 26px; background: var(--surface); }
.bascule button { min-height: 44px; border: 0; border-radius: 22px; background: none; color: var(--encre); font: inherit; font-weight: 700; cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--soleil); }
.revue-moment { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 2px solid var(--encre); border-radius: 18px; background: var(--soleil); box-shadow: 3px 4px 0 var(--encre); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.revue-moment strong, .revue-moment .meta { display: block; color: var(--encre); }
.revue-dimanche { background: var(--soleil); display: grid; gap: 10px; }
.revue-dimanche h2 { margin: 0; }
.etape-revue { display: flex; align-items: flex-start; gap: 10px; }
.etape-numero { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--encre); color: var(--surface); font-weight: 700; }
.etape-revue > .carte { flex: 1; min-width: 0; box-shadow: none; padding: 10px; }
.etape-revue > .carte h2 { font-size: 15px; }
.lien-revue { width: 100%; align-items: center; padding: 10px; border: 2px solid var(--encre); border-radius: 16px; background: var(--surface); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.etape-texte { flex: 1; min-width: 0; }
.etape-texte strong, .etape-texte .meta { display: block; }
.cap-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--bord); }
.cap-ligne.focus { padding: 10px; border: 0; border-radius: 14px; background: var(--accent-doux); }
.cap-ligne .cap-texte { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cap-ligne .geste { flex: none; min-width: 44px; min-height: 44px; }
.cap-fait { text-decoration: line-through; }
.en-retard { color: var(--alerte); font-weight: 600; }
.cap-pauses { margin: 10px 0 0; font-size: 14px; }
.faire-point { margin-top: 10px; padding: 8px 0; color: var(--texte); }
.focus-carte { background: var(--accent-doux); display: grid; gap: 6px; }
.focus-carte h2, .focus-carte p { margin: 0; }
.objectif-repli { padding: 8px 0; border-top: 1px dashed var(--bord); }
.objectif-repli:first-child { border-top: 0; }
.objectif-repli summary { cursor: pointer; }
.objectif-repli summary strong, .objectif-repli summary .meta { display: block; }
.objectif-repli summary { list-style-position: outside; }
.objectif-repli p { margin: 6px 0 0; }
.mesure { display: grid; gap: 6px; padding: 12px 0; border-top: 1px dashed var(--bord); }
.mesures h2 + .mesure { border-top: 0; padding-top: 4px; }
.mesure .meta { margin: 0; }
.mesure-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.geste.action { min-height: 44px; padding: 0 12px; font-weight: 700; background: var(--accent-doux); }
.mesure-barre { display: grid; gap: 3px; }
.mesure-legende { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mesure-legende span::first-letter { text-transform: uppercase; }
.piste { position: relative; height: 12px; border: 2px solid var(--encre); border-radius: 99px; background: var(--surface); overflow: hidden; }
.rempli { height: 100%; border-radius: 99px; background: var(--soleil); transition: width 0.4s ease; }
.mesure-barre.atteinte .rempli { background: var(--ok); }
.rythme { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--encre); }
.carte.cap > h2 { display: block; }
.carte.cap > h2 .meta { display: block; font: 500 13px var(--sans); color: var(--texte-2); margin-top: 2px; }
.objectif-repli summary { list-style: none; position: relative; padding-right: 22px; }
.objectif-repli summary::-webkit-details-marker { display: none; }
.objectif-repli summary::after { content: "▸"; position: absolute; right: 2px; top: 0; }
.objectif-repli[open] summary::after { content: "▾"; }

/* ---------- Plantes : carte a arroser (aussi dans Aujourd'hui), liste, grille, fiche ---------- */
.carte-arroser { --encre: #17321f; --texte: #17321f; --texte-2: #33523b; --surface: #fbfff6; background: #9fd96f; color: #17321f; border-color: #17321f; box-shadow: 3px 4px 0 #17321f; display: grid; gap: 8px; }
.carte-arroser h2 { margin: 0; color: #17321f; }
.plante-a-arroser { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; background: #fbfff6; color: #17321f; text-decoration: none; }
.miniature-plante { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: block; }
.miniature-plante.sans-image { display: grid; place-items: center; background: #4f8f5b; color: #fff; font: 800 20px var(--titre); }
.plante-texte { flex: 1; min-width: 0; }
.plante-texte strong, .plante-texte .meta { display: block; }
.btn.arroser-tout { min-height: 48px; background: #17321f; color: #fff; border-color: #17321f; }
.feuille-arrosage { display: grid; gap: 14px; }
.feuille-arrosage h2 { margin: 0; font-size: 20px; }
.ligne-feuille-arrosage { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--bord); }
.ligne-feuille-arrosage:first-of-type { padding-top: 0; border-top: 0; }
.plante-tete { display: flex; align-items: center; gap: 10px; }
.plante-tete .miniature-plante { width: 44px; height: 44px; }
.plante-tete strong { flex: 1; min-width: 0; }
.barre-plantes { display: flex; align-items: center; gap: 8px; }
.bascule.deux { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plus-plante { flex: none; width: 52px; height: 52px; }
.ligne-plante { display: flex; align-items: center; gap: 10px; min-height: 64px; color: var(--texte); text-decoration: none; border-top: 1px dashed var(--bord); }
.carte h2 + .ligne-plante { border-top: 0; }
.ligne-plante .miniature-plante { width: 48px; height: 48px; }
.plante-echeance { flex: none; font-size: 14px; font-weight: 600; }
.grille-plantes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile-plante { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid var(--encre); border-radius: 18px; background: #4f8f5b; color: #fff; text-decoration: none; }
.tuile-plante img, .tuile-vide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile-vide { display: grid; place-items: center; font: 800 40px var(--titre); }
.tuile-plante strong { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(10, 30, 15, 0.85)); font-size: 16px; }
.tuile-echeance { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 10px; background: #fbfff6; color: #17321f; font-size: 12px; font-weight: 700; }
.tuile-echeance.due { background: #ffe0c7; }
:root[data-vue="plante"] .entete, :root[data-vue="plante"] .navigation { display: none; }
:root[data-vue="plante"] body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.entete-plante { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 0; }
.entete-plante h1 { flex: 1; min-width: 0; margin: 0; font: 800 22px var(--titre); }
.entete-plante .icone-btn { flex: none; width: 44px; height: 44px; font-weight: 700; color: var(--encre); }
.photo-fiche { overflow: hidden; border: 2px solid var(--encre); border-radius: 20px; box-shadow: 3px 4px 0 var(--encre); }
.photo-fiche .carrousel { height: min(46vh, 380px); border: 0; border-radius: 0; }
.fiche-plante { display: grid; gap: 10px; }
.reperes-plante { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.repere-plante { padding: 8px 2px; border-radius: 14px; background: var(--surface-2); }
.repere-plante.due { background: #ffe0c7; }
.repere-plante strong { display: block; font-size: 15px; }
.repere-plante span { font-size: 12px; }
.boutons-egaux .btn { gap: 6px; padding-left: 6px; padding-right: 6px; }

/* Dops : au centre de la barre */
.navigation a { min-width: 0; font-size: 11.5px; letter-spacing: -0.01em; }
.navigation .nav-dops { color: var(--encre); font-weight: 800; gap: 1px; }
.rond-dops { display: grid; place-items: center; width: 42px; height: 42px; box-sizing: border-box; border: 2px solid var(--encre); border-radius: 50%; background: var(--surface); }
.logo-mono { display: block; width: 26px; height: 26px; background: var(--encre); -webkit-mask: url(icones/badge-96.png) center / contain no-repeat; mask: url(icones/badge-96.png) center / contain no-repeat; }
.action-dops { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 56px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--encre); font: 700 11px var(--sans); cursor: pointer; }
.entete-dops select { font-size: 16px; }
.recentes { display: grid; gap: 10px; }
.recentes[hidden] { display: none; }
.recentes h2 { margin: 0; }
.recentes-liste { display: grid; gap: 8px; }

/* ---------- Biblio : livre en cours, tuiles atelier et revision ---------- */
.livre-en-cours { display: grid; gap: 10px; }
.livre-ouvrir { display: flex; gap: 12px; padding: 0; border: 0; background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.livre-ouvrir .couv { flex: none; width: 78px; }
.livre-texte { flex: 1; min-width: 0; display: grid; align-content: start; gap: 3px; }
.livre-texte strong { font: 800 18px/1.15 var(--titre); }
.livre-en-cours .btn { justify-self: start; }
.tuiles-biblio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile-biblio { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 96px; padding: 12px; border: 2px solid var(--encre); border-radius: 18px; background: var(--soleil); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.tuile-biblio.calme { background: var(--surface); }
.tuile-biblio span { font-size: 13px; line-height: 1.25; }
.tuile-nombre { font: 800 26px/1 var(--titre); }
.filtres button { white-space: nowrap; }

/* ---------- Vols : prochain vol, fiche en plein ecran, validation en bas ---------- */
.prochain-vol { display: grid; gap: 8px; color: var(--texte); text-decoration: none; }
.prochain-route { font: 800 24px/1.05 var(--titre); }
.voyants-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.voyant-etape { padding: 7px 2px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 700; text-align: center; }
.voyant-etape.ok { background: var(--ok-doux); }
.voyant-etape.ambre { background: var(--ambre-doux); }
.voyant-etape.alerte { background: var(--alerte-doux); }
.ligne-vol { display: flex; align-items: center; gap: 10px; min-height: 58px; color: var(--texte); text-decoration: none; border-top: 1px dashed var(--bord); }
.carte h2 + .ligne-vol { border-top: 0; }
.carte.cdb { display: grid; gap: 8px; }
.carte.cdb h2, .carte.cdb .aide { margin: 0; }
:root[data-vue="vol"] .entete, :root[data-vue="vol"] .navigation { display: none; }
:root[data-vue="vol"] body { padding-bottom: env(safe-area-inset-bottom); }
.entete-vol { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 0; }
.entete-vol .icone-btn { flex: none; width: 44px; height: 44px; color: var(--encre); }
.vol-titre-fiche { flex: 1; min-width: 0; }
.vol-titre-fiche h1 { margin: 0; font: 800 20px/1.1 var(--titre); }
.sous-onglets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.sous-onglets::-webkit-scrollbar { display: none; }
.sous-onglets button { flex: none; min-height: 44px; padding: 0 12px; white-space: nowrap; }
.panneau-validation { position: sticky; bottom: 0; z-index: 4; display: grid; gap: 8px; margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 2px solid var(--encre); }
.validation-texte { margin: 0; font-size: 14px; line-height: 1.35; }
.validation-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.validation-etat .lien-bouton { margin-left: auto; }
.btn.valider-go { min-height: 52px; background: var(--ok-doux); color: var(--encre); font-weight: 800; }
.btn.valider-nogo { min-height: 52px; background: var(--alerte-doux); color: var(--encre); font-weight: 800; }
.btn.valider-go.valide-go { background: var(--ok); color: #fff; }
.btn.valider-nogo.valide-nogo { background: var(--alerte); color: #fff; }
.etat-ligne { display: flex; align-items: center; gap: 10px; text-align: left; }
.etat-texte { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sous-onglets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; overflow: visible; }
.sous-onglets button { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 2px; font-size: 13px; }
.sous-onglets .voyant { flex: none; width: 15px; height: 15px; min-width: 0; font-size: 10px; line-height: 15px; box-sizing: border-box; }

/* ---------- Objectifs : la trajectoire ---------- */
.bande-annee { padding: 10px 12px; border: 2px solid var(--encre); border-radius: 18px; background: var(--surface); }
.bande-tete { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.bande-tete span:first-child::first-letter { text-transform: uppercase; }
.bande-mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.bande-mois span { padding: 5px 0; border-radius: 5px; background: var(--accent-doux); font-size: 10px; font-weight: 700; text-align: center; }
.bande-mois .passe { background: var(--soleil); }
.bande-mois .actuel { background: var(--encre); color: var(--surface); }
.carte-semaine { background: var(--soleil); display: grid; gap: 6px; }
.semaine-tete { display: flex; align-items: baseline; justify-content: space-between; }
.semaine-tete h2 { margin: 0; }
.tache { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; border-radius: 12px; background: var(--surface); }
.tache .geste { flex: none; min-width: 44px; min-height: 44px; background: var(--accent-doux); }
.tache-texte { flex: 1; min-width: 0; }
.tache-tag { display: block; font-size: 12px; font-weight: 700; color: var(--accent); }
.tache-tag.en-retard { color: var(--alerte); }
.barre-texte { text-decoration: line-through; }
.ajout-tache { justify-self: start; min-height: 44px; padding: 0 4px; color: var(--encre); font-weight: 700; }
.ligne-trajectoire { display: grid; gap: 5px; padding: 10px 0; color: var(--texte); text-decoration: none; border-top: 1px dashed var(--bord); }
.carte h2 + .ligne-trajectoire { border-top: 0; }
.trajectoire-tete { display: flex; justify-content: space-between; gap: 8px; }
.ligne-trajectoire .piste, .carte-but .piste { display: block; }
.ligne-trajectoire .rempli, .carte-but .rempli { display: block; }
.mesures .mesure { gap: 4px; padding: 8px 0; }
.mesures .piste { height: 10px; }
.repli-bilans { padding: 0 2px; }
.repli-bilans > .carte { margin-top: 10px; }
.carte-but { background: var(--soleil); display: grid; gap: 8px; }
.but-texte { font: 800 20px/1.15 var(--titre); }
.carte-but .piste { background: var(--surface); }
.carte-but .rempli { background: var(--encre); }
.etape-trajectoire { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.etape-trajectoire.actuelle { margin: 2px -8px; padding: 8px; border-radius: 12px; background: var(--accent-doux); }
.etape-rond { flex: none; width: 44px; height: 44px; border: 2px solid var(--encre); border-radius: 50%; background: var(--surface); color: var(--encre); font: inherit; font-weight: 800; cursor: pointer; }
.franchie .etape-rond { background: var(--soleil); }
.etape-texte { flex: 1; min-width: 0; display: grid; gap: 1px; }
:root[data-vue="objectif"] .entete, :root[data-vue="objectif"] .navigation { display: none; }
:root[data-vue="objectif"] body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.carte-but .cap-objectif { color: var(--encre); }
.carte-but .piste { border-color: var(--encre); }

/* ---------- Vol : Nav (branches et escales) ---------- */
.titre-le-vol { margin: 4px 0 0; font: 800 19px var(--titre); }
.borne-vol { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 2px solid var(--encre); border-radius: 14px; background: var(--surface); }
.borne-vol strong, .borne-vol .meta { white-space: nowrap; }
.borne-vol .meta { font-size: 13px; font-weight: 600; }
.branche-vol { display: grid; gap: 8px; }
.branche-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.branche-tete h3 { margin: 0; font: 800 16px var(--titre); }
.branche-tete .gestes, .branche-deg .gestes { display: flex; gap: 6px; flex: none; }
.branche-resume { margin: 0; padding: 7px 10px; border-radius: 10px; background: var(--accent-doux); font-size: 14px; }
.branche-deg { display: grid; gap: 6px; font-size: 14px; }
.champ.champ-ligne { grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 8px; }
.champ.champ-ligne span { font: 500 15px var(--sans); letter-spacing: 0; text-transform: none; color: var(--texte); }
.escale label:has(input[type="checkbox"]) { min-height: 32px; }
.branche-vol > .btn { justify-self: start; }
.escale { display: grid; gap: 6px; margin: 0 10px; padding: 10px 12px; border: 2px dashed var(--encre); border-radius: 14px; background: #fff7d6; }
.escale .meta { margin: 0; }
.alertes-vol { background: var(--alerte-doux); }
.alertes-vol h2 { margin: 0 0 4px; }
.alertes-vol ul, .alertes-texte { margin: 0; padding-left: 18px; }
.alertes-texte { color: var(--alerte); font-weight: 600; font-size: 14px; }

/* ---------- Vol : Perfo (piste a l'echelle, points du vol) ---------- */
.perfo-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: 12px; }
.perfo-titre strong { font: 800 16px var(--titre); }
.grille-perfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.grille-perfo > :first-child { grid-column: 1 / -1; }
.distances-branche > summary { cursor: pointer; font: 800 16px var(--titre); min-height: 32px; }
.schema-piste { display: grid; gap: 4px; margin: 8px 0 12px; }
.piste-etiquettes { position: relative; height: 18px; }
.schema-piste.double .piste-etiquettes { height: 36px; }
.piste-etiquette { position: absolute; top: 0; font-size: 12px; font-weight: 800; color: #b3001b; white-space: nowrap; }
.piste-etiquette.deuxieme { top: 18px; }
.piste-sol { position: relative; height: 52px; }
.piste-bande { position: absolute; left: 0; top: 2px; bottom: 2px; overflow: hidden; border-radius: 4px; background: #303a4a; }
.piste-bande.inconnue { border-radius: 4px 0 0 4px; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.piste-seuil { position: absolute; left: 6px; top: 7px; bottom: 7px; width: 8px; background: repeating-linear-gradient(#fff 0 4px, transparent 4px 8px); }
.piste-axe { position: absolute; left: 22px; right: 8px; top: 50%; border-top: 2px dashed #fff; }
.piste-barre { position: absolute; top: -4px; bottom: -4px; width: 5px; margin-left: -2px; background: #e0132e; }
.piste-barre.tirets { width: 0; margin-left: 0; background: none; border-left: 5px dashed #e0132e; }
.piste-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 600; }
.points-vol { margin: 8px 0 0; padding-left: 22px; font-size: 14px; display: grid; gap: 3px; }
.points-vol .avit { font-weight: 700; color: var(--accent); }
.graphe-enveloppe .point.avit { fill: var(--accent); }
.graphe-enveloppe .etiquette-point { fill: #fff; font: 800 10px var(--sans); pointer-events: none; }

/* ---------- Vol : Carbu (diagramme empile) ---------- */
.schema-carbu { gap: 16px; }
.carbu-branche { gap: 5px; }
.carbu-escale { margin: 0; padding: 6px 10px; border-radius: 8px; background: #fff7d6; font-size: 13px; font-weight: 600; }
.barre-carbu { position: relative; display: flex; height: 40px; border: 2px solid var(--encre); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg { display: block; flex: none; font: 700 10px/36px var(--sans); text-align: center; color: #14284b; overflow: hidden; }
.seg-r { background: #9db4d6; }
.seg-vol { background: #1d5fd1; color: #fff; }
.seg-m { background: #6f96e0; }
.seg-a { background: #4fb2a5; }
.seg-d { background: #e3a93b; }
.seg-ad { background: #f2cd7a; }
.seg-res { background: repeating-linear-gradient(45deg, #fff 0 4px, #e0132e 4px 6px); }
.seg-reste { background: #eaf2fb; }
.repere-bord { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--encre); }
.trait-carbu { font-size: 12px; font-weight: 700; }
.trait-carbu i { display: block; height: 3px; margin-bottom: 2px; background: var(--encre); }
.trait-carbu.autonomie { color: #b3001b; }
.trait-carbu.autonomie i { background: #e0132e; }
.resume-carbu { margin: 0; font-size: 14px; }
.carbu-legende { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding-top: 8px; border-top: 1px dashed var(--bord); font-size: 12px; }
.carbu-legende span { display: flex; align-items: center; gap: 5px; }
.carbu-legende .legende-bord { grid-column: 1 / -1; }
.pastille-bord { display: inline-block; flex: none; width: 3px; height: 14px; margin: 0 9px; background: var(--encre); }
.pastille-seg { display: inline-block; flex: none; width: 22px; height: 14px; border-radius: 3px; font: 700 9px/14px var(--sans); }

/* ---------- Vol : suppression ---------- */
.supprimer-vol { justify-self: center; align-self: center; min-height: 44px; }
.btn.supprimer { background: #e5484d; border-color: var(--encre); color: #fff; }
.liste-suppression { margin: 0; padding-left: 18px; font-size: 14px; }

/* ---------- Capturer avec Dops ---------- */
.tuile-avec-dops { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 10px 14px; border: 2px solid var(--encre); border-radius: 16px; background: #ff7a59; box-shadow: 3px 4px 0 var(--encre); color: #2a120c; font: inherit; text-align: left; cursor: pointer; }
.tuile-avec-dops svg { flex: none; }
.tuile-avec-dops > span { display: grid; gap: 2px; font-size: 13px; font-weight: 500; }
.tuile-avec-dops strong { font-size: 16px; font-weight: 700; }
.feuille-plus .aide { margin: -6px 0 0; }

/* ---------- Consommation ---------- */
.alerte-credit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 14px; background: var(--alerte-doux); }
.alerte-credit > span { display: grid; gap: 1px; }
.alerte-credit .btn { flex: none; text-decoration: none; }
.conso { display: grid; gap: 10px; }
.conso h2 { margin: 0; }
.conso-solde, .conso-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.conso-solde > span, .conso-ligne > span { min-width: 0; }
.conso .meta { display: block; font-size: 13px; }
.conso-ligne strong { flex: none; }
.conso-solde strong { flex: none; font: 800 26px var(--titre); }
.conso-barre { display: flex; height: 18px; border: 2px solid var(--encre); border-radius: 6px; overflow: hidden; }
.conso-barre .ecrit, .conso-pastille.ecrit { background: #2b3fd6; }
.conso-barre .vocal, .conso-pastille.vocal { background: #ff7a59; }
.conso-barre .avant, .conso-pastille.avant { background: #a9a18a; }
.conso-pastille { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 2px; }
.conso-trait { width: 100%; margin: 0; border: 0; border-top: 1px dashed var(--bord); }
.conso-agents { border-top: 1px dashed var(--bord); padding-top: 8px; }
.conso-agents summary { min-height: 28px; font-weight: 700; cursor: pointer; }
.conso-agents .conso-ligne { margin-top: 4px; font-size: 14px; }
.conso .aide { margin: 0; }

/* ---------- Revue du 11 novembre : memes boutons, memes feuilles, memes signes partout ---------- */
.btn.supprimer { background: var(--alerte); border-color: var(--encre); color: #ffffff; }
.pied > :only-child { grid-column: 1 / -1; }
.lien-bouton.danger { color: var(--alerte); font-weight: 700; }
.liens-feuille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.liens-feuille .lien-bouton { min-height: 44px; padding: 0 2px; display: inline-flex; align-items: center; }
.feuille-simple { display: grid; gap: 12px; }
.feuille-simple h2 { margin: 0; font: 800 20px var(--titre); }
.feuille-simple .sous-titre { margin: 4px 0 -4px; }
.objet-feuille { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
#feuille-contenu input[type="search"], #feuille-contenu input[type="date"], #feuille-contenu input[type="time"],
#feuille-contenu input[type="datetime-local"], #feuille-contenu select {
  width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--encre); border-radius: 12px;
  background: #ffffff; color: var(--texte); font: 16px var(--sans);
}
#feuille-contenu .rappel-ligne input[type="time"], #feuille-contenu .rappel-ligne select { width: auto; }
#feuille-contenu [hidden] { display: none; }
.champs-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Pastilles a choix unique (echeance, rappel, duree) */
.choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.choix button { min-height: 40px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--surface); color: var(--encre); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.choix button[aria-pressed="true"] { background: var(--soleil); }
.valeur-choix { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--soleil); font-size: 14px; font-weight: 600; }

/* Une ligne qui s'ouvre : tout le texte est le bouton, le chevron le dit */
.ligne-ouvre { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ligne-ouvre > * { grid-column: 1; }
.ligne-ouvre > .chevron { grid-column: 2; grid-row: 1 / span 2; }
.chevron { flex: none; font-size: 22px; line-height: 1; color: var(--texte-2); }
.tache-texte.ligne-ouvre .tache-tag { display: block; }
.ajout-titre { margin-left: auto; min-height: 32px; font: 700 14px var(--sans); letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--encre); }
.carte h2 .compte + .ajout-titre { margin-left: auto; }
.carte h2:has(.ajout-titre) { justify-content: flex-start; }

/* Le message et son « Annuler » restent au-dessus du composeur */
:root[data-vue="jour"] .toast, :root[data-vue="dops"] .toast { bottom: calc(164px + env(safe-area-inset-bottom)); }
.toast.visible { pointer-events: auto; }

/* En-tete : le + de la page, puis les reglages */
.entete .marque { min-width: 0; }
.entete h1 { overflow-wrap: anywhere; }
.entete .icone-btn.ajout svg { width: 24px; height: 24px; }
.icone-btn.ajout[hidden] { display: none; }
:root[data-vue="notifications"] .entete { display: none; }

/* Capturer : passer par Dops ou joindre, sous le formulaire */
.capture-plus { display: grid; gap: 10px; padding-top: 14px; border-top: 1.5px dashed var(--bord); }
.capture-plus[hidden] { display: none; }

/* Ecran Dops */
.pilule-agent { display: inline-flex; align-items: center; gap: 2px; min-width: 0; min-height: 44px; padding: 0 12px 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--surface); font-weight: 800; }
.entete-dops .pilule-agent select { flex: 1; min-width: 0; min-height: 40px; padding: 0; appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--texte); font: 800 16px var(--titre); text-overflow: ellipsis; }
.entete-dops .espace { flex: 1; }
.entete-dops .icone-btn { flex: none; }
.recentes h2 { display: flex; align-items: center; }

/* Reglages */
.groupe-reglages { display: grid; gap: 0; }
.groupe-reglages h2 { margin-bottom: 4px; }
.ligne-reglage { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 0; border-top: 1.5px dashed var(--bord); }
.groupe-reglages h2 + .ligne-reglage { border-top: 0; }
.ligne-reglage .meta { font-size: 13px; color: var(--texte-2); }
.ligne-reglage.seule { width: 100%; border-top: 2px solid var(--encre); padding: 8px 14px; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.ligne-reglage.seule .ligne-ouvre { display: grid; }
.interrupteur { flex: none; position: relative; width: 50px; height: 30px; margin: 0; appearance: none; -webkit-appearance: none; border: 2px solid var(--encre); border-radius: 999px; background: var(--surface); cursor: pointer; }
.interrupteur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--encre); transition: transform 0.15s; }
.interrupteur:checked { background: var(--ok-doux); }
.interrupteur:checked::after { transform: translateX(20px); }
.detail-rappel { display: grid; gap: 10px; }
.detail-rappel h2 { margin: 0; font: 800 20px var(--titre); }
.repli-ntfy summary { font-weight: 700; cursor: pointer; }
.repli-ntfy .aide { margin: 10px 0 4px; }
@media (prefers-reduced-motion: reduce) { .interrupteur::after { transition: none; } }
.capture-plus .btn { white-space: nowrap; padding-inline: 8px; font-size: 14px; }


/* ---------- Alcyons ---------- */

body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.logo { border-radius: 12px; }
.pied-page { max-width: 620px; margin: 28px auto 0; padding: 0 16px; }
.pied-page p { margin: 0; font-size: 12.5px; color: var(--texte-2); }
:root[data-vue="vol"] .entete { display: none; }
.saisie-fiche { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.saisie-fiche:disabled input, .saisie-fiche:disabled select { background: transparent; border-color: transparent; color: var(--texte); opacity: 1; -webkit-text-fill-color: var(--texte); }
.saisie-fiche:disabled .btn, .saisie-fiche:disabled .gestes-ligne { display: none; }
