/* ================================================================
   FAIRE DES DISCIPLES — Charte graphique
   Bleu Royal #1D4ED8 · Bleu Nuit #0F172A · Céleste #F0F9FF / #0284C7
   Or Ambré #F59E0B · Blanc Pur #FFFFFF
   Aucune ressource externe : l'application reste entièrement hors-ligne.
   ================================================================ */

:root {
  --royal:        #1D4ED8;
  --royal-clair:  #3B62E3;
  --royal-fonce:  #1739A8;
  --nuit:         #0F172A;
  --nuit-doux:    #1E293B;
  --celeste:      #F0F9FF;
  --celeste-vif:  #0284C7;
  --or:           #F59E0B;
  --or-clair:     #FBBF24;
  --or-pale:      #FEF3C7;
  --blanc:        #FFFFFF;

  --fond:         #F0F9FF;
  --surface:      #FFFFFF;
  --surface-2:    #F8FAFC;
  --bordure:      #DBEAFE;
  --texte:        #0F172A;
  --texte-doux:   #475569;
  --texte-pale:   #64748B;

  --succes:       #059669;
  --alerte:       #DC2626;

  --r-s:  10px;
  --r-m:  16px;
  --r-l:  22px;
  --ombre:    0 1px 2px rgba(15, 23, 42, .06), 0 6px 20px rgba(29, 78, 216, .07);
  --ombre-f:  0 10px 40px rgba(15, 23, 42, .18);
  --nav-h:    68px;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="sombre"] {
  --fond:       #0B1220;
  --surface:    #131C31;
  --surface-2:  #1B2438;
  --bordure:    #24314D;
  --texte:      #E7EEFB;
  --texte-doux: #A8B7D1;
  --texte-pale: #8B9AB4;
  --celeste:    #0B1220;
  --ombre:      0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}

/* ---------------------------------------------------------------- */
/*  Base                                                            */
/* ---------------------------------------------------------------- */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
body.sans-nav { padding-bottom: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
a { color: var(--royal); }

button, input, select, textarea { font-family: inherit; font-size: 16px; }

.zone { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- */
/*  En-tête                                                         */
/* ---------------------------------------------------------------- */

.entete {
  position: relative;
  background: linear-gradient(155deg, var(--royal) 0%, var(--royal-fonce) 55%, var(--nuit) 100%);
  color: var(--blanc);
  padding: calc(env(safe-area-inset-top) + 18px) 0 22px;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .22);
}
.entete::after {
  content: "";
  position: absolute;
  top: -70px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, .30), transparent 68%);
  pointer-events: none;
}
.entete .zone { position: relative; z-index: 1; }
.entete-ligne { display: flex; align-items: center; gap: 12px; }
.entete h1 { font-size: 1.22rem; }
.entete .devise { margin: 4px 0 0; font-size: .78rem; opacity: .8; line-height: 1.35; }
.entete .retour {
  background: rgba(255, 255, 255, .16); border: 0; color: #fff;
  width: 38px; height: 38px; border-radius: 12px; font-size: 1.2rem;
  cursor: pointer; flex: none; display: grid; place-items: center;
}
.entete .retour:active { transform: scale(.94); }
.entete-actions { margin-left: auto; display: flex; gap: 8px; }

.marque {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  display: grid; place-items: center;
  color: var(--nuit); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .45);
}

/* ---------------------------------------------------------------- */
/*  Sélecteur de date                                               */
/* ---------------------------------------------------------------- */

.barre-date {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px; padding: 7px 8px; margin-top: 16px;
}
.barre-date button {
  background: rgba(255, 255, 255, .16); border: 0; color: #fff;
  width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; cursor: pointer;
}
.barre-date button:disabled { opacity: .3; cursor: default; }
.barre-date .libelle { flex: 1; text-align: center; font-weight: 600; font-size: .92rem; }
.barre-date .libelle small { display: block; font-weight: 400; opacity: .72; font-size: .72rem; }

/* ---------------------------------------------------------------- */
/*  Cartes                                                          */
/* ---------------------------------------------------------------- */

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--ombre);
}
.carte-titre {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; margin-bottom: 4px;
}
.carte-titre .puce {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: .95rem;
  background: var(--celeste); color: var(--royal);
}
html[data-theme="sombre"] .carte-titre .puce { background: rgba(59, 98, 227, .18); color: var(--or-clair); }
.carte-sous { color: var(--texte-doux); font-size: .82rem; margin: 0 0 14px; }

