/* Forum (refonte 2026-11-17) — feuille AUTONOME : aucune autre feuille du site n'est chargée avec elle.
   Toutes les classes sont préfixées fo-. Aucune animation en boucle.

   Palette propre au forum (décisions 2026-11-17). La référence est la fenêtre « ⚙ Configurer » d'un personnage
   (css/style_gestcompte.css, .pc-modale) : fond NOIR, NÉON bleu sur les traits (liseré haut gauche, segments,
   titres de bloc, liens, focus, citations), OR sur les actions et ce qui est actif (boutons, page en cours,
   non lu, épinglé, liseré bas droit). Tout est déclaré ici, une seule fois : aucune couleur en dur plus bas.
   Les noms du thème du jeu encore cités plus bas sont redéfinis ici (theme_variables.css n'est pas chargée). */

.fo-page {
    --fo-bleu: #83c2d9;                  /* le néon de l'accueil et de la configuration du personnage */
    --fo-bleu-vif: #b6e6f5;
    --fo-bleu-nuit: #10252e;
    --fo-or: #c9a227;
    --fo-or-vif: #e2bd4a;
    --fo-or-nuit: #2a2208;
    --fo-lisere: rgba(160, 160, 149, 0.26);   /* trait gris entre le néon et l'or */
    --fo-info: var(--fo-bleu);
    --fo-ok: #8fd6a8;
    --fo-danger: #f0705c;
    --fo-t1: #f0ebe0;
    --fo-t2: #cdc8bd;
    --fo-t3: #8f8d84;
    --fo-fond: #050505;
    --fo-carte: rgba(8, 8, 7, 0.90);
    --fo-carte2: rgba(2, 2, 2, 0.72);
    --fo-creux: #030405;
    --fo-leve: #10151a;
    --fo-bord: rgba(160, 160, 149, 0.16);
    --fo-bord2: rgba(160, 160, 149, 0.32);
    --fo-encre: #14110a;                 /* texte posé sur un aplat bleu ou or */
    --fo-titre: 'Anton', 'Impact', sans-serif;
    --fo-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --fo-c: 12px;
    /* noms du thème du jeu encore employés plus bas */
    --bg-darker: #0a0d11; --bg-darkest: var(--fo-creux); --bg-medium: var(--fo-leve); --bg-overlay-dark: rgba(5, 6, 8, 0.95);
    --border-dark: var(--fo-bord); --border-medium: var(--fo-bord2);
    --t-text1: var(--fo-t1); --t-text2: var(--fo-t2); --t-text3: var(--fo-t3); --text-muted: var(--fo-t3); --text-bright: #fff;
    --interactive-info: var(--fo-bleu); --interactive-secondary: var(--fo-or); --interactive-primary: var(--fo-ok); --interactive-danger: var(--fo-danger);
    --radius-small: 3px; --radius-xs: 2px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--fo-t1);
    font: 15px/1.55 'Barlow', 'Open Sans', system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--fo-bleu) 13%, transparent) 0%, transparent 42%),
        radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--fo-or) 6%, transparent) 0%, transparent 45%),
        var(--fo-fond);
}
/* Image de fond (forum_fond()) : un calque FIXE derrière la page, sous un voile qui s'épaissit vers le bas
   pour que le texte reste lisible. Fixe et sans effet : il ne coûte rien au défilement. */
.fo-fond { position: fixed; inset: 0; z-index: -1; background-size: cover; background-repeat: no-repeat; }
.fo-fond::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 8, 0.50) 0%, rgba(5, 6, 8, 0.78) 38%, rgba(5, 6, 8, 0.93) 100%),
                radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--fo-bleu) 16%, transparent) 0%, transparent 45%); }
