/* Police Figtree (comme Papyrus) : fichiers locaux public/fonts (police variable, licence SIL OFL), gardés hors ligne. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-italic-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-italic-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Fluvius : une seule app, mise en page selon la largeur (téléphone, moins de 760 px : une colonne et des onglets ;
   ordinateur : trois colonnes). Couleur : prune, dégradé du logo #ab72bc → #713c8c ; accents un peu plus bleutés que
   le prune de l'interface de la paroisse (#7c4579, #8e518d).
   --accent : remplissages et icônes actives ; --accent-ink : textes actifs ; --btn-bg : boutons à texte blanc. */
:root {
    --bg: #f5f4f8; --surface: #ffffff; --surface2: #faf9fc; --line: rgba(70, 45, 100, .12);
    --fg: #1f1a22; --muted: #786d7d; --accent: #8a55b0; --accent-ink: #64368a; --accent-soft: #eee8f7;
    --brand-ink: #713c8c; --brand-sub: #9c6bbf; --btn-bg: #713c8c; --btn-fg: #ffffff; --danger: #c4314b; --warn: #b26a00;
    --shadow: 0 18px 50px rgba(50, 20, 60, .18);
    --sans: "Figtree", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
    --brand: "Gill Sans", "Gill Sans MT", Seravek, "Trebuchet MS", sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #18141a; --surface: #221c24; --surface2: #29222c; --line: rgba(240, 210, 250, .1);
        --fg: #f3edf5; --muted: #a99fae; --accent: #cf96e2; --accent-ink: #e3baf0; --accent-soft: #34294a;
        --brand-ink: #f5eaf8; --brand-sub: #cf96e2; --btn-bg: #864aa3; --danger: #ff6b82; --warn: #f0a640;
        --shadow: 0 18px 50px rgba(0, 0, 0, .55); color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #18141a; --surface: #221c24; --surface2: #29222c; --line: rgba(240, 210, 250, .1);
    --fg: #f3edf5; --muted: #a99fae; --accent: #cf96e2; --accent-ink: #e3baf0; --accent-soft: #34294a;
    --brand-ink: #f5eaf8; --brand-sub: #cf96e2; --btn-bg: #864aa3; --danger: #ff6b82; --warn: #f0a640;
    --shadow: 0 18px 50px rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px;
       -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a.item, a.arow, a.tbtn, a.back, a.btn, .tabs a { color: inherit; text-decoration: none; }
a.tbtn, a.back { color: var(--accent-ink); }
a.btn { color: var(--btn-fg); }
a.btn.ghost { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; }
.boot { height: 100%; display: grid; place-items: center; font-family: var(--brand); font-weight: 600; letter-spacing: .09em; color: var(--brand-ink); text-align: center; font-size: 22px; }
.boot small { display: block; font-family: "Avenir Next", Avenir, var(--sans); font-weight: 600; letter-spacing: .19em; font-size: 10px; color: var(--brand-sub); margin-top: 4px; }

.app { height: 100%; display: flex; flex-direction: column; position: relative;
       padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 23%;
        background: linear-gradient(135deg, #ab72bc, #713c8c); color: #fff; flex: none; }
.logo .ic { stroke-width: 1.31; }
/* Logo du menu : mêmes mesures que Papyrus (23.11.2026) : emblème de 34 px, nom en 18 px, sous-titre en 9,5 px resserrés. */
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 22px; width: 100%; text-align: left; }
.brand .names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand b { font-family: var(--brand); font-weight: 600; letter-spacing: .09em; font-size: 18px; color: var(--brand-ink); line-height: 18px; }
.brand small { font-family: "Avenir Next", Avenir, var(--sans); font-weight: 600; letter-spacing: .17em; font-size: 9.5px; line-height: 12px; /* hauteur fixée : Safari et Chrome n'ont pas la même hauteur « normale » pour Avenir Next */
    color: var(--brand-sub); white-space: nowrap; padding-left: 1px; } /* le « L » d'Avenir Next commence plus tôt que le « F » de Gill Sans : 1 px pour les aligner */
.banner { flex: none; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; padding: 7px 12px;
          background: var(--accent-soft); color: var(--accent-ink); }
.banner .ic { width: 16px; height: 16px; }
.banner button { text-decoration: underline; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--btn-bg); color: var(--btn-fg);
       font-weight: 600; padding: 10px 16px; border-radius: 11px; }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); font-weight: 500; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 14px; padding: 7px 8px; border-radius: 9px; }