.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Une rangee de filtres qui passe a la ligne plutot que de deborder. */
.rangee-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 380px) { .grille-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- */
/*  Champs de saisie                                                */
/* ---------------------------------------------------------------- */

.champ { margin-bottom: 14px; }
.champ:last-child { margin-bottom: 0; }
.champ > label {
  display: block; font-size: .84rem; font-weight: 600;
  color: var(--texte-doux); margin-bottom: 6px;
}
.champ .aide { font-size: .74rem; color: var(--texte-pale); margin: 5px 0 0; }

/* Tous les champs texte, y compris ceux sans attribut « type » explicite —
   un sélecteur input[type="text"] ne les atteindrait pas. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
select, textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--bordure);
  border-radius: var(--r-s);
  padding: 12px 13px;
  color: var(--texte);
  transition: border-color var(--transition), background var(--transition);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--celeste-vif);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .14);
}
input::placeholder, textarea::placeholder { color: var(--texte-pale); }

/* Compteur : − [ valeur ] + */
.compteur { display: flex; align-items: stretch; gap: 8px; }
.compteur input {
  text-align: center; font-weight: 700; font-size: 1.05rem;
  -moz-appearance: textfield;
}
.compteur input::-webkit-outer-spin-button,
.compteur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.compteur button {
  flex: none; width: 46px;
  background: var(--celeste); color: var(--royal);
  border: 1.5px solid var(--bordure); border-radius: var(--r-s);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.compteur button:active { transform: scale(.92); background: var(--royal); color: #fff; }
html[data-theme="sombre"] .compteur button { background: rgba(59, 98, 227, .16); color: var(--or-clair); }

.suffixe { display: flex; align-items: center; gap: 8px; }
.suffixe .unite { font-size: .8rem; color: var(--texte-pale); flex: none; }

/* Bouton chronomètre accolé à un champ « minutes » */
.chrono-btn {
  flex: none; width: 46px;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  border: 0; border-radius: var(--r-s); color: var(--nuit);
  font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 3px 10px rgba(245, 158, 11, .35);
}
.chrono-btn:active { transform: scale(.92); }

/* ---------------------------------------------------------------- */
/*  Boutons                                                         */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border: 0; border-radius: 14px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-bloc { width: 100%; }
.btn-or {
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  color: var(--nuit);
  box-shadow: 0 6px 18px rgba(245, 158, 11, .38);
}
.btn-royal {
  background: var(--royal); color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .32);
}
.btn-fantome {
  background: transparent; color: var(--royal);
  border: 1.5px solid var(--bordure);
}
html[data-theme="sombre"] .btn-fantome { color: var(--or-clair); }
.btn-petit { padding: 9px 14px; font-size: .82rem; border-radius: 11px; }
.btn-danger { background: transparent; color: var(--alerte); border: 1.5px solid rgba(220, 38, 38, .3); }

/* ---------------------------------------------------------------- */
/*  Jauges circulaires & statistiques                               */
/* ---------------------------------------------------------------- */

.jauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jauge svg { transform: rotate(-90deg); }
.jauge .piste { stroke: var(--bordure); }
.jauge .valeur-arc { stroke-linecap: round; transition: stroke-dashoffset 700ms cubic-bezier(.4, 0, .2, 1); }
.jauge .centre {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; line-height: 1.15;
}
.jauge .enveloppe { position: relative; }
.jauge .gros { font-size: 1.15rem; font-weight: 800; display: block; }
.jauge .petit { font-size: .64rem; color: var(--texte-pale); text-transform: uppercase; letter-spacing: .06em; }
.jauge .titre { font-size: .78rem; font-weight: 600; color: var(--texte-doux); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--surface-2); border: 1px solid var(--bordure);
  border-radius: var(--r-m); padding: 12px 8px; text-align: center;
}
.stat .n { display: block; font-size: 1.3rem; font-weight: 800; color: var(--royal); }
html[data-theme="sombre"] .stat .n { color: var(--or-clair); }
.stat .l { font-size: .68rem; color: var(--texte-pale); text-transform: uppercase; letter-spacing: .05em; }

.barre-progression { height: 8px; background: var(--bordure); border-radius: 99px; overflow: hidden; }
.barre-progression > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  transition: width 700ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- */
/*  Navigation basse                                                */
/* ---------------------------------------------------------------- */

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--bordure);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, .08);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--nav-h);
  color: var(--texte-pale); text-decoration: none;
  font-size: .64rem; font-weight: 600; position: relative;
}
.nav a .ic { font-size: 1.25rem; line-height: 1; }
.nav a.actif { color: var(--royal); }
html[data-theme="sombre"] .nav a.actif { color: var(--or-clair); }
.nav a.actif::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--or);
}

/* ---------------------------------------------------------------- */
/*  Listes                                                          */
/* ---------------------------------------------------------------- */

.liste { display: flex; flex-direction: column; gap: 10px; }
.ligne {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: var(--r-m); padding: 13px 14px;
  text-decoration: none; color: inherit;
  transition: transform var(--transition), border-color var(--transition);
}
.ligne:active { transform: scale(.99); border-color: var(--celeste-vif); }
.ligne .avatar {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: linear-gradient(145deg, var(--royal-clair), var(--royal)); color: #fff;
}
.ligne .corps { flex: 1; min-width: 0; }
.ligne .corps strong { display: block; font-size: .93rem; }
.ligne .corps span { font-size: .76rem; color: var(--texte-pale); }
.ligne .fleche { color: var(--texte-pale); font-size: 1.1rem; }