.fo-page *, .fo-page *::before, .fo-page *::after { box-sizing: border-box; }
.fo-page a { color: var(--fo-info); text-decoration: none; }
.fo-page a:hover { color: var(--fo-bleu-vif); }
.fo-page :focus-visible { outline: 1px dashed var(--fo-bleu); outline-offset: 2px; }
.fo-page [hidden] { display: none !important; }
.fo-page small { color: var(--fo-t3); font-size: 12px; }
.fo-evite { position: absolute; left: -9999px; }
.fo-evite:focus { left: 16px; top: 8px; z-index: 10; background: var(--fo-or); color: #000; padding: 4px 10px; }

/* ---------- barre du haut : celle de la page d'accueil (css/style_resp.css #main_nav + css/accueil.css) ----------
   Même police (Open Sans), mêmes tailles, mêmes traits HUD sous le logo et sous les liens, transparente en haut
   de page puis fond qui se fond vers le bas dès qu'on défile (classe fo-barre-pleine, posée par js/cyb_forum.js). */
.fo-page {
    --fo-nav-police: "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
    --fo-nav-bord: clamp(20px, 5vw, 96px);
    --fo-nav-neon: color-mix(in srgb, var(--interactive-info, #7a9aba) 55%, #8ff3ff);
    --fo-nav-trait: color-mix(in srgb, var(--fo-nav-neon) 70%, transparent);
    --fo-nav-acier: color-mix(in srgb, var(--t-text3, #a0a095) 45%, transparent);
}
.fo-barre {
    position: fixed; top: 0; left: 0; width: 100%; height: 56px; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: 0 var(--fo-nav-bord);
    font-family: var(--fo-nav-police);
    background: transparent;
    transition: background .38s;
}
.fo-barre.fo-barre-pleine {
    background: linear-gradient(180deg,
        var(--fo-fond) 0%, var(--fo-fond) 62%,
        color-mix(in srgb, var(--fo-fond) 80%, transparent) 84%,
        transparent 100%);
}
.fo-barre::before, .fo-barre::after {
    content: ""; position: absolute; bottom: 6px; pointer-events: none;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* sous le logo : acier, montée en biais or, néon, petit crochet */
.fo-barre::before {
    left: var(--fo-nav-bord); width: 420px; height: 12px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 12'%3E%3Cpath d='M0 10.5 H210 L218 2.5 H400 L408 10.5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 12'%3E%3Cpath d='M0 10.5 H210 L218 2.5 H400 L408 10.5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
    background: linear-gradient(90deg, var(--fo-nav-acier) 0 196px, var(--fo-or) 196px 240px, var(--fo-nav-trait) 240px);
}
/* sous les liens : acier puis néon, crochet qui remonte après le dernier lien */
.fo-barre::after {
    right: calc(var(--fo-nav-bord) - 18px); width: 360px; height: 14px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 14'%3E%3Cpath d='M0 12.5 H346 L353 5.5 V0' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 14'%3E%3Cpath d='M0 12.5 H346 L353 5.5 V0' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
    background: linear-gradient(90deg, transparent 0, var(--fo-nav-acier) 40px 62%, var(--fo-nav-trait) 62%);
}
.fo-logo { font: italic 700 18px var(--fo-nav-police); letter-spacing: 1px; color: var(--text-bright, #fff) !important; white-space: nowrap; }
.fo-logo span { color: var(--fo-or); text-shadow: 0 0 6px color-mix(in srgb, var(--fo-or) 60%, transparent); }
.fo-logo small { font: normal 400 11px var(--fo-nav-police); font-variant: small-caps; letter-spacing: 1px; margin-left: 10px; color: var(--text-muted, #a0a095); }
.fo-nav { display: flex; align-items: center; gap: 30px; }
.fo-nav a { position: relative; color: var(--text-muted, #a0a095); font-size: 14px; font-variant: small-caps; line-height: 1.2; transition: color .3s ease; }
.fo-nav a:hover, .fo-nav a.fo-nav-ici { color: #e0e0e0; }
.fo-nav a.fo-nav-ici::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--fo-or) 0 62%, transparent 62% 70%, color-mix(in srgb, var(--fo-or) 50%, white) 70% 88%, transparent 88%); }
/* « Connexion » : le bouton « Jouer » de l'accueil */
.fo-nav a.fo-nav-fort { padding: 5px 14px; font-weight: 700; letter-spacing: 1px; color: var(--bg-darkest, #1a1918); background: var(--fo-or);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 7px 100%, 0 calc(100% - 7px)); transition: filter .25s; }
.fo-nav a.fo-nav-fort:hover { color: var(--bg-darkest, #1a1918); filter: brightness(1.12); }
.fo-nav .fo-pastille { font-variant: normal; vertical-align: 1px; }
.fo-nav a svg { flex: 0 0 auto; margin-right: 6px; vertical-align: -1px; }
.fo-recherche input[type=search] {
    background: var(--fo-creux); color: var(--fo-t1); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small, 4px);
    padding: 6px 10px; font: inherit; text-transform: none; width: 170px;
}
.fo-recherche input:focus { border-color: var(--fo-bleu); outline: none; }

/* ---------- structure ---------- */
.fo-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 76px 16px 40px; }
.fo-pied { text-align: center; padding: 16px; color: var(--fo-t3); font-family: var(--fo-mono); font-size: 11px; border-top: 1px solid var(--fo-bord); }
.fo-ariane { font-family: var(--fo-mono); font-size: 12px; color: var(--fo-t3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.fo-ariane .fo-ici { color: var(--fo-t2); }
.fo-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 4px 0 14px; }
.fo-tete h1 { font-family: var(--fo-titre); font-weight: 400; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; letter-spacing: 1px; margin: 0; overflow-wrap: anywhere; }
.fo-tete p { margin: 6px 0 0; }
.fo-tete { padding-bottom: 12px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--fo-bleu) 0, var(--fo-lisere) 200px, var(--fo-lisere) calc(100% - 160px), var(--fo-or) 100%) 1; }
.fo-tete-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fo-muet { color: var(--fo-t3); font-size: 13px; }
.fo-pousse { flex: 1; }

.fo-cadre {
    position: relative; background: var(--fo-carte); border: 1px solid var(--fo-bord); margin: 0 0 16px; padding: 14px 16px;
    clip-path: polygon(var(--fo-c) 0, 100% 0, 100% calc(100% - var(--fo-c)), calc(100% - var(--fo-c)) 100%, 0 100%, 0 var(--fo-c));
}
.fo-cadre::before { content: ''; position: absolute; left: calc(var(--fo-c) + 10px); top: 0; width: 110px; height: 2px; background: linear-gradient(90deg, var(--fo-bleu) 0 78%, transparent 78% 84%, var(--fo-bleu) 84%); }
.fo-cadre::after { content: ''; position: absolute; right: calc(var(--fo-c) + 10px); bottom: 0; width: 110px; height: 2px; background: var(--fo-or); }
.fo-cadre-ferme { opacity: .45; filter: grayscale(1); }
.fo-cadre h2 { font-family: var(--fo-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--fo-bleu); margin: 0 0 8px; }

.fo-vide { text-align: center; padding: 48px 16px; }
.fo-vide h1 { font-family: var(--fo-titre); font-weight: 400; font-size: 32px; margin: 0 0 8px; }

/* ---------- boutons, badges ---------- */
.fo-btn, .fo-actions button, .fo-actions a {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 500 12px var(--fo-mono); text-transform: uppercase; letter-spacing: .5px;
    color: var(--fo-t1) !important; background: var(--bg-medium, #23262d); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small, 4px); padding: 7px 12px;
}
.fo-btn:hover, .fo-actions button:hover, .fo-actions a:hover { border-color: var(--fo-or); color: var(--fo-or-vif) !important; background: var(--fo-or-nuit); }
.fo-btn[disabled], .fo-actions button[disabled] { opacity: .45; cursor: default; }
.fo-btn-fort { background: var(--fo-or); border-color: var(--fo-or); color: var(--fo-encre) !important; font-weight: 600; clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.fo-btn-fort:hover { background: var(--fo-or-vif); border-color: var(--fo-or-vif); color: var(--fo-encre) !important; }
.fo-danger { color: var(--fo-danger) !important; }
.fo-arme { background: var(--fo-danger) !important; border-color: var(--fo-danger) !important; color: var(--fo-encre) !important; }
.fo-lien { background: none; border: 0; padding: 0; color: var(--fo-info); cursor: pointer; font: inherit; text-decoration: underline; }
/* Étiquette au dessin du jeu : coins haut gauche / bas droit coupés, fond teinté, trait d'accent à gauche
   (pas de bordure : elle ne suivrait pas le clip-path). La teinte vient de --fo-badge-c. */
.fo-badge { --fo-badge-c: var(--fo-t3); display: inline-block; font: 500 10.5px/18px var(--fo-mono); text-transform: uppercase; letter-spacing: .8px; padding: 0 8px 0 9px; color: var(--fo-badge-c); vertical-align: middle;
    background: color-mix(in srgb, var(--fo-badge-c) 14%, transparent); box-shadow: inset 2px 0 0 var(--fo-badge-c);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.fo-badge-or { --fo-badge-c: var(--fo-or); }
.fo-badge-bleu { --fo-badge-c: var(--fo-bleu); }
.fo-badge-danger { --fo-badge-c: var(--fo-danger); }
.fo-pastille { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--fo-or); color: var(--fo-encre); font: 500 11px/18px var(--fo-mono); text-align: center; }

.fo-flash { padding: 9px 12px; margin: 0 0 14px; border-left: 3px solid; border-radius: var(--radius-xs, 2px); }
.fo-flash-ok { border-color: var(--fo-ok); background: color-mix(in srgb, var(--fo-ok) 10%, transparent); color: var(--fo-ok); }
.fo-flash-err { border-color: var(--fo-danger); background: color-mix(in srgb, var(--fo-danger) 10%, transparent); color: var(--fo-danger); }

/* ---------- listes (sections, sujets, résultats) ---------- */
.fo-liste { list-style: none; margin: 0; padding: 0; }
.fo-liste > li { border-top: 1px solid var(--fo-bord); padding: 10px 0; }
.fo-liste > li:first-child { border-top: 0; }
.fo-section, .fo-sujet { display: grid; grid-template-columns: 12px minmax(0, 1fr) 90px minmax(120px, 220px); gap: 4px 14px; align-items: center; }
.fo-etat { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--fo-bord2); }
.fo-nonlu .fo-etat { background: var(--fo-or); border-color: var(--fo-or); box-shadow: 0 0 8px color-mix(in srgb, var(--fo-or) 70%, transparent); }
.fo-sujet-titre > a { color: var(--fo-t2); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.fo-nonlu .fo-sujet-titre > a { color: var(--fo-t1); font-weight: 600; }
.fo-sujet-titre > a:hover { color: var(--fo-bleu-vif); }
.fo-sujet-meta { color: var(--fo-t3); font-size: 13px; }
.fo-sujet-nb { font: 12px var(--fo-mono); color: var(--fo-t2); text-align: right; white-space: nowrap; }
.fo-sujet-der { font-size: 13px; overflow: hidden; }
.fo-sujet-der a { color: var(--fo-t2); }
.fo-supprime { opacity: .55; }
.fo-resultat-titre { font-size: 16px; font-weight: 600; }
.fo-extrait { margin: 4px 0 0; color: var(--fo-t2); font-size: 14px; overflow-wrap: anywhere; }
.fo-extrait mark { background: color-mix(in srgb, var(--fo-or) 35%, transparent); color: var(--fo-t1); padding: 0 2px; }

.fo-pages { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; font: 12px var(--fo-mono); }
.fo-pages a, .fo-pages span { min-width: 30px; padding: 5px 8px; text-align: center; border: 1px solid var(--fo-bord); border-radius: var(--radius-small, 4px); color: var(--fo-t2); }
.fo-pages a:hover { border-color: var(--fo-or); color: var(--fo-or-vif); }
.fo-pages .fo-page-ici { background: var(--fo-or); border-color: var(--fo-or); color: var(--fo-encre); font-weight: 600; }
.fo-pages .fo-trou { border: 0; min-width: 0; padding: 5px 2px; }

/* ---------- sujet ---------- */
.fo-modo { padding: 6px 12px; margin: 0 0 12px; border: 1px dashed var(--fo-bord2); border-radius: var(--radius-small, 4px); background: var(--fo-carte2); }
.fo-modo:not([open]) { display: inline-block; }
.fo-modo[open] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fo-modo-titre { font: 11px var(--fo-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--fo-bleu); cursor: pointer; padding: 2px 0; }
.fo-modo[open] .fo-modo-titre { width: 100%; }
.fo-page .fo-modo select { max-width: 280px; }
.fo-page select { background: var(--fo-creux); color: var(--fo-t1); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small, 4px); padding: 6px 8px; font: 13px inherit; max-width: 100%; }

.fo-msg { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--fo-carte); border: 1px solid var(--fo-bord); margin: 0 0 10px; scroll-margin-top: 70px; }
.fo-msg { border-image: linear-gradient(135deg, color-mix(in srgb, var(--fo-bleu) 70%, transparent) 0, var(--fo-lisere) 140px, var(--fo-lisere) calc(100% - 140px), color-mix(in srgb, var(--fo-or) 70%, transparent) 100%) 1; }
.fo-msg:target { border-color: var(--fo-bleu); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fo-bleu) 35%, transparent); }
.fo-auteur { padding: 14px 10px; text-align: center; border-right: 1px solid var(--fo-bord); background: var(--fo-carte2); }
.fo-avatar { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--fo-bord2); background: var(--fo-creux); }
/* Portrait du personnage (2:5 dans le jeu) : on en montre le haut, dans un cadre plus haut que l'avatar. */
.fo-auteur-portrait .fo-avatar { width: 132px; height: 184px; object-position: 50% 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); border-color: color-mix(in srgb, var(--fo-bleu) 45%, transparent); }
.fo-auteur-nom { font-weight: 600; margin-top: 6px; overflow-wrap: anywhere; }
.fo-auteur-titre { color: var(--fo-or); font-size: 12px; font-style: italic; overflow-wrap: anywhere; }
.fo-auteur-nb { color: var(--fo-t3); font: 11px var(--fo-mono); margin-top: 4px; }
.fo-corps { padding: 10px 16px 12px; min-width: 0; display: flex; flex-direction: column; }
.fo-msg-tete { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font: 12px var(--fo-mono); color: var(--fo-t3); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--fo-bord); }
.fo-msg-tete a { color: var(--fo-t3); }
.fo-modifie { font-style: italic; }
.fo-avis { padding: 10px 12px; border-left: 3px solid var(--fo-t3); background: color-mix(in srgb, var(--fo-t3) 8%, transparent); color: var(--fo-t2); font-style: italic; }
.fo-original { margin-top: 8px; }
.fo-original summary { cursor: pointer; color: var(--fo-t3); font-size: 13px; }
.fo-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: auto; padding-top: 12px; }
.fo-actions button, .fo-actions a { padding: 4px 9px; font-size: 11px; background: transparent; border-color: var(--fo-bord); color: var(--fo-t3) !important; }
.fo-actions .fo-danger { color: var(--fo-danger) !important; }

/* Texte d'un message : ce que produit le BBCode */
.fo-texte { overflow-wrap: anywhere; word-break: break-word; }
.fo-texte img { max-width: 100%; height: auto; }
.fo-texte iframe, .fo-texte object, .fo-texte embed { max-width: 100%; }
.fo-texte blockquote, .fo-texte .quoted, .fo-texte fieldset { margin: 8px 0; padding: 8px 12px; border: 0; border-left: 3px solid var(--fo-bleu); background: color-mix(in srgb, var(--fo-bleu) 7%, transparent); color: var(--fo-t2); }
.fo-texte ul, .fo-texte ol { padding-left: 22px; }
.fo-texte ul, .fo-texte ol { margin: 6px 0; }
/* Le BBCode pose un saut de ligne après chaque bloc et entre les éléments d'une liste : il doublerait l'espace. */
.fo-texte ul > br, .fo-texte ol > br, .fo-texte ul + br, .fo-texte ol + br, .fo-texte .quoted + br, .fo-texte h1 + br, .fo-texte center + br { display: none; }
.fo-texte h1 { font: 400 22px/1.2 var(--fo-titre); letter-spacing: .5px; margin: 10px 0 6px; color: var(--fo-bleu); }
.fo-texte .ct-smiley { width: var(--fo-smiley, 34px); height: var(--fo-smiley, 34px); vertical-align: middle; }   /* taille : Communication › Forum › Réglages */
.fo-texte a { text-decoration: underline; text-underline-offset: 2px; }
.fo-texte pre { white-space: pre-wrap; background: var(--fo-creux); padding: 8px; }

/* ---------- formulaires, éditeur ---------- */
.fo-form { display: flex; flex-direction: column; gap: 12px; }
.fo-champ { display: flex; flex-direction: column; gap: 4px; font: 12px var(--fo-mono); text-transform: uppercase; letter-spacing: .5px; color: var(--fo-t3); }
.fo-champ input, .fo-chr-inviter input, .fo-editeur textarea, .fo-dialogue textarea {
    width: 100%; background: var(--fo-creux); color: var(--fo-t1); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small, 4px);
    padding: 9px 11px; font: 15px/1.5 'Barlow', system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
.fo-champ input:focus, .fo-chr-inviter input:focus, .fo-editeur textarea:focus, .fo-dialogue textarea:focus { border-color: var(--fo-bleu); outline: none; }
.fo-editeur textarea { display: block; resize: vertical; min-height: 140px; border-radius: 0 0 var(--radius-small, 4px) var(--radius-small, 4px); }
.fo-outils { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 4px; background: var(--bg-medium, #23262d); border: 1px solid var(--fo-bord2); border-bottom: 0; border-radius: var(--radius-small, 4px) var(--radius-small, 4px) 0 0; }
.fo-outil { background: transparent; border: 1px solid transparent; color: var(--fo-t2); font: 12px var(--fo-mono); padding: 4px 7px; border-radius: var(--radius-xs, 2px); cursor: pointer; min-width: 28px; }
.fo-outil:hover { border-color: var(--fo-bord2); color: var(--fo-bleu-vif); }
.fo-outil[disabled] { opacity: .4; }
.fo-apercu-btn { color: var(--fo-info); }
.fo-sep { width: 1px; height: 18px; background: var(--fo-bord2); margin: 0 4px; }
.fo-apercu { min-height: 140px; padding: 10px 12px; border: 1px dashed var(--fo-bord2); background: var(--fo-creux); }
.fo-editeur-pied { display: flex; justify-content: space-between; gap: 12px; min-height: 18px; font-size: 12px; color: var(--fo-t3); margin-top: 4px; }
.fo-form-pied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* « Signé » : collé au bouton d'envoi ; l'étoile fixe le personnage choisi comme personnage par défaut du compte. */
.fo-signe { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fo-t2); }
.fo-signe label { display: inline-flex; align-items: center; gap: 6px; }
.fo-etoile { background: transparent; border: 1px solid var(--fo-bord2); border-radius: var(--radius-small); color: var(--fo-t3); cursor: pointer; font-size: 15px; line-height: 1; padding: 6px 8px; }
.fo-etoile:hover { border-color: var(--fo-or); color: var(--fo-or); }
.fo-etoile[aria-pressed="true"] { color: var(--fo-or); border-color: var(--fo-or); background: color-mix(in srgb, var(--fo-or) 12%, transparent); }
.fo-recherche-ligne { display: flex; gap: 8px; }
.fo-recherche input[type=search] { flex: 1; width: auto; padding: 9px 11px; font-size: 15px; }
.fo-recherche-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 14px; margin-top: 12px; }
.fo-recherche-filtres select { width: 100%; min-height: 44px; text-transform: none; letter-spacing: 0; font: 15px 'Barlow', system-ui, sans-serif; }
.fo-recherche-aide { margin: 10px 0 0; font-size: 12px; }
.fo-recherche-aide code { font: 12px var(--fo-mono); color: var(--fo-bleu); }
/* « À la une » : accueil et page Recherche */
.fo-une { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 22px; }
.fo-une-col h3 { margin: 0 0 6px; font: 600 14px 'Barlow', system-ui, sans-serif; color: var(--fo-or); }
.fo-une-col h3 small { display: block; font: 11px var(--fo-mono); color: var(--fo-t3); }
.fo-une-liste { margin: 0; padding: 0 0 0 20px; }
.fo-une-liste li { padding: 5px 0; border-top: 1px solid var(--fo-bord); color: var(--fo-t3); }
.fo-une-liste li:first-child { border-top: 0; }
.fo-une-liste a { font-weight: 600; overflow-wrap: anywhere; }
.fo-une-val { float: right; margin-left: 8px; font: 12px var(--fo-mono); color: var(--fo-t2); white-space: nowrap; }
.fo-une-liste .fo-sujet-meta { clear: right; }
/* Suggestions d'auteur : liste collée sous le champ */
.fo-suggere { position: relative; }
.fo-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 260px; overflow-y: auto;
    background: var(--bg-darker, #15171c); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small, 4px); text-transform: none; letter-spacing: 0; font: 15px/1.4 'Barlow', system-ui, sans-serif; }
.fo-suggestions li { padding: 6px 10px; cursor: pointer; color: var(--fo-t1); }
.fo-suggestions li[aria-selected="true"], .fo-suggestions li:hover { background: color-mix(in srgb, var(--fo-bleu) 18%, transparent); }
.fo-modif { margin-top: 4px; }

/* ---------- fenêtre, message bref ---------- */
.fo-dialogue { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--bg-darker, #15171c); color: var(--fo-t1); border: 1px solid transparent; border-image: linear-gradient(135deg, var(--fo-bleu) 0, var(--fo-lisere) 35%, var(--fo-lisere) 65%, var(--fo-or) 100%) 1; padding: 18px; }
.fo-dialogue::backdrop { background: rgba(0, 0, 0, .7); }
.fo-dialogue h2 { font-family: var(--fo-titre); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.fo-dialogue label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fo-t2); }
.fo-dialogue-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fo-version { border-top: 1px solid var(--fo-bord); padding: 8px 0; }
.fo-version pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; font: 13px var(--fo-mono); color: var(--fo-t2); }
.fo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px);
    background: var(--bg-darker, #15171c); color: var(--fo-ok); border: 1px solid var(--fo-ok); padding: 10px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.fo-toast-err { color: var(--fo-danger); border-color: var(--fo-danger); }

/* ---------- petits écrans ---------- */
/* Vote positif d'un message (une voix par compte) : à gauche des actions, or quand on a voté. */
.fo-actions .fo-plus { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: 500 12px var(--fo-mono); color: var(--fo-t2) !important; background: transparent; border: 1px solid var(--fo-bord2); border-radius: var(--radius-small); }
.fo-actions button.fo-plus { cursor: pointer; }
.fo-actions button.fo-plus:hover { border-color: var(--fo-or); color: var(--fo-or-vif) !important; background: var(--fo-or-nuit); }
.fo-actions .fo-plus[aria-pressed="true"] { border-color: var(--fo-or); color: var(--fo-or-vif) !important; background: var(--fo-or-nuit); }
.fo-actions .fo-plus-fixe { border-style: dashed; color: var(--fo-t3) !important; }
.fo-plus-liste { color: var(--fo-or-vif); }
.fo-tri { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font: 12px var(--fo-mono); text-transform: uppercase; letter-spacing: .5px; }
.fo-tri a { padding: 5px 10px; border: 1px solid var(--fo-bord); border-radius: var(--radius-small); color: var(--fo-t3); }
.fo-tri a:hover { border-color: var(--fo-or); color: var(--fo-or-vif); }
.fo-tri a.fo-tri-ici { border-color: var(--fo-or); color: var(--fo-or-vif); background: var(--fo-or-nuit); }

/* ---------- outils de jeu : lancer de dés, tirage au sort, sondage ---------- */
/* Un lancer ou un tirage est un message à part, sur une ligne : petit avatar, résultat, heure. */
.fo-msg.fo-jet { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--fo-carte2); border-image: none; border-color: var(--fo-bord); border-left: 2px solid var(--fo-or); }
.fo-jet-avatar { width: 36px; height: 36px; object-fit: cover; object-position: 50% 0; border: 1px solid var(--fo-bord2); flex: 0 0 auto; }
.fo-jet-corps { flex: 1; min-width: 0; }
.fo-jet-ligne { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fo-jet-ico { color: var(--fo-or); font-size: 20px; line-height: 1; }
.fo-de { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 5px; font: 500 14px var(--fo-mono); color: var(--fo-t1); background: var(--fo-creux); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small); }
.fo-de-max { border-color: var(--fo-or); color: var(--fo-or-vif); }
.fo-de-min { border-color: var(--fo-danger); color: var(--fo-danger); }
.fo-jet-bonus, .fo-jet-egal { font: 14px var(--fo-mono); color: var(--fo-t3); }
.fo-jet-total { font: 400 22px/1 var(--fo-titre); letter-spacing: .5px; color: var(--fo-or-vif); }
.fo-jet-detail { font-size: 13px; color: var(--fo-t3); }
.fo-jet-com { font-style: italic; color: var(--fo-t2); margin-top: 2px; overflow-wrap: anywhere; }
.fo-jet-pied { font: 11px var(--fo-mono); color: var(--fo-t3); margin-top: 2px; }
.fo-jet-pied a { color: var(--fo-t3); }
.fo-jet .fo-actions { margin: 0; padding: 0; }
.fo-badge-ok { --fo-badge-c: var(--fo-ok); }

.fo-outils-jeu { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fo-bord); }
.fo-outil-jeu { border: 1px solid var(--fo-bord); background: var(--fo-carte2); }
.fo-outil-jeu > summary { cursor: pointer; padding: 8px 12px; font: 12px var(--fo-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--fo-bleu); }
.fo-outil-jeu > summary:hover { color: var(--fo-bleu-vif); }
.fo-outil-jeu[open] > summary { border-bottom: 1px solid var(--fo-bord); }
.fo-outil-jeu > form, .fo-outil-jeu > .fo-champ, .fo-outil-jeu > .fo-form-pied { padding: 12px; }
.fo-outil-jeu > .fo-champ + .fo-champ, .fo-outil-jeu > .fo-form-pied { padding-top: 0; }
.fo-coche { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fo-t2); }
.fo-page input.fo-petit { width: 72px; background: var(--fo-creux); color: var(--fo-t1); border: 1px solid var(--fo-bord2); border-radius: var(--radius-small); padding: 6px 8px; font: 14px inherit; }
.fo-page input.fo-petit:focus { border-color: var(--fo-bleu); outline: none; }
.fo-page input[type=checkbox], .fo-page input[type=radio] { accent-color: var(--fo-or); width: 18px; height: 18px; margin: 0; }
.fo-sondage-lignes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }

.fo-sondage-question { font-size: 18px; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.fo-sondage-choix { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fo-sondage-choix label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fo-sondage-lib { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fo-sondage-nb { font: 12px var(--fo-mono); color: var(--fo-t3); white-space: nowrap; }
.fo-sondage-barre { display: block; height: 4px; margin-top: 4px; background: var(--fo-creux); }
.fo-sondage-barre i { display: block; height: 100%; background: var(--fo-bleu); }
.fo-sondage-tete .fo-sondage-barre i { background: var(--fo-or); }
.fo-sondage-tete .fo-sondage-nb { color: var(--fo-or-vif); }

/* Cagnotte de feature (bandeau en tête d'un sujet) */
.fo-cagnotte-barre { display: block; height: 8px; margin: 8px 0 4px; background: var(--fo-creux); }
.fo-cagnotte-barre i { display: block; height: 100%; background: var(--fo-or); }
.fo-cagnotte-remboursee .fo-cagnotte-barre i { background: var(--fo-bleu); opacity: .5; }
.fo-cagnotte-chiffres b { color: var(--fo-or-vif); font-size: 1.15em; }

/* Planche des smileys de l'éditeur */
.fo-smiley-btn { padding: 2px 6px; }
.fo-smiley-btn img { display: block; }
.fo-smileys { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--bg-medium, #23262d); border: 1px solid var(--fo-bord2); border-top: 0; border-bottom: 0; }
.fo-smiley { background: transparent; border: 1px solid transparent; border-radius: var(--radius-small, 4px); padding: 4px; cursor: pointer; line-height: 0; }
.fo-smiley:hover { border-color: var(--fo-bleu); background: var(--fo-creux); }

/* Toute la ligne d'une section ou d'un sujet se touche : le lien du titre couvre la ligne,
   le lien « dernier message » reste au-dessus. */
.fo-section, .fo-sujet { position: relative; }
.fo-sujet-titre > a::after { content: ''; position: absolute; inset: 0; }
.fo-sujet-der a { position: relative; z-index: 1; }
.fo-liste > li.fo-section:hover, .fo-liste > li.fo-sujet:hover { background: color-mix(in srgb, var(--fo-bleu) 6%, transparent); }

/* ---------- tablette et téléphone ----------
   1. La barre du haut ne tient plus sur une ligne sous 1000 px : bloc opaque, liens sur une rangée qui défile.
   2. Au doigt (pointer: coarse) ou sous 1000 px : tout ce qui se touche fait au moins 44 px, les textes grossissent,
      les champs passent à 16 px (en dessous, iOS zoome la page à chaque saisie).
   3. Sous 720 px : listes et messages sur une colonne. */
@media (max-width: 1000px) {
    /* Fond PLEIN, y compris une fois la page défilée : la barre reste en haut et le texte passerait derrière. */
    .fo-barre, .fo-barre.fo-barre-pleine { position: sticky; height: auto; flex-wrap: wrap; gap: 0 16px; padding: 6px 16px 0; background: var(--fo-fond); border-bottom: 1px solid var(--fo-bord); }
    .fo-barre::before, .fo-barre::after { display: none; }
    .fo-logo { display: flex; align-items: center; min-height: 44px; }
    .fo-nav { width: 100%; gap: 0 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .fo-nav::-webkit-scrollbar { display: none; }
    .fo-nav a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 16px; flex: 0 0 auto; }
    .fo-nav a.fo-nav-ici::after { bottom: 6px; }
    .fo-nav a.fo-nav-fort { min-height: 34px; }
    .fo-main { padding: 14px 12px 40px; }
    /* Fil d'Ariane : seul le niveau du dessus, comme un bouton « retour » (le titre est juste dessous). */
    .fo-ariane > * { display: none; }
    .fo-ariane > a:last-of-type { display: inline-flex; align-items: center; min-height: 40px; padding: 0; font-size: 14px; }
    .fo-ariane > a:last-of-type::before { content: '‹'; margin-right: 8px; font-size: 18px; }
    .fo-ariane { margin-bottom: 2px; }
}
@media (pointer: coarse), (max-width: 1000px) {
    .fo-page { font-size: 16px; }
    .fo-liste > li { padding: 14px 0; }
    .fo-sujet-titre > a { font-size: 18px; line-height: 1.3; }
    .fo-sujet-meta { font-size: 14px; margin-top: 2px; }
    .fo-sujet-der { font-size: 14px; }
    .fo-sujet-der a { display: inline-block; padding: 6px 0; }
    .fo-ariane { font-size: 13px; gap: 4px 8px; }
    .fo-ariane a, .fo-ariane .fo-ici { padding: 8px 0; }
    .fo-btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }
    .fo-actions { gap: 8px; }
    .fo-actions button, .fo-actions a { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    .fo-actions .fo-plus { min-height: 40px; padding: 8px 14px; font-size: 14px; }
    .fo-tri a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 12px; }
    .fo-pages { gap: 6px; }
    .fo-pages a, .fo-pages span { min-width: 44px; padding: 12px 10px; font-size: 14px; }
    .fo-outils { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px 6px; }
    .fo-outils::-webkit-scrollbar { display: none; }
    .fo-outil { flex: 0 0 auto; min-width: 42px; min-height: 42px; font-size: 14px; }
    .fo-apercu-btn { position: sticky; right: 0; background: var(--bg-medium, #23262d); }
    /* La barre d'outils défile de côté : les smileys passent en tête pour rester sous le pouce. */
    .fo-smiley-btn { order: -1; }
    .fo-smiley { padding: 6px; }
    .fo-outil-jeu > summary { padding: 13px 12px; font-size: 13px; }
    .fo-page input.fo-petit { font-size: 16px; min-height: 44px; }
    .fo-sondage-choix label { min-height: 40px; }
    .fo-smiley img { width: 36px; height: 36px; }
    .fo-champ input, .fo-editeur textarea, .fo-dialogue textarea, .fo-recherche input[type=search], .fo-page select, .fo-suggestions { font-size: 16px; }
    .fo-page select { min-height: 44px; }
    .fo-original summary { padding: 10px 0; }
    .fo-msg-tete { font-size: 13px; }
    .fo-modo { gap: 10px; }
    .fo-page .fo-modo select { max-width: 100%; flex: 1 1 200px; }
    .fo-dialogue-pied .fo-btn { flex: 1; justify-content: center; }
    .fo-toast { bottom: 16px; width: calc(100vw - 24px); text-align: center; }
}
@media (max-width: 720px) {
    .fo-modo-titre { display: block; padding: 8px 0; font-size: 12px; }
    .fo-modo:not([open]) { display: block; }
    .fo-tete h1 { font-size: 26px; }
    .fo-tete-actions { width: 100%; }
    .fo-tete-actions .fo-btn { flex: 1; justify-content: center; }
    .fo-cadre { padding: 10px 12px; }
    .fo-section, .fo-sujet { grid-template-columns: 12px minmax(0, 1fr); }
    .fo-sujet-der { grid-column: 2; font-size: 13px; color: var(--fo-t3); }
    .fo-sujet-der br { display: none; }
    .fo-sujet-der small { margin-left: 6px; }
    /* Sur une colonne, le lien « dernier message » occuperait le bas de la ligne : toute la ligne mène au titre. */
    .fo-sujet-der a { pointer-events: none; color: inherit; padding: 0; }
    .fo-msg { grid-template-columns: 1fr; }
    .fo-auteur { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--fo-bord); flex-wrap: wrap; }
    .fo-avatar, .fo-auteur-portrait .fo-avatar { width: 48px; height: 48px; clip-path: none; }
    .fo-auteur-nom { margin: 0; }
    .fo-auteur-nb { margin: 0 0 0 auto; }
    .fo-corps { padding: 10px 12px 12px; }
    .fo-msg.fo-jet { flex-wrap: wrap; gap: 8px 12px; }
    .fo-jet .fo-actions { flex: 1 1 100%; }
    .fo-jet .fo-actions button { min-height: 36px; }
    .fo-actions { justify-content: flex-start; }
    .fo-actions .fo-pousse { display: none; }
    .fo-sujet-nb { display: block; grid-column: 2; text-align: left; }
    .fo-sujet-nb br, .fo-sujet-nb small { display: none; }
    .fo-sujet-nb { font-size: 0; }
    .fo-plus-liste { font-size: 13px; }
    .fo-form-pied .fo-btn-fort { flex: 1; justify-content: center; }
    .fo-signe { flex: 1 1 100%; }
    .fo-signe label, .fo-signe select { flex: 1; min-width: 0; }
    .fo-etoile { min-width: 44px; min-height: 44px; }
    .fo-recherche-ligne { flex-wrap: wrap; }
    .fo-recherche input[type=search] { flex: 1 1 100%; }
    .fo-recherche-ligne .fo-btn { flex: 1; justify-content: center; }
}

/* ---------- chroniques de personnages (migration 480) ----------
   Statut : RP public = néon bleu (ce que la ville sait), HRP = gris (coulisses), privé = or (gardé pour soi).
   Page des chroniques : portrait | liste | lecture, chaque colonne défile seule ; sous 1000 px, tout s'empile
   et la lecture vient sous la liste. Aucune animation en boucle. */
.fo-chr-rp { --fo-badge-c: var(--fo-bleu); }
.fo-chr-hrp { --fo-badge-c: var(--fo-t2); }
.fo-chr-prive { --fo-badge-c: var(--fo-or); }
.fo-main:has(.fo-chr) { max-width: 1480px; }

.fo-chr { --fo-chr-h: calc(100vh - 210px); display: grid; grid-template-columns: 260px minmax(260px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.fo-chr > * { min-width: 0; }

/* colonne 1 : le personnage, portrait plein cadre et identité posée dessus */
.fo-chr-perso { position: sticky; top: 72px; height: var(--fo-chr-h); min-height: 440px; overflow: hidden; background: var(--fo-creux); border: 1px solid var(--fo-bord);
    display: flex; flex-direction: column; justify-content: flex-end;
    clip-path: polygon(var(--fo-c) 0, 100% 0, 100% calc(100% - var(--fo-c)), calc(100% - var(--fo-c)) 100%, 0 100%, 0 var(--fo-c)); }
.fo-chr-perso-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.fo-chr-perso:not(.fo-chr-perso-portrait) .fo-chr-perso-img { inset: 56px auto auto 50%; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%;
    border: 1px solid var(--fo-bord2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fo-bleu) 8%, transparent); }
.fo-chr-perso::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 35%, rgba(3, 4, 5, 0.72) 62%, rgba(3, 4, 5, 0.97) 100%); }
.fo-chr-perso::after { content: ''; position: absolute; left: calc(var(--fo-c) + 10px); top: 0; width: 110px; height: 2px; background: var(--fo-bleu); }
.fo-chr-perso-id, .fo-chr-filtres { position: relative; padding: 0 16px; }
.fo-chr-sur { font: 500 10.5px var(--fo-mono); letter-spacing: 2.5px; text-transform: uppercase; color: var(--fo-bleu); }
.fo-chr-perso h1 { font: 400 34px/1.05 var(--fo-titre); letter-spacing: 1.5px; margin: 4px 0 2px; color: var(--fo-t1); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.fo-chr-perso-titre { margin: 0; color: var(--fo-t2); font-style: italic; }
.fo-chr-compte { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--fo-bord); font: 12px var(--fo-mono); color: var(--fo-t3); text-transform: uppercase; letter-spacing: 1px; }
.fo-chr-compte b { font: 400 24px/1 var(--fo-titre); letter-spacing: 1px; color: var(--fo-or-vif); margin-right: 4px; vertical-align: -3px; }
.fo-chr-filtres { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; padding-bottom: 16px; }
.fo-chr-filtre { font: 500 11px var(--fo-mono); text-transform: uppercase; letter-spacing: .6px; color: var(--fo-t2); background: rgba(3, 4, 5, .6); border: 1px solid var(--fo-bord2);
    border-radius: var(--radius-small); padding: 5px 9px; cursor: pointer; }
.fo-chr-filtre small { color: var(--fo-t3); }
.fo-chr-filtre:hover { border-color: var(--fo-bleu); color: var(--fo-bleu-vif); }
.fo-chr-filtre[aria-pressed="true"] { border-color: var(--fo-or); color: var(--fo-encre); background: var(--fo-or); }
.fo-chr-filtre[aria-pressed="true"] small { color: var(--fo-encre); }

/* colonne 2 : la liste */
.fo-chr-liste { position: sticky; top: 72px; max-height: var(--fo-chr-h); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: var(--fo-bord2) transparent; }
.fo-chr-carte { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 11px 13px 10px 15px; background: var(--fo-carte); border: 1px solid var(--fo-bord);
    color: var(--fo-t2) !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); transition: border-color .15s, background .15s; }
.fo-chr-carte::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--fo-bord2); transition: background .15s; }
.fo-chr-carte:hover { border-color: var(--fo-bord2); background: var(--fo-leve); }
.fo-chr-carte:hover::before { background: var(--fo-bleu); }
.fo-chr-carte[aria-current="true"] { border-color: color-mix(in srgb, var(--fo-or) 60%, transparent); background: linear-gradient(90deg, var(--fo-or-nuit), var(--fo-carte) 70%); }
.fo-chr-carte[aria-current="true"]::before { background: var(--fo-or); box-shadow: 0 0 8px var(--fo-or); }
.fo-chr-carte[hidden] { display: none; }
.fo-chr-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fo-chr-carte-date { font: 11px var(--fo-mono); color: var(--fo-t3); white-space: nowrap; }
.fo-chr-carte strong { color: var(--fo-t1); font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.fo-chr-carte-extrait { font-size: 13px; line-height: 1.45; color: var(--fo-t3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fo-chr-carte-pied { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.fo-chr-carte-pied:empty { display: none; }
.fo-chr-tiers { color: var(--fo-bleu); font-style: italic; }
.fo-chr-rien { color: var(--fo-t3); font-style: italic; padding: 18px 4px; }

/* colonne 3 : la lecture */
.fo-chr-lecteur { position: sticky; top: 72px; height: var(--fo-chr-h); min-height: 440px; overflow-y: auto; background: var(--fo-carte); border: 1px solid var(--fo-bord);
    clip-path: polygon(var(--fo-c) 0, 100% 0, 100% calc(100% - var(--fo-c)), calc(100% - var(--fo-c)) 100%, 0 100%, 0 var(--fo-c));
    scrollbar-width: thin; scrollbar-color: var(--fo-bord2) transparent; }
.fo-chr-lecteur.fo-chr-charge > * { opacity: .45; transition: opacity .15s; }
.fo-chr-lu { padding: 26px clamp(18px, 4vw, 54px) 22px; max-width: 820px; margin: 0 auto; }
.fo-chr-lu-tete { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--fo-bleu) 0, var(--fo-lisere) 160px, var(--fo-lisere) calc(100% - 120px), var(--fo-or) 100%) 1; }
.fo-chr-lu h2 { font: 400 clamp(26px, 3vw, 36px)/1.12 var(--fo-titre); letter-spacing: 1px; margin: 10px 0 6px; color: var(--fo-t1); overflow-wrap: anywhere; }
.fo-chr-lu-meta { margin: 0; color: var(--fo-t3); font-size: 13px; }
.fo-chr-texte { font-size: 16px; line-height: 1.75; color: var(--fo-t1); }
.fo-chr-lu-pied { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--fo-bord); }
.fo-chr-avis { margin: 0 0 18px; padding: 8px 12px; font-size: 14px; color: var(--fo-t2); border-left: 3px solid var(--fo-t3); background: color-mix(in srgb, var(--fo-t3) 10%, transparent); }
.fo-chr-avis b { font: 500 11px var(--fo-mono); letter-spacing: 1px; margin-right: 8px; }
.fo-chr-avis-prive { border-color: var(--fo-or); background: color-mix(in srgb, var(--fo-or) 8%, transparent); }
.fo-chr-avis-prive b { color: var(--fo-or); }
.fo-chr-lecteur-vide { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--fo-t3); text-align: center; padding: 30px; }
.fo-chr-plume { font-size: 40px; color: color-mix(in srgb, var(--fo-bleu) 45%, transparent); }

/* bloc d'un sujet-chronique, choix à la création */
.fo-chr-bloc { display: flex; flex-direction: column; gap: 10px; }
.fo-chr-bloc-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.fo-chr-toutes { margin-left: auto; font-size: 14px; }
.fo-chr-regler, .fo-chr-versos { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.fo-chr-regler { padding-top: 10px; border-top: 1px solid var(--fo-bord); }
.fo-chr-verso { margin: 0; }
.fo-chr-epingle { font: 500 12px var(--fo-mono); color: var(--fo-t2); background: transparent; border: 1px dashed var(--fo-bord2); border-radius: var(--radius-small); padding: 5px 10px; cursor: pointer; }
.fo-chr-epingle:hover { border-color: var(--fo-bleu); color: var(--fo-bleu-vif); }
.fo-chr-epingle[aria-pressed="true"] { border-style: solid; border-color: var(--fo-bleu); color: var(--fo-bleu-vif); background: color-mix(in srgb, var(--fo-bleu) 12%, transparent); }
.fo-chr-choix { border: 1px solid var(--fo-bord); margin: 12px 0; padding: 10px 14px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fo-chr-choix legend { padding: 0 6px; font: 500 12px var(--fo-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--fo-bleu); }
.fo-chr-choix > .fo-coche { grid-column: 1 / -1; }
.fo-chr-option { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--fo-bord); cursor: pointer; }
.fo-chr-option input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--fo-badge-c); }
.fo-chr-option:has(input:checked) { border-color: var(--fo-badge-c); background: color-mix(in srgb, var(--fo-badge-c) 10%, transparent); }
.fo-chr-option b { display: block; color: var(--fo-badge-c); font: 500 12px var(--fo-mono); text-transform: uppercase; letter-spacing: 1px; }
.fo-chr-option small { color: var(--fo-t3); font-size: 12.5px; line-height: 1.4; }