.tbtn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tbtn .ic { width: 20px; height: 20px; }
.tbtn[aria-pressed="true"] { color: var(--accent); }
.tbtn.label-sm span { font-size: 13px; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.empty { padding: 48px 30px; text-align: center; color: var(--muted); line-height: 1.55; }
.empty .ic { width: 40px; height: 40px; stroke-width: 1.5; color: color-mix(in srgb, var(--accent) 60%, var(--muted)); margin-bottom: 8px; }
.empty .btn { margin-top: 14px; }
.small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.n { min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }

/* ordinateur : trois colonnes */
.desk { display: grid; grid-template-columns: 270px minmax(320px, 400px) minmax(0, 1fr); height: 100%; }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.col-menu { background: var(--surface2); border-right: 1px solid var(--line); }
.col-list { border-right: 1px solid var(--line); background: var(--surface); }
.col-read { background: var(--bg); }
.colhead { flex: none; display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px 16px; min-height: 58px; border-bottom: 1px solid var(--line); }
.colhead h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colhead .sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* menu */
.nav { padding: 4px 8px 16px; }
.nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 10px 6px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.nav h4 button { color: var(--accent-ink); display: flex; padding: 2px; border-radius: 6px; }
.nav h4 button .ic { width: 17px; height: 17px; }
.item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 9px; min-height: 36px; }
.item:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.item[aria-current="page"] .n { color: var(--accent-ink); }
.item .ic { color: var(--accent); }
.item .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.sub { padding-left: 14px; font-size: 14px; }
.item.unread-none .lbl { color: var(--muted); }
.item .warn { color: var(--warn); width: 16px; height: 16px; }
.fold { display: flex; align-items: center; }
.fold > .twist { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 6px; flex: none; }
.fold > .twist .ic { width: 16px; height: 16px; transition: transform .15s; }
.fold.closed > .twist .ic { transform: rotate(-90deg); }
.fold > .item { flex: 1; min-width: 0; }
.feedicon { width: 18px; height: 18px; border-radius: 4px; flex: none; object-fit: cover; background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted);
            font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.feedicon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* liste des articles */