.etiquettes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.etq {
  font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  background: var(--celeste); color: var(--royal); white-space: nowrap;
}
.etq.or  { background: var(--or-pale); color: #92400E; }
.etq.vert{ background: #D1FAE5; color: #065F46; }
.etq.gris{ background: var(--surface-2); color: var(--texte-pale); }
html[data-theme="sombre"] .etq { background: rgba(59, 98, 227, .2); color: #BFD3FF; }
html[data-theme="sombre"] .etq.or { background: rgba(245, 158, 11, .18); color: var(--or-clair); }
html[data-theme="sombre"] .etq.vert { background: rgba(5, 150, 105, .2); color: #6EE7B7; }

.vide {
  text-align: center; padding: 40px 20px; color: var(--texte-pale);
}
.vide .ic { font-size: 2.6rem; display: block; margin-bottom: 10px; opacity: .55; }

/* ---------------------------------------------------------------- */
/*  Messages, bandeaux, fenêtres                                    */
/* ---------------------------------------------------------------- */

.message {
  padding: 12px 14px; border-radius: var(--r-m); font-size: .85rem;
  margin-bottom: 14px; border: 1px solid;
}
.message.erreur { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.message.succes { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.message.info   { background: var(--celeste); border-color: var(--bordure); color: var(--royal-fonce); }
html[data-theme="sombre"] .message.erreur { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); color: #FCA5A5; }
html[data-theme="sombre"] .message.succes { background: rgba(5,150,105,.12); border-color: rgba(5,150,105,.3); color: #6EE7B7; }
html[data-theme="sombre"] .message.info   { background: rgba(59,98,227,.12); border-color: rgba(59,98,227,.3); color: #BFD3FF; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  background: var(--nuit); color: #fff;
  padding: 12px 18px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--ombre-f); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.or { background: linear-gradient(145deg, var(--or-clair), var(--or)); color: var(--nuit); }

.bandeau-hors-ligne {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  background: var(--nuit); color: var(--or-clair);
  text-align: center; font-size: .76rem; font-weight: 700;
  padding: calc(env(safe-area-inset-top) + 5px) 10px 5px;
  transform: translateY(-100%); transition: transform var(--transition);
}
.bandeau-hors-ligne.visible { transform: translateY(0); }

.voile {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .55);
  display: grid; place-items: end center;
  padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.voile.visible { opacity: 1; pointer-events: auto; }
.fenetre {
  background: var(--surface); border-radius: 24px; padding: 22px;
  width: 100%; max-width: 480px;
  transform: translateY(24px); transition: transform var(--transition);
  max-height: 88vh; overflow-y: auto;
  margin-bottom: env(safe-area-inset-bottom);
}
.voile.visible .fenetre { transform: translateY(0); }

/* Chronomètre plein écran */
.chrono-affiche {
  text-align: center; padding: 10px 0 4px;
}
.chrono-affiche .temps {
  font-size: 3.2rem; font-weight: 800; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; color: var(--royal);
}
html[data-theme="sombre"] .chrono-affiche .temps { color: var(--or-clair); }
.chrono-affiche .quoi { color: var(--texte-doux); font-size: .88rem; margin-bottom: 6px; }
.chrono-boutons { display: flex; gap: 10px; margin-top: 18px; }
.chrono-boutons .btn { flex: 1; }

/* ---------------------------------------------------------------- */
/*  Bandeau d'installation iOS                                      */
/* ---------------------------------------------------------------- */

.install-ios {
  margin: 16px 0;
  background: linear-gradient(150deg, var(--royal), var(--nuit));
  color: #fff; border-radius: var(--r-l); padding: 16px 18px;
  box-shadow: var(--ombre-f); position: relative;
}
.install-ios h4 { font-size: .95rem; margin-bottom: 8px; }
.install-ios ol { margin: 0; padding-left: 18px; font-size: .82rem; line-height: 1.7; opacity: .92; }
.install-ios .fermer {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.16); border: 0; color: #fff;
  width: 28px; height: 28px; border-radius: 9px; cursor: pointer; font-size: .9rem;
}
.install-ios .partage {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(255,255,255,.2); vertical-align: -5px; margin: 0 2px;
}

/* ---------------------------------------------------------------- */
/*  Accueil / authentification                                      */
/* ---------------------------------------------------------------- */

.accueil-hero {
  min-height: 100dvh;
  background: linear-gradient(165deg, var(--royal) 0%, var(--royal-fonce) 45%, var(--nuit) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 32px; position: relative; overflow: hidden;
}
.accueil-hero::before {
  content: ""; position: absolute; top: -120px; left: -90px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(245,158,11,.28), transparent 70%);
}
.accueil-hero .zone { position: relative; z-index: 1; }
.accueil-hero .marque-grande {
  width: 74px; height: 74px; border-radius: 22px; margin-bottom: 20px;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  display: grid; place-items: center; color: var(--nuit); font-size: 2rem; font-weight: 800;
  box-shadow: 0 10px 30px rgba(245,158,11,.45);
}
.accueil-hero h1 { font-size: 1.9rem; line-height: 1.15; }
.accueil-hero .devise {
  font-size: .95rem; opacity: .85; margin: 12px 0 28px; max-width: 22em; line-height: 1.55;
}
.accueil-hero .actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.accueil-hero .actions .btn-fantome { color: #fff; border-color: rgba(255,255,255,.35); }

.verset-jour {
  border-left: 3px solid var(--or); padding: 2px 0 2px 14px;
  font-style: italic; color: var(--texte-doux); font-size: .88rem;
}
.verset-jour cite { display: block; font-style: normal; font-weight: 700; font-size: .76rem; color: var(--or); margin-top: 6px; }

/* ---------------------------------------------------------------- */
/*  Historique                                                      */
/* ---------------------------------------------------------------- */

.jour {
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: var(--r-m); padding: 14px; margin-bottom: 10px;
}
.jour header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.jour header .date { font-weight: 700; font-size: .88rem; }
.jour header .total { margin-left: auto; font-size: .74rem; color: var(--texte-pale); }
.jour .extrait { font-size: .82rem; color: var(--texte-doux); }
.jour .extrait b { color: var(--texte); font-weight: 600; }

/* ---------------------------------------------------------------- */
/*  Compte rendu imprimable                                         */
/* ---------------------------------------------------------------- */

.rapport { background: #fff; color: #0F172A; }
.rapport-entete {
  border-bottom: 3px solid var(--royal); padding-bottom: 12px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.rapport-entete h2 { font-size: 1.15rem; color: var(--royal); }
.rapport-entete .devise { font-size: .7rem; color: #64748B; margin-top: 3px; }
.rapport-entete .periode { margin-left: auto; text-align: right; font-size: .75rem; color: #64748B; }
.rapport h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--royal); margin: 18px 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid #DBEAFE;
}
.rapport table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.rapport th, .rapport td { padding: 6px 8px; border-bottom: 1px solid #EDF2F9; text-align: left; }
.rapport th { color: #64748B; font-weight: 600; }
.rapport td.n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rapport .bilan {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0;
}
.rapport .bilan div {
  border: 1px solid #DBEAFE; border-radius: 12px; padding: 10px 12px; background: #F8FBFF;
}
.rapport .bilan b { display: block; font-size: 1.15rem; color: var(--royal); }
.rapport .bilan span { font-size: .68rem; color: #64748B; text-transform: uppercase; letter-spacing: .05em; }
.rapport .meditations li { margin-bottom: 8px; font-size: .78rem; }
.rapport .signature {
  margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  font-size: .72rem; color: #64748B;
}
.rapport .signature div { border-top: 1px solid #94A3B8; padding-top: 5px; }

@media print {
  body { background: #fff; padding: 0; }
  .nav, .entete, .bandeau-hors-ligne, .sans-impression, .toast, .voile { display: none !important; }
  .zone { max-width: none; padding: 0; }
  .rapport { padding: 0; }
  .carte { border: 0; box-shadow: none; margin: 0; padding: 0; }
  @page { size: A4; margin: 14mm; }
}

/* ---------------------------------------------------------------- */
/*  Divers                                                          */
/* ---------------------------------------------------------------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.centre { text-align: center; }
.doux { color: var(--texte-doux); font-size: .84rem; }
.pale { color: var(--texte-pale); font-size: .78rem; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.separateur { height: 1px; background: var(--bordure); margin: 16px 0; border: 0; }

.code-invitation {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.25rem; font-weight: 700; letter-spacing: .12em;
  background: var(--celeste); color: var(--royal);
  border: 1.5px dashed var(--celeste-vif);
  border-radius: var(--r-m); padding: 14px; text-align: center;
}
html[data-theme="sombre"] .code-invitation { background: rgba(59,98,227,.14); color: var(--or-clair); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- */
/*  Aperçu du compte rendu avant impression                         */
/* ---------------------------------------------------------------- */

.apercu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.apercu-barre {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  background: var(--surface); border-bottom: 1px solid var(--bordure);
}
.apercu-page {
  max-width: 760px; margin: 0 auto;
  padding: 20px 16px 70px;
  background: #FFFFFF; color: #0F172A;
}
body.en-impression { overflow: hidden; }

@media print {
  body.en-impression #application { display: none !important; }
  .apercu { position: static; overflow: visible; background: #fff; }
  .apercu-page { max-width: none; margin: 0; padding: 0; }
}

/* ---------------------------------------------------------------- */
/*  Mouvements d'argent                                             */
/* ---------------------------------------------------------------- */

.jour-argent { margin-bottom: 18px; }
.jour-argent h4 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--texte-pale);
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px solid var(--bordure);
}
.jour-argent h4 span { margin-left: auto; font-weight: 700; color: var(--texte-doux); letter-spacing: 0; }

.mouvement {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: 0; border-radius: var(--r-s);
  padding: 10px 8px; margin: 2px 0; cursor: pointer;
  text-align: left; color: inherit; font-size: 1rem;
  transition: background var(--transition);
}
.mouvement:active { background: var(--surface-2); }
.mouvement .ic { font-size: 1.15rem; flex: none; width: 26px; text-align: center; }
.mouvement .corps { flex: 1; min-width: 0; }
.mouvement .corps strong { display: block; font-size: .86rem; font-weight: 600; }
.mouvement .corps span {
  display: block; font-size: .74rem; color: var(--texte-pale);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mouvement .montant { font-weight: 800; font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.choix-sens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choix-sens button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border-radius: var(--r-s); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--bordure);
  color: var(--texte-doux); font-size: .74rem; font-weight: 600;
  transition: all var(--transition);
}
.choix-sens button .ic { font-size: 1.2rem; }
.choix-sens button.actif {
  background: var(--royal); border-color: var(--royal); color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, .3);
}

/* ---------------------------------------------------------------- */
/*  Arbre de filiation spirituelle                                  */
/* ---------------------------------------------------------------- */

.arbre { margin-top: 6px; }
.arbre-etage {
  background: var(--surface-2); border: 1px solid var(--bordure);
  border-radius: var(--r-m); padding: 12px 14px;
}
.arbre-etage.moi {
  background: linear-gradient(135deg, rgba(29, 78, 216, .10), rgba(245, 158, 11, .10));
  border-color: var(--celeste-vif);
}
.arbre-role {
  display: block; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--texte-pale); margin-bottom: 8px;
}
.arbre-personne { display: flex; align-items: center; gap: 11px; }
.arbre-personne .avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: linear-gradient(145deg, var(--royal-clair), var(--royal)); color: #fff;
}
.arbre-personne .corps { min-width: 0; flex: 1; }
.arbre-personne .corps strong { display: block; font-size: .9rem; }
.arbre-personne .corps span { display: block; font-size: .74rem; color: var(--texte-pale); }
.arbre-personne.vide-personne .avatar {
  background: var(--bordure); color: var(--texte-pale);
}
.arbre-etage .pale { margin: 8px 0 0; }
.arbre-etage .btn { margin-top: 10px; }
.arbre-trait {
  width: 2px; height: 18px; margin: 0 auto;
  background: linear-gradient(var(--bordure), var(--celeste-vif));
}

/* ---------------------------------------------------------------- */
/*  Fil des étapes (inscription)                                    */
/* ---------------------------------------------------------------- */

.etapes {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 4px; font-size: .78rem; font-weight: 600;
}
.etapes .etape {
  display: flex; align-items: center; gap: 7px;
  color: var(--texte-pale); cursor: default;
}
.etapes .etape b {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem;
  background: var(--bordure); color: var(--texte-pale);
  transition: all var(--transition);
}
.etapes .etape.actif { color: var(--royal); }
.etapes .etape.actif b { background: var(--royal); color: #fff; }
html[data-theme="sombre"] .etapes .etape.actif { color: var(--or-clair); }
html[data-theme="sombre"] .etapes .etape.actif b { background: var(--or); color: var(--nuit); }
.etapes .trait { flex: 1; height: 2px; background: var(--bordure); border-radius: 2px; }

/* ---------------------------------------------------------------- */
/*  Tableaux simples et répartitions (administration)               */
/* ---------------------------------------------------------------- */

.tableau-simple { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tableau-simple td { padding: 7px 2px; border-bottom: 1px solid var(--bordure); }
.tableau-simple td.n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tableau-simple tr:last-child td { border-bottom: 0; }

.repartition-barre {
  display: flex; height: 12px; border-radius: 99px; overflow: hidden;
  background: var(--bordure);
}
.repartition-barre > span { display: block; height: 100%; }
.legende { list-style: none; margin: 12px 0 0; padding: 0; font-size: .78rem; }
.legende li { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--texte-doux); }
.legende i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85em; background: var(--surface-2); padding: 1px 5px;
  border-radius: 5px; border: 1px solid var(--bordure);
}

/* ---------------------------------------------------------------- */
/*  Chronomètre                                                     */
/* ---------------------------------------------------------------- */

.chrono-barre {
  background: linear-gradient(140deg, var(--royal) 0%, var(--royal-fonce) 60%, var(--nuit) 100%);
  border: 0; color: #fff;
  display: grid; gap: 14px;
  box-shadow: 0 8px 26px rgba(29, 78, 216, .28);
}
.chrono-barre.actif { box-shadow: 0 8px 30px rgba(245, 158, 11, .32); }
.chrono-barre select {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.chrono-barre select option { color: var(--texte); background: var(--surface); }
.chrono-barre .btn-fantome { color: #fff; border-color: rgba(255, 255, 255, .35); }

.chrono-tete { display: flex; align-items: center; gap: 14px; }
.chrono-icone {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(255, 255, 255, .14);
}
.chrono-icone.tourne { animation: battement 2s ease-in-out infinite; }
@keyframes battement {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); }
  50%      { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
.chrono-etiquette {
  display: block; font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; opacity: .7;
}
.chrono-temps {
  font-size: 2rem; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  color: var(--or-clair);
}
.chrono-sous { display: block; font-size: .78rem; opacity: .82; }
.chrono-actions { display: flex; gap: 10px; }
.chrono-actions .btn { flex: 1; }

.lien-discret {
  background: none; border: 0; color: rgba(255, 255, 255, .6);
  font-size: .74rem; text-decoration: underline; cursor: pointer;
  padding: 0; justify-self: center;
}

.chrono-ailleurs {
  display: flex; align-items: center; gap: 12px;
  border-color: var(--or); background: var(--or-pale);
}
.chrono-ailleurs .corps { flex: 1; min-width: 0; }
.chrono-ailleurs .corps strong {
  display: block; font-size: 1.05rem; color: #92400E;
  font-variant-numeric: tabular-nums;
}
.chrono-ailleurs .corps span { font-size: .76rem; color: #92400E; opacity: .85; }
.chrono-ailleurs .chrono-icone { background: rgba(146, 64, 14, .12); color: #92400E; width: 40px; height: 40px; }
html[data-theme="sombre"] .chrono-ailleurs { background: rgba(245, 158, 11, .14); }
html[data-theme="sombre"] .chrono-ailleurs .corps strong,
html[data-theme="sombre"] .chrono-ailleurs .corps span,
html[data-theme="sombre"] .chrono-ailleurs .chrono-icone { color: var(--or-clair); }

/* Pastille flottante : présente sur toutes les pages tant qu'il tourne */
.chrono-flottant {
  position: fixed; right: 14px; z-index: 50;
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  color: var(--nuit); font-size: .82rem; font-weight: 700;
  box-shadow: 0 6px 22px rgba(245, 158, 11, .5);
  animation: apparition 260ms cubic-bezier(.4, 0, .2, 1);
  max-width: calc(100vw - 28px);
}
.chrono-flottant.en-pause {
  background: var(--nuit-doux); color: var(--or-clair);
  box-shadow: 0 6px 22px rgba(15, 23, 42, .4);
}
.chrono-flottant .t { font-variant-numeric: tabular-nums; }
.chrono-flottant .q {
  max-width: 34vw; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; opacity: .75; font-weight: 600;
}
@keyframes apparition {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
body.sans-nav .chrono-flottant { bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- */
/*  Indicateurs d'assiduité (liste des disciples)                   */
/* ---------------------------------------------------------------- */

.ligne-disciple { align-items: flex-start; }
.ligne-disciple .avatar { margin-top: 2px; }
.ligne-disciple .corps strong {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ligne-disciple .fleche { align-self: center; }

.indicateurs { margin: 8px 0 2px; display: grid; gap: 5px; }
.indic { display: flex; align-items: center; gap: 8px; }
.indic-nom {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--texte-pale);
  width: 48px; flex: none;
}
.indic-piste {
  flex: 1; height: 6px; border-radius: 99px;
  background: var(--bordure); overflow: hidden;
}
.indic-piste > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--royal), var(--celeste-vif));
  transition: width 600ms cubic-bezier(.4, 0, .2, 1);
}
.indic:nth-child(2) .indic-piste > span {
  background: linear-gradient(90deg, var(--or), var(--or-clair));
}
.indic-valeur {
  font-size: .68rem; font-weight: 700; color: var(--texte-doux);
  width: 34px; text-align: right; flex: none;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- */
/*  Grand écran : la navigation passe sur le côté                   */
/* ---------------------------------------------------------------- */

@media (min-width: 900px) {
  :root { --barre-l: 250px; }

  body { padding-bottom: 0; padding-left: var(--barre-l); }
  body.sans-nav { padding-left: 0; }

  .nav {
    top: 0; bottom: 0; right: auto; width: var(--barre-l);
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 4px; padding: 84px 14px 14px;
    border-top: 0; border-right: 1px solid var(--bordure);
    box-shadow: none;
    background: var(--surface);
  }
  .nav::before {
    content: "✝ Faire des Disciples";
    position: absolute; top: 26px; left: 20px; right: 14px;
    font-size: .92rem; font-weight: 800; color: var(--royal);
    line-height: 1.25;
  }
  html[data-theme="sombre"] .nav::before { color: var(--or-clair); }
  .nav a {
    flex-direction: row; justify-content: flex-start;
    height: auto; padding: 12px 14px; gap: 12px;
    border-radius: 12px; font-size: .88rem;
  }
  .nav a .ic { font-size: 1.15rem; }
  .nav a.actif { background: var(--royal); color: #fff; }
  html[data-theme="sombre"] .nav a.actif { background: rgba(59, 98, 227, .28); color: var(--or-clair); }
  .nav a.actif::before { display: none; }

  .entete { border-radius: 0 0 26px 0; }
  .zone { max-width: 860px; }
  .chrono-flottant { bottom: 20px; right: 20px; }

  /* Deux colonnes pour les écrans vraiment larges */
  @media (min-width: 1240px) {
    .zone { max-width: 1040px; }
  }
}

@media print {
  .chrono-flottant { display: none !important; }
}

/* ---------------------------------------------------------------- */
/*  Champs en grille                                                */
/*  Deux colonnes dès qu'il y a la place : sans cela, la page       */
/*  Service devient interminable à faire défiler sur téléphone.     */
/* ---------------------------------------------------------------- */

.champs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px 12px;
  align-items: start;
}
.champs-grille .champ { margin-bottom: 0; }
.champs-grille .champ-large { grid-column: 1 / -1; }
.champs-grille .compteur button { width: 40px; }

/* ---------------------------------------------------------------- */
/*  Tableau de bord : série, tuiles de modules, graphique           */
/* ---------------------------------------------------------------- */

.raccourcis {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 0;
}
.serie {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--bordure);
  font-size: .8rem; font-weight: 700; color: var(--texte-pale);
}
.serie.vive {
  background: var(--or-pale); border-color: var(--or); color: #92400E;
}
html[data-theme="sombre"] .serie.vive {
  background: rgba(245, 158, 11, .16); color: var(--or-clair);
}
.raccourcis .btn { margin-left: auto; }

.grille-modules {
  display: grid;
  /* minmax(0, 1fr) et non 1fr : sans cela, un texte long élargit sa colonne
     et les deux tuiles cessent d'avoir la même largeur. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tuile {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px; border-radius: var(--r-m);
  background: var(--surface-2); border: 1px solid var(--bordure);
  text-decoration: none; color: inherit;
  transition: transform var(--transition), border-color var(--transition);
}
.tuile:active { transform: scale(.98); }
.tuile.faite { border-color: var(--celeste-vif); }
.tuile-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tuile-icone { font-size: 1.3rem; line-height: 1; }
.tuile strong { font-size: .92rem; }
.tuile > span:last-child {
  font-size: .74rem; color: var(--texte-pale);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.graphe { position: relative; margin: 4px 0 2px; }
.graphe-objectif {
  stroke: var(--or); stroke-width: 1.5;
  stroke-dasharray: 5 4; opacity: .75;
}
.graphe-jour {
  font-size: 11px; font-weight: 700; fill: var(--texte-pale);
  letter-spacing: .04em;
}
.graphe-jour.actuel { fill: var(--or); }
.graphe-etiquette-objectif {
  position: absolute; top: -4px; right: 0;
  font-size: .62rem; font-weight: 700; color: #92400E;
  background: var(--or-pale); padding: 2px 7px; border-radius: 99px;
}
html[data-theme="sombre"] .graphe-etiquette-objectif {
  background: rgba(245, 158, 11, .18); color: var(--or-clair);
}

/* ---------------------------------------------------------------- */
/*  Apurement des dettes, encarts, sélecteur de mois                */
/* ---------------------------------------------------------------- */

.apurement { margin-top: 4px; }
.apurement-ligne {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 8px; font-size: .88rem;
}
.apurement-ligne span { color: var(--texte-pale); font-size: .8rem; font-weight: 700; }

.encart {
  background: var(--surface-2); border: 1px solid var(--bordure);
  border-radius: var(--r-m); padding: 13px 15px;
}
.encart strong { display: block; font-size: .86rem; margin-bottom: 6px; }
.encart ol { margin: 0; padding-left: 18px; font-size: .8rem; line-height: 1.75; color: var(--texte-doux); }
.partage-clair {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 5px; background: var(--bordure); vertical-align: -4px;
}

.choix-mois {
  display: inline-block; position: relative;
  width: 22px; height: 20px; vertical-align: -4px; margin-left: 4px;
  cursor: pointer;
}
.choix-mois::after {
  content: "▾"; position: absolute; inset: 0;
  display: grid; place-items: center; pointer-events: none;
  font-size: .8rem; color: #fff; opacity: .8;
}
.choix-mois input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; padding: 0; border: 0;
}

/* ---------------------------------------------------------------- */
/*  Compte rendu : deux colonnes, pour tenir sur une page            */
/* ---------------------------------------------------------------- */

.rapport-colonnes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px;
  align-items: start;
}
@media (max-width: 620px) {
  .rapport-colonnes { grid-template-columns: 1fr; }
}
.rapport h2.module {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--royal); margin: 18px 0 8px;
  padding-bottom: 6px; border-bottom: 2px solid #DBEAFE;
}
.rapport h2.module .lettre {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--royal); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: 0;
}
.rapport-entete .periode .genre {
  display: block; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .1em; color: #94A3B8;
}
.rapport .rapport-colonnes h3 { margin-top: 12px; }

/* Sur grand écran, la saisie et son bilan se répondent côte à côte */
@media (min-width: 1080px) {
  .colonnes-larges {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
    align-items: start;
  }
}

/* ---------------------------------------------------------------- */
/*  Signature LIMATA                                                */
/* ---------------------------------------------------------------- */

.signature-limata {
  margin: 22px 0 0;
  text-align: center;
  font-size: .74rem;
  color: var(--texte-pale);
  letter-spacing: .02em;
}
.signature-limata a {
  color: var(--or);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(245, 158, 11, .4);
  padding-bottom: 1px;
}
.signature-limata a:hover { border-bottom-color: var(--or); }
.signature-limata.compacte { margin-top: 14px; font-size: .7rem; }

.accueil-hero .signature-limata { color: rgba(255, 255, 255, .55); margin-top: 18px; text-align: left; }
.accueil-hero .signature-limata a { color: var(--or-clair); }

.lien-installer {
  display: inline-block; margin-top: 20px;
  font-size: .82rem; font-weight: 700; color: var(--or-clair);
  text-decoration: none;
  border: 1px solid rgba(251, 191, 36, .4);
  border-radius: 99px; padding: 8px 16px;
}

.pied-application {
  text-align: center; margin: 24px 0 34px;
  display: grid; gap: 6px; justify-items: center;
}
.pied-application .marque-pied {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 4px;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  color: var(--nuit); font-weight: 800;
}
.pied-application strong { font-size: .84rem; color: var(--texte-doux); }
.pied-application > span:last-of-type {
  font-size: .74rem; color: var(--texte-pale); max-width: 30em; line-height: 1.6;
}
.pied-application .signature-limata { margin-top: 10px; }

/* ---------------------------------------------------------------- */
/*  Page d'installation                                             */
/* ---------------------------------------------------------------- */

.carte.mise-en-avant {
  border-color: var(--celeste-vif);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .12), var(--ombre);
}
.etapes-installation {
  margin: 10px 0 0; padding-left: 20px;
  font-size: .86rem; line-height: 1.85; color: var(--texte-doux);
}
.etapes-installation li { margin-bottom: 6px; }
.etapes-installation b { color: var(--texte); }

.liste-garanties { margin: 8px 0 0; padding-left: 18px; font-size: .85rem; line-height: 1.7; color: var(--texte-doux); }
.liste-garanties li { margin-bottom: 8px; }
.liste-garanties b { color: var(--texte); }

@media print {
  .signature-limata, .pied-application, .lien-installer { display: none !important; }
}

/* ---------------------------------------------------------------- */
/*  Compte rendu : histogramme et parole reçue                      */
/* ---------------------------------------------------------------- */

.rapport .graphe-rapport { margin: 6px 0 2px; }
.rapport .graphe-rapport .axe { font-size: 11px; fill: #64748B; }
.rapport .meditations .parole {
  display: block; margin-top: 3px; padding-left: 8px;
  border-left: 2px solid #F59E0B; color: #92400E; font-size: .74rem;
}

/* ---------------------------------------------------------------- */
/*  Bibliothèque de citations (administration)                      */
/* ---------------------------------------------------------------- */

.citation-ligne {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-s);
  background: var(--surface-2); border: 1px solid var(--bordure);
}
.citation-ligne .corps { flex: 1; min-width: 0; }
.citation-ligne .corps em { display: block; font-size: .84rem; line-height: 1.5; }
.citation-ligne .corps span {
  display: block; margin-top: 4px;
  font-size: .72rem; font-weight: 700; color: var(--texte-pale);
}
.citation-ligne .btn { flex: none; }

/* ---------------------------------------------------------------- */
/*  Rappels : présélections et créneaux                             */
/* ---------------------------------------------------------------- */

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

.creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.creneau {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: var(--r-s); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--bordure);
  color: var(--texte-doux); transition: all var(--transition);
}
.creneau strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.creneau span { font-size: .64rem; text-align: center; line-height: 1.2; }
.creneau.actif {
  background: var(--royal); border-color: var(--royal); color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .3);
}
html[data-theme="sombre"] .creneau.actif {
  background: var(--or); border-color: var(--or); color: var(--nuit);
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}

/* ---------------------------------------------------------------- */
/*  Page d'invitation                                               */
/* ---------------------------------------------------------------- */

.carte-invitation { text-align: center; padding: 26px 20px; }
.carte-invitation .avatar-invitant {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px;
  background: linear-gradient(145deg, var(--royal-clair), var(--royal));
  color: #fff; font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .32);
}
.carte-invitation h3 { font-size: 1.25rem; }
.carte-invitation .lieu { font-size: .8rem; color: var(--texte-pale); margin: 4px 0 10px; }
.carte-invitation .intention {
  font-size: .95rem; color: var(--texte-doux); margin: 0 0 10px;
  font-style: italic;
}

/* ---------------------------------------------------------------- */
/*  Choix de langue pour un pays bilingue                           */
/* ---------------------------------------------------------------- */

.choix-langue-pays {
  margin-top: 10px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--celeste-vif);
  border-radius: var(--r-m);
}
.choix-langue-pays .intitule {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--texte-doux); margin-bottom: 10px;
}
.choix-langue-pays .boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.choix-langue-pays button {
  flex: 1; min-width: 120px;
  padding: 11px 14px; border-radius: var(--r-s); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--bordure);
  color: var(--texte-doux); font-size: .88rem; font-weight: 700;
  transition: all var(--transition);
}
.choix-langue-pays button.actif {
  background: var(--royal); border-color: var(--royal); color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .28);
}
html[data-theme="sombre"] .choix-langue-pays button.actif {
  background: var(--or); border-color: var(--or); color: var(--nuit);
}