/* page des chroniques : une section à part (barre propre : changer de personnage sans repasser par la recherche) */
.fo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fo-chr-barre { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--fo-bleu) 0, var(--fo-lisere) 200px, var(--fo-lisere) calc(100% - 160px), var(--fo-or) 100%) 1; }
.fo-chr-barre-titre { font: 400 26px/1 var(--fo-titre); letter-spacing: 2px; text-transform: uppercase; color: var(--fo-t1); margin-right: auto; }
.fo-chr-autre { position: relative; margin: 0; width: min(340px, 100%); }
.fo-chr-autre input { width: 100%; }
.fo-chr-lu-meta a { color: var(--fo-bleu); }
/* recherche : l'auteur choisi et ses deux chemins */
.fo-chr-auteur { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fo-chr-auteur-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--fo-bord2); }
.fo-chr-auteur-portrait { border-radius: 0; height: 80px; object-position: 50% 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.fo-chr-auteur-id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.fo-chr-auteur-id b { font: 400 24px/1.1 var(--fo-titre); letter-spacing: 1px; color: var(--fo-t1); }
.fo-chr-auteur-id span { color: var(--fo-t2); font-style: italic; }
.fo-chr-auteur-id small { color: var(--fo-t3); font-size: 13px; }
.fo-chr-auteur-ouvrir { white-space: nowrap; }
/* confier, révéler (lot 3) */
.fo-chr-confier, .fo-chr-reveler { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--fo-bord); }
.fo-chr-confier form, .fo-chr-reveler form { margin: 0; }
.fo-chr-lecteur-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid color-mix(in srgb, var(--fo-or) 55%, transparent);
    border-radius: 14px; color: var(--fo-or-vif); background: color-mix(in srgb, var(--fo-or) 10%, transparent); font-size: 14px; }