.arow { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.arow:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.arow.sel { background: var(--accent-soft); }
.arow .abody { flex: 1; min-width: 0; }
.arow .src { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.arow .src .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.arow .src time { margin-left: auto; flex: none; }
.arow .t { display: block; font-size: 15px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.arow .t + .src { margin-top: 5px; }
/* Ligne du dessous (source, heure) plus discrète que le titre (23.11.2026) */
.arow .src { font-size: 11.5px; gap: 5px; }
.arow .src .feedicon { width: 14px; height: 14px; border-radius: 3px; font-size: 9px; }
.arow .src .saved { width: 13px; height: 13px; }
.arow.read .t { font-weight: 450; color: color-mix(in srgb, var(--fg) 72%, var(--muted)); }
.arow .dot { position: absolute; left: 6px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.arow .saved { color: var(--accent); width: 15px; height: 15px; }
/* Ligne d'article : image à gauche, puis le titre, et dessous la source et l'heure (choix de l'utilisateur, 23.11.2026).
   Sans image : un carré pâle avec l'icône de la source, pour que les titres restent alignés. */
.arow { gap: 12px; align-items: flex-start; }
.arow .thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface2); }
.arow .thumb.ph { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--muted) 10%, transparent); }
/* Icône du site : sans fond (pas de violet derrière le logo de la source) ; seule l'initiale de secours a un fond gris. */
.feedicon:has(img) { background: none; }
.arow .thumb.ph .feedicon { width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
.more { display: block; width: 100%; padding: 14px; color: var(--accent-ink); font-weight: 600; }
.seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { padding: 4px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.listbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.listbar .grow { flex: 1; }
.feederr { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--fg); font-size: 13.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.feederr .ic { color: var(--warn); width: 18px; height: 18px; margin-top: 1px; }
.feederr button { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }

/* lecture */
.readbar { flex: none; display: flex; align-items: center; gap: 2px; padding: 8px 12px; min-height: 58px; border-bottom: 1px solid var(--line); background: var(--bg); }
.readbar .grow { flex: 1; }
.reader { max-width: 720px; margin: 0 auto; padding: 28px 28px 80px; }
.reader .src { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.reader .src a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.reader h1 { font-size: 27px; line-height: 1.22; margin: 10px 0 6px; font-weight: 750; overflow-wrap: anywhere; }
.reader h1 a { color: inherit; text-decoration: none; }
.reader .by { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.reader .lead { width: 100%; max-width: 100%; height: auto; border-radius: 12px; margin: 6px 0 16px; display: block; }
.content { font-family: var(--serif); font-size: 18.5px; line-height: 1.62; overflow-wrap: anywhere; }
.content img, .content video, .content iframe { max-width: 100%; height: auto; border-radius: 8px; }
.content figure { margin: 18px 0; }
.content figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.content a { color: var(--accent-ink); }
.content blockquote { margin: 16px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
.content pre { font-size: 14px; overflow-x: auto; background: var(--surface2); padding: 12px; border-radius: 8px; }
.content code { font-size: .9em; }
.content table { border-collapse: collapse; display: block; overflow-x: auto; font-family: var(--sans); font-size: 14px; }
.content td, .content th { border: 1px solid var(--line); padding: 5px 8px; }
.content h2, .content h3, .content h4 { font-family: var(--sans); line-height: 1.3; }
.fullnote { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fullnote .ic { width: 16px; height: 16px; color: var(--accent); }
.fullnote button { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.readfoot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* téléphone */
.phone { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); }
.navbar { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 14px; min-height: 52px; }
.navbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 22px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar.reading { padding-left: 4px; }
.back { display: flex; align-items: center; gap: 2px; color: var(--accent-ink); font-size: 16px; padding: 6px; }
.back .ic { width: 24px; height: 24px; }
.tabs { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--surface2);
        padding: 6px 4px max(8px, env(safe-area-inset-bottom, 0px)); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); position: relative; }
.tabs button .ic { width: 25px; height: 25px; stroke-width: 1.8; }
.tabs button[aria-current="page"] { color: var(--accent-ink); }
.tabs .badge { position: absolute; top: -3px; left: calc(50% + 8px); background: var(--btn-bg); color: #fff; font-size: 10.5px; border-radius: 9px; padding: 1px 5px; font-weight: 600; }
.phone .reader { padding: 8px 18px 60px; }
.phone .reader h1 { font-size: 24px; }
.phone .content { font-size: 18px; }
.phone .nav { padding: 0 8px 20px; }
.phone .item { min-height: 44px; font-size: 16px; }
.phone .item.sub { font-size: 15px; }

/* fenêtres */
dialog { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
         width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); }
dialog::backdrop { background: rgba(30, 10, 35, .35); }
dialog form, dialog .dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.dlg-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h3 { margin: 0; font-size: 17px; }
.dlg-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dlg-foot { flex: none; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-foot .left { margin-right: auto; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f input, label.f select { font-size: 16px; font-weight: 400; color: var(--fg); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); }
label.f input:focus, label.f select:focus { outline: none; border-color: var(--accent); }
label.sw { display: flex; align-items: center; gap: 10px; font-size: 15px; }
label.sw input { width: 20px; height: 20px; accent-color: var(--btn-bg); }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--btn-bg); }
.choice b { display: block; font-weight: 600; }
.choice span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* réglages */
.settings { max-width: 640px; margin: 0 auto; padding: 18px 16px 60px; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card h3 { margin: 0; padding: 14px 16px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card .line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.card h3 + .line { border-top: 0; }
.card .line .grow { flex: 1; min-width: 0; }
.card .line .grow small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.card a.line, .card button.line { width: 100%; text-align: left; color: inherit; text-decoration: none; }
.card .line .ic { color: var(--accent); }
/* État du système : valeur à droite d'une ligne, texte d'alerte. */
.card .line .val { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .line .grow small a { color: var(--accent-ink); }
.warn-t { color: var(--warn); }

/* connexion */
.login { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; overflow-y: auto; padding: 20px; }
.login-card { width: min(400px, 100%); }
/* Logo de la connexion : mêmes mesures que Papyrus (emblème 80 px, nom en 44 px, sous-titre en 15,5 px ; plus petit sur téléphone). */
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 28px; text-align: center; }
.login-brand b { font-family: var(--brand); font-weight: 600; letter-spacing: .12em; font-size: 44px; line-height: 1.05; color: var(--brand-ink); margin-top: 16px; padding-left: .12em; }
.login-brand small { font-family: "Avenir Next", Avenir, var(--sans); font-weight: 600; letter-spacing: .19em; font-size: 15.5px; padding-left: .19em; color: var(--brand-sub); }
@media (max-width: 759px) {
    .login-brand .logo { width: 64px !important; height: 64px !important; }
    .login-brand .logo .ic { width: 50px !important; height: 50px !important; }
    .login-brand b { font-size: 36px; margin-top: 12px; }
    .login-brand small { font-size: 12.5px; }
}
.login-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.login-form input { font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--fg); }
.login-form input:focus { outline: none; border-color: var(--accent); }
.login-lead { margin: 0; line-height: 1.5; }
.login-error { margin: 0; color: var(--danger); font-size: 14px; }
.login-skip { color: var(--accent-ink); font-size: 14px; padding: 6px; }
.login-qr { background: #fff; border-radius: 12px; padding: 10px; width: 220px; align-self: center; }
.login-qr svg { display: block; width: 100%; height: auto; }
.login-secret { font-size: 13px; word-break: break-all; }
.login-codes { columns: 2; padding-left: 18px; margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
         background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.phone ~ .toast, .toast.up { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

@media (hover: none) {
    .item, .arow, .tabs button, button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    .content, .content * { -webkit-user-select: text; user-select: text; }
}

/* Menu contextuel (repris de Papyrus) : clic droit sur ordinateur, appui long sur téléphone (feuille du bas). */
.ctx-on { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
/* Menu flottant (ordinateur) */
.ctx-bg { position: fixed; inset: 0; z-index: 60; }
.ctx { position: fixed; min-width: 220px; max-width: 300px; max-height: calc(100vh - 16px); overflow: auto; padding: 5px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--fg); }
.mitem .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.mitem .noic { width: 17px; flex: none; }
.mitem .dot { width: 11px; height: 11px; margin: 0 3px; flex: none; }
.mitem .ml { flex: 1; min-width: 0; }
.mitem small { display: block; font-size: 11.5px; color: var(--muted); }
.mitem .ic.ok { color: var(--accent-ink); }
.mitem:hover:not(:disabled), .mitem:focus-visible { background: var(--accent-soft); outline: none; }
.mitem.mdanger, .mitem.mdanger .ic { color: var(--danger); }
.mitem:disabled { opacity: .45; cursor: default; }
.mitem.i1 { padding-left: 28px; } .mitem.i2 { padding-left: 46px; }
.ctx hr, .sheet hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.mhead { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 3px; }

/* Feuille d'actions (téléphone) */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); transition: background .2s; display: flex; align-items: flex-end; }
.sheet-bg.in { background: rgba(0, 0, 0, .35); }
.sheet { width: 100%; max-height: 85vh; overflow: auto; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px); transform: translateY(100%); transition: transform .22s ease; }
.sheet-bg.in .sheet { transform: none; }
.sheet .sitems, .sheet .cancel { background: var(--surface); border-radius: 14px; }
.sheet .sitems { padding: 4px; }
.sheet .stitle { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 16px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .mitem { font-size: 16.5px; padding: 12px 12px; gap: 14px; }
.sheet .mitem .ic { width: 20px; height: 20px; }
.sheet .mitem.i1 { padding-left: 34px; } .sheet .mitem.i2 { padding-left: 56px; }
.sheet .cancel { margin-top: 8px; justify-content: center; font-weight: 600; color: var(--accent-ink); }


/* Design « verre » (repris de Papyrus le 23.11.2026, lui-même à la manière du design « moderne » de Domus) : fond en
   dégradé prune fixe, menu et liste en voile de verre, article et cartes en verre dépoli (blanc translucide, flou, ombre
   douce en deux couches, liseré clair, coins ronds). */
:root {
    --glass: rgba(255, 255, 255, .74); --glass-2: rgba(255, 255, 255, .42); --glass-line: rgba(255, 255, 255, .65);
    --gshadow: 0 1px 2px rgba(60, 20, 70, .05), 0 8px 24px rgba(60, 20, 70, .08); --gline: rgba(70, 45, 100, .09);
    --gbg: radial-gradient(1100px 760px at 6% -12%, rgba(146, 100, 196, .36), transparent 60%),
           radial-gradient(900px 700px at 108% 4%, rgba(130, 115, 225, .15), transparent 60%),
           radial-gradient(900px 700px at 60% 120%, rgba(120, 140, 255, .14), transparent 60%);
    --ios-blur: 16px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --glass: rgba(42, 33, 45, .70); --glass-2: rgba(42, 33, 45, .40); --glass-line: rgba(250, 225, 255, .07);
        --gshadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); --gline: rgba(240, 210, 250, .08);
        --gbg: radial-gradient(1100px 760px at 6% -12%, rgba(146, 100, 196, .22), transparent 60%),
               radial-gradient(900px 700px at 108% 4%, rgba(125, 110, 220, .10), transparent 60%),
               radial-gradient(900px 700px at 60% 120%, rgba(110, 130, 255, .10), transparent 60%);
    }
}
:root[data-theme="dark"] {
    --glass: rgba(42, 33, 45, .70); --glass-2: rgba(42, 33, 45, .40); --glass-line: rgba(250, 225, 255, .07);
    --gshadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); --gline: rgba(240, 210, 250, .08);
    --gbg: radial-gradient(1100px 760px at 6% -12%, rgba(146, 100, 196, .22), transparent 60%),
           radial-gradient(900px 700px at 108% 4%, rgba(125, 110, 220, .10), transparent 60%),
           radial-gradient(900px 700px at 60% 120%, rgba(110, 130, 255, .10), transparent 60%);
}
/* Fond sur une couche fixée derrière le contenu (iOS ignore background-attachment: fixed). */
html { background: var(--bg); }
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--gbg), var(--bg); }
.app, .desk, .col-read, .readbar, .colhead, .listbar { background: transparent; }
.col-menu, .col-list { -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.col-menu { background: var(--glass-2); border-right-color: var(--glass-line); }
.col-list { background: color-mix(in srgb, var(--glass-2) 60%, var(--glass)); border-right-color: var(--glass-line); }
.colhead, .listbar, .readbar { border-bottom-color: var(--gline); }
.arow { border-bottom-color: var(--gline); }
.arow.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.col-menu .item[aria-current="page"] { background: rgba(255, 255, 255, .7); box-shadow: var(--gshadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .col-menu .item[aria-current="page"] { background: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] .col-menu .item[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.card, .seg, .login-form, .feederr {
    background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    box-shadow: var(--gshadow); border: .5px solid var(--glass-line); }
.card { border-radius: 20px; }
.card .line { border-color: var(--gline); }
.login-form { border-radius: 22px; }
.login { background: transparent; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); } }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); }
.btn.ghost { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--gshadow); }
/* L'article : une feuille de verre, comme la note dans Papyrus. */
.reader { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border: .5px solid var(--glass-line); box-shadow: var(--gshadow); border-radius: 22px;
    width: min(760px, calc(100% - 32px)); max-width: none; margin: 16px auto 24px; padding: 30px 32px 36px; }