.fo-chr-lecteur-chip button { background: none; border: 0; color: var(--fo-t3); cursor: pointer; padding: 0 5px; font-size: 12px; }
.fo-chr-lecteur-chip button:hover { color: var(--fo-danger); }
.fo-chr-inviter { display: inline-flex; gap: 6px; align-items: center; }
.fo-chr-inviter .fo-suggere { position: relative; }
.fo-chr-inviter input { width: 220px; }
.fo-chr-revelee { color: var(--fo-or); }
.fo-chr-conf-tete .fo-chr-sur { color: var(--fo-or); }
/* événements (lot 2) : la mémoire de la ville */
.fo-chr-evt { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.fo-chr-evt-tete { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--fo-or) 0, var(--fo-lisere) 200px, var(--fo-lisere) calc(100% - 160px), var(--fo-bleu) 100%) 1; }
.fo-chr-evt-tete .fo-chr-sur { color: var(--fo-or); }
.fo-chr-evt-tete h1 { font: 400 clamp(30px, 4vw, 44px)/1.05 var(--fo-titre); letter-spacing: 1.5px; margin: 4px 0; color: var(--fo-t1); overflow-wrap: anywhere; }
.fo-chr-evt-tete p { margin: 0; }
.fo-chr-evt-persos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fo-chr-evt-persos a { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--fo-bord2); border-radius: 20px;
    background: var(--fo-carte2); color: var(--fo-t2); font-size: 14px; }
.fo-chr-evt-persos a:hover { border-color: var(--fo-bleu); color: var(--fo-bleu-vif); }
.fo-chr-evt-persos img, .fo-chr-carte-qui img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 0; }
.fo-chr-carte-qui { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--fo-bleu); }
.fo-chr-carte-evt { color: var(--fo-or); font-size: 12px; margin-left: auto; }
.fo-chr-evt-lien { margin: 0 0 16px; font: 500 12px var(--fo-mono); letter-spacing: .6px; text-transform: uppercase; }
.fo-chr-bloc-tete .fo-chr-evt-lien { margin: 0; }
.fo-chr-evt-lien a, a.fo-chr-evt-lien { color: var(--fo-or) !important; }
.fo-chr-choix-ligne:empty { display: none; }
.fo-chr-choix-ligne { grid-column: 1 / -1; }
.fo-chr-evts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fo-chr-evts-carte { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px 18px; background: var(--fo-carte); border: 1px solid var(--fo-bord);
    color: var(--fo-t2) !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.fo-chr-evts-carte::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--fo-or); }
.fo-chr-evts-carte:hover { border-color: var(--fo-or); background: linear-gradient(90deg, var(--fo-or-nuit), var(--fo-carte) 70%); }
.fo-chr-evts-carte strong { font: 400 24px/1.1 var(--fo-titre); letter-spacing: 1px; color: var(--fo-t1); }
.fo-chr-evts-carte small { color: var(--fo-t3); }
@media (max-width: 1100px) {
    .fo-chr { grid-template-columns: 220px minmax(0, 1fr); }
    .fo-chr-evt { grid-template-columns: minmax(0, 1fr); }
    .fo-chr-lecteur { grid-column: 1 / -1; position: static; height: auto; min-height: 0; }
}
@media (max-width: 720px) {
    .fo-chr { grid-template-columns: minmax(0, 1fr); }
    .fo-chr-perso { position: relative; top: 0; height: 320px; min-height: 0; }
    .fo-chr-liste { position: static; max-height: none; overflow: visible; }
    .fo-chr-choix { grid-template-columns: minmax(0, 1fr); }
    .fo-chr-toutes { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .fo-page * { scroll-behavior: auto !important; } }