.readfoot { border-top-color: var(--gline); }
.content pre { background: color-mix(in srgb, var(--surface2) 70%, transparent); }
dialog { background: var(--surface); border-radius: 20px; }
.ctx { border-radius: 14px; }

/* Téléphone */
.tabs { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-top-color: var(--glass-line); }
.phone .reader { width: auto; margin: 6px 12px 20px; padding: 18px 18px 26px; }
.phone .listbar { border-bottom-color: var(--gline); }
.phone .nav .item[aria-current="page"] { background: rgba(255, 255, 255, .7); box-shadow: var(--gshadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone .nav .item[aria-current="page"] { background: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] .phone .nav .item[aria-current="page"] { background: rgba(255, 255, 255, .08); }
/* iPhone (app installée) : iOS floute une bande sous la barre d'état (comme dans Domus et Papyrus) ; rien ne doit s'y
   trouver, le contenu commence plus bas. Seule la zone du milieu défile, sous la barre du haut. */
/* La barre du haut démarre exactement là où elle s'accroche (sinon elle glissait de quelques pixels au début du
   défilement, et tout le haut semblait bouger) : les 4 px d'air sont dans la barre, pas au-dessus. */
.phone { padding-top: calc(env(safe-area-inset-top, 0px) + var(--ios-blur)); }
.phone .navbar { padding-top: 8px; min-height: 56px; }

/* Liste des articles en cartes de verre, groupées par jour (comme les listes de Papyrus). */
.group { padding: 0 12px 14px; }
.group h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 8px 7px; }
.alist { border-radius: 18px; overflow: hidden; }
.alist .arow { border-bottom: 0; padding: 12px 14px 12px 18px; }
.alist .aitem { border-top: 1px solid var(--gline); }
.alist .aitem:first-child { border-top: 0; }
.alist .arow .dot { left: 7px; }
.col-list { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-right-color: var(--gline); } /* comme la colonne du milieu de Papyrus : le fond de l'app, sans voile */
.col-list .feederr { margin: 12px 12px 0; border-radius: 14px; }
.more { margin: 0 0 10px; }

/* Téléphone : menu hamburger (le menu de l'ordinateur dans un tiroir à gauche, repris de Papyrus). */
.tbtn.burger { margin-left: -8px; padding: 7px; }
.tbtn.burger .ic { width: 24px; height: 24px; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer-bg { position: fixed; inset: 0; z-index: 30; background: rgba(20, 5, 25, .35); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 31; width: min(300px, 84vw); overflow-y: auto; overscroll-behavior: contain;
          padding: calc(env(safe-area-inset-top, 0px) + var(--ios-blur)) 0 env(safe-area-inset-bottom, 0px); box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
          background: linear-gradient(var(--glass-2), var(--glass-2)), var(--gbg), var(--bg); background-size: auto, 100vw 100vh, auto; background-repeat: no-repeat; }
.drawer .item { min-height: 44px; font-size: 16px; }
.drawer .item.sub { font-size: 15px; }
.drawer .fold > .twist { width: 36px; }
.drawer .item[aria-current="page"] { background: rgba(255, 255, 255, .7); box-shadow: var(--gshadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drawer .item[aria-current="page"] { background: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] .drawer .item[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.drawer.anim { animation: drawer-in .22s ease-out; }
.drawer-bg.anim { animation: fade-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } }

/* Téléphone : barre d'onglets flottante (comme Papyrus), teintée de prune, la liste passe dessous. */
.phone .tabs { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom, 0px));
    padding: 7px 4px 6px; border-radius: 26px; border: 0;
    background: color-mix(in srgb, color-mix(in srgb, var(--accent) 14%, var(--surface2)) 80%, transparent);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.phone [data-main] { padding-bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 84px); }
.tabs .badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1; height: 17px; min-width: 17px; padding: 0 5px; font-variant-numeric: tabular-nums; }

/* Tirer vers le bas pour actualiser (repris de Papyrus) */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--ios-blur) + 6px); z-index: 40; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--surface); color: var(--muted); box-shadow: 0 4px 14px rgba(50, 20, 60, .2);
    opacity: 0; transform: translate(-50%, -50px); pointer-events: none; }
.ptr svg { width: 20px; height: 20px; }
.ptr.ready { color: var(--accent); }
.ptr.spin svg { animation: spin .8s linear infinite; }

/* iPhone, app installée (23.11.2026, correction reprise de Papyrus) : iOS n'affiche la page que sur la hauteur de
   l'écran moins la barre d'état ; avec une hauteur imposée (100 %), le bas de l'écran restait gris et la barre d'onglets
   flottait trop haut. Sur téléphone, c'est donc la page entière qui défile (classe phone-mode sur html), sur au moins
   toute la hauteur de l'écran (100lvh) ; la barre du haut reste accrochée sous la bande que iOS floute sous la barre
   d'état, couverte par une couche peinte avec le dégradé du fond (invisible, le contenu passe dessous sans se voir). */
html.phone-mode, html.phone-mode body, html.phone-mode #app { height: auto; }
html.phone-mode body { overflow: visible; min-height: 100lvh; }
html.phone-mode .boot { min-height: 100lvh; }
html { background: var(--bg); }
body::before { inset: auto; top: 0; left: 0; right: 0; height: 100lvh; }
.phone.app { height: auto; min-height: 100lvh; }
.phone .navbar { position: sticky; z-index: 9; top: calc(env(safe-area-inset-top, 0px) + var(--ios-blur));
    background: var(--gbg), var(--bg); background-size: 100vw 100lvh; background-repeat: no-repeat;
    background-position: 0 calc(-1 * env(safe-area-inset-top, 0px) - var(--ios-blur)); }
.phone::before { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 20; pointer-events: none;
    height: calc(env(safe-area-inset-top, 0px) + var(--ios-blur));
    background: var(--gbg), var(--bg); background-size: 100vw 100lvh; background-repeat: no-repeat; background-position: 0 0; }
.phone [data-main] { padding-bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 90px); }
/* Derrière la barre d'onglets : la liste s'efface sous un voile du fond (fondu vers le haut), comme dans Papyrus. */
.phone::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; pointer-events: none;
    height: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 86px);
    background: linear-gradient(color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 82%, transparent) 40px);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(transparent, #000 14px); mask-image: linear-gradient(transparent, #000 14px); }
.phone:has(.tabs[hidden])::after { display: none; }

/* Article lu : fond légèrement grisé (23.11.2026). */
/* Non lu sur un fond franc (blanc, ou un ton plus clair que la carte en sombre) ; lu sur le verre de la carte, sans gris :
   les non lus se détachent, les lus se fondent dans la carte (choix de l'utilisateur, 23.11.2026). */
:root { --unread-bg: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --unread-bg: #2f2734; } }
:root[data-theme="dark"] { --unread-bg: #2f2734; }
.alist .arow { background: var(--unread-bg); }
.alist .arow.read { background: transparent; }
/* La carte de la liste plus translucide que les autres cartes : sinon un article lu (transparent) laissait voir un fond
   presque blanc, juste à côté du blanc des non lus. Les lus prennent ainsi la teinte lavande du fond. */
.card.alist { background: color-mix(in srgb, var(--glass-2) 70%, transparent); }
/* Article lu (23.11.2026) : titre un peu grisé, image sous un voile pâle. */
.arow.read .t { font-weight: 400; color: color-mix(in srgb, var(--muted) 62%, transparent); }
.arow.read .src { color: color-mix(in srgb, var(--muted) 48%, transparent); }
.arow.read .thumb { opacity: .4; filter: saturate(.45); }
.alist .arow.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Images d'un article : jamais plus larges que le texte, réduites en gardant leurs proportions (23.11.2026). Les
   attributs width / height du site ne comptent pas ; un élément trop large (figure, tableau, cadre) est ramené à la
   largeur de la colonne. */
.content * { max-width: 100%; box-sizing: border-box; }
.content img, .content video, .content svg, .content canvas { width: auto !important; max-width: 100% !important; height: auto !important; }
.content picture { display: block; max-width: 100%; }
.content picture img { width: 100% !important; }
.content figure { width: auto !important; margin-left: 0; margin-right: 0; }
.content figure, .content div, .content p, .content a { min-width: 0; }
.content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.reader { min-width: 0; } /* pas de coupe : une image trop large serait tronquée au lieu d'être réduite */

/* Balayage d'un article (écran tactile) : la ligne glisse et révèle l'action ; elle devient franche au seuil. */
.aitem { position: relative; }
.aitem.swiping { overflow: hidden; }
.aitem.swiping .arow { background: var(--surface); position: relative; z-index: 1; }
.aitem.swiping .arow.read { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.swbg { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 22px; color: #fff; font-weight: 600; font-size: 14px;
    background: color-mix(in srgb, var(--accent) 45%, var(--surface)); transition: background .15s; }
.swbg[data-side="left"] { justify-content: flex-end; }
.swbg.armed { background: var(--btn-bg); }
.swbg span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.swbg .ic { width: 22px; height: 22px; }
select.pick { font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-line, var(--line)); background: var(--glass, var(--surface2)); color: var(--fg); max-width: 50%; }

/* En-tête de l'article ouvert (comme la barre de la note ouverte dans Papyrus, 23.11.2026) : opaque, collé en haut de la
   feuille ; source avec son icône, date et heure, puis à droite lu / non lu, à lire plus tard, ouvrir sur le site. */
.reader.open { padding: 0; }
.rtools { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 22px; border-bottom: 1px solid var(--gline);
    background: var(--surface); border-radius: 22px 22px 0 0; position: sticky; top: 0; z-index: 5; }
.rsrc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.rsrc a { color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rsrc time { white-space: nowrap; }
.rsrc .feedicon { width: 18px; height: 18px; }
.ract { display: flex; align-items: center; gap: 2px; flex: none; }
.rscroll { padding: 22px 32px 36px; }
.rscroll h1 { margin-top: 4px; }
/* Ordinateur : la feuille défile en elle-même, son en-tête reste en haut (comme Papyrus). */
.desk [data-reader].reading { overflow: hidden; display: flex; flex-direction: column; padding: 16px 0; }
.desk [data-reader].reading .reader { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 auto; overflow: hidden; }
.desk [data-reader].reading .rtools { position: static; flex: none; }
.desk [data-reader].reading .rscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Téléphone : l'en-tête reste accroché sous la barre du haut (retour) pendant que la page défile. */
.phone .reader.open { padding: 0; }
.phone .rtools { top: calc(env(safe-area-inset-top, 0px) + var(--ios-blur) + 62px); padding: 6px 6px 6px 16px; }
/* L'en-tête s'accroche là où il commence (6 px sous la barre, la marge de la feuille, sans bordure du haut) : il ne glisse
   plus au début du défilement ; l'espace au-dessus est peint par sa bande du fond de l'app. */
.phone .reader.open { margin-top: 6px; border-top-width: 0; }
/* Téléphone : pendant que la page défile, la feuille de l'article passe derrière l'en-tête accroché, et ses coins arrondis
   laissaient voir le rectangle de la feuille. Derrière l'en-tête, une bande du fond de l'app (calée sur l'écran comme la
   barre du haut), puis le fond blanc arrondi de l'en-tête : les arrondis se détachent toujours sur le fond de l'app. */
.phone .rtools { background: transparent; border-bottom: 0; isolation: isolate; }
.phone .rtools::before { content: ""; position: absolute; left: -1px; right: -1px; top: -6px; height: 30px; z-index: -2;
    background: var(--gbg), var(--bg); background-size: 100vw 100lvh; background-repeat: no-repeat;
    background-position: -12px calc(-1 * (env(safe-area-inset-top, 0px) + var(--ios-blur) + 56px)); }
.phone .rtools::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface);
    border-radius: 22px 22px 0 0; border-bottom: 1px solid var(--gline); }
.phone .rscroll { padding: 16px 18px 26px; }
.phone .rsrc { font-size: 12.5px; }
