/* Panel du bot : charte des interfaces Lyssa Pestis.
   Menu Echap (decor photographique voile, brume, grain, navigation
   numerotee a halo rouille, feuillets) et registre d'administration
   (en-tete a indicateurs, titres soulignes de rouille, encadres sombres).
   Western : marque ; Catalogue : titres, navigation, boutons, chiffres ;
   Lino : etiquettes ; Georgia : texte courant, comme le registre. */
@font-face { font-family: Catalogue; src: url('/assets/RDRCatalogueBold-Bold.ttf'); font-display: swap; }
@font-face { font-family: Lino; src: url('/assets/RDRLino-Regular.ttf'); font-display: swap; }
@font-face { font-family: Western; src: url('/assets/Western.woff2'); font-display: swap; }

:root {
    --charbon: #0d0e0e; --carte: #1b1815; --carte-hi: #26201b;
    --papier: #f1e8d8; --sourd: #d4c8b6; --faible: #a99e8e; --ombre: #81776b;
    --laiton: #bd9b69; --laiton-hi: #d9c298; --rouille: #a2493c; --rouille-hi: #cd8a68; --sauge: #a9b48a;
    --filet: #bd9b6926; --filet-mid: #bd9b6955;
    --ease: cubic-bezier(.22, .68, .25, 1);
    --decor: url('/assets/telegraphe.jpg');
}
* { box-sizing: border-box; }
html { background: var(--charbon); }
html, body { margin: 0; min-height: 100%; }
body { color: var(--papier); font: 16px/1.6 Georgia, 'Times New Roman', serif; background: transparent; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--laiton-hi); }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 2px; }

/* ------------------------------------------------------------ decor */
body::before {
    content: ''; position: fixed; inset: -3%; z-index: -3;
    background: linear-gradient(90deg, #0d0e0e 0%, #0d0e0ef5 30%, #0d0e0ed0 55%, #0d0e0e99 80%, #0d0e0eb3),
        linear-gradient(0deg, #0d0e0e 0%, transparent 45%), var(--decor) 70% 45% / cover no-repeat;
    filter: sepia(.25) saturate(.6);
    animation: developper 1.6s var(--ease) both;
}
body.porte, body.seule, body.transcription { --decor: url('/assets/frontiere.jpg'); }
.brume { position: fixed; inset: 30% -15% -15% 35%; z-index: -2; pointer-events: none;
    background: radial-gradient(ellipse at 50% 75%, #c0b6a014, transparent 55%), radial-gradient(ellipse at 80% 30%, #9d5c341c, transparent 58%);
    filter: blur(25px); animation: brume 24s ease-in-out infinite alternate; }
.grain { position: fixed; inset: 0; z-index: 50; opacity: .035; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
@keyframes developper { from { opacity: .2; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes brume { to { transform: translate(-5%, -3%) scale(1.08); } }
@keyframes lever { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ marque et etiquettes */
.marque { font: 52px/.83 Western, serif; letter-spacing: -.01em; color: #c4c2b4; }
.marque span { display: block; color: #984b3d; font-size: .82em; }
.marque small { display: block; font: 9px Lino, serif; letter-spacing: .45em; margin-top: 14px; color: #a4a497; }
.surtitre { display: flex; align-items: center; gap: 12px; font: 12px Lino, serif; letter-spacing: .16em; color: var(--laiton); text-transform: uppercase; margin: 0 0 12px; }
.trait { width: 27px; height: 2px; background: var(--rouille); flex: 0 0 auto; }
.erreur { color: #dfa58c; min-height: 24px; }

/* ------------------------------------------------------------ boutons */
.bouton {
    display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px; text-decoration: none;
    border: 1px solid #bd9b6966; background: linear-gradient(110deg, #3c2d24eb, #211b17ed); box-shadow: 0 4px 14px #0003;
    color: var(--papier); font: 21px Catalogue, serif; letter-spacing: .01em; transition: background .18s, border-color .18s, color .18s;
}
.bouton::after { content: "↗"; color: var(--laiton); font: 20px Georgia, serif; }
.bouton:hover, .bouton:focus-visible { background: linear-gradient(110deg, #65392ce6, #35231de8); border-color: var(--laiton); color: #fff4df; }
.bouton:disabled { opacity: .5; cursor: wait; }
.discret { color: var(--sourd); padding: 8px 10px; font: 17px Catalogue, serif; letter-spacing: .02em; }
.discret:hover, .discret:focus-visible { color: var(--papier); text-decoration: underline; text-underline-offset: 5px; }
.discret:disabled { opacity: .35; cursor: default; text-decoration: none; }
.danger { color: #dfa58c; }
.danger-bouton { border-color: #a2493c99; }
.danger-bouton::after { content: '✕'; color: #dfa58c; }

/* ------------------------------------------------------------ porte (connexion) */
.porte { min-height: 100vh; padding: 6vh 6vw; display: grid; grid-template-rows: auto 1fr; animation: lever .9s var(--ease) both; }
.porte-texte { align-self: center; max-width: 560px; }
.porte h1 { margin: 0 0 22px; font: clamp(64px, 7vw, 120px)/.93 Western, serif; letter-spacing: -.02em; color: #d8d3c3; text-shadow: 0 3px 22px #0008; }
.porte h1 em { font: inherit; color: #b45e48; }
.devise { font-size: 19px; line-height: 1.55; color: #d5c7b2; margin: 0 0 30px; }

/* ------------------------------------------------------------ disposition du panel */
#app { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 100vh; }
.rail {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
    padding: 5vh 26px 26px 44px; animation: lever .8s var(--ease) both;
}
.rail .marque { margin-bottom: 7vh; }
#onglets { display: grid; gap: 2px; margin-top: 4px; }
#onglets button {
    position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px; width: 100%; padding: 9px 12px 9px 0;
    text-align: left; color: #b8b2a4; font: 26px/1.1 Catalogue, serif; transition: color .25s, transform .3s var(--ease);
}
#onglets button::before {
    content: ''; position: absolute; inset: -4px -14px -4px -24px; z-index: -1; opacity: 0; transition: opacity .3s;
    background: radial-gradient(ellipse at 25% 50%, #a2493c55, transparent 72%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
#onglets .numero { font: 11px Lino, serif; color: var(--ombre); letter-spacing: .08em; min-width: 18px; }
#onglets small { display: block; font: 14px Catalogue, serif; color: #a69b8b; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .2s, max-height .3s, margin .3s; }
#onglets button:hover, #onglets button:focus-visible, #onglets button[aria-current="page"] { color: var(--papier); transform: translateX(8px); }
#onglets button[aria-current="page"]::before, #onglets button:hover::before { opacity: 1; }
#onglets button[aria-current="page"] .numero { color: var(--rouille-hi); }
#onglets button[aria-current="page"] small { max-height: 22px; margin-top: 5px; opacity: 1; }
.identite { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 12px Lino, serif; letter-spacing: .07em; color: #a79c8b; }
.identite img { border-radius: 50%; }
.identite .point { width: 5px; height: 5px; background: #a48e6a; box-shadow: 0 0 10px #a48e6a55; }
.identite .discret { font-size: 15px; padding-left: 0; }

.registre { min-width: 0; padding: 5vh 5vw 140px 2vw; animation: lever .9s .08s var(--ease) both; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--filet-mid); }
.entete .surtitre { margin-bottom: 6px; color: #c7b499; }
.titre-registre { margin: 0; font: 30px Catalogue, serif; color: var(--papier); }
.indicateurs { display: flex; gap: 26px; flex-wrap: wrap; }
.indicateur { display: flex; align-items: baseline; gap: 8px; }
.indicateur b { font: 22px Catalogue, serif; color: var(--papier); font-weight: normal; }
.indicateur span { font: 11px Lino, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faible); }

#vue { max-width: 1180px; padding-top: 30px; outline: none; }
.tete-vue { margin-bottom: 26px; }
.tete-vue h1 { position: relative; display: inline-block; font: 44px/1.05 Catalogue, serif; margin: 0 0 16px; padding-bottom: 12px; }
.tete-vue h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 70px; height: 2px; background: var(--rouille); }
.tete-vue p { margin: 0; color: var(--sourd); max-width: 760px; font-size: 17px; }
.section { margin: 34px 0; }
.section > h2 { font: 13px Lino, serif; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); margin: 0 0 16px; padding-bottom: 9px; border-bottom: 1px solid var(--filet); }
.aide { color: var(--faible); font-size: 15px; margin: 6px 0 0; }
.vide { color: var(--faible); font-style: italic; padding: 18px 0; }

/* encadres */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.chiffre, .pole-carte, .forum, .detail {
    background: linear-gradient(120deg, #241e19e6, #151413e6); border: 1px solid var(--filet);
    box-shadow: inset 0 0 0 1px #0004, 0 8px 24px #0005;
}
.chiffre { padding: 18px 20px; }
.chiffre .l { font: 12px Lino, serif; letter-spacing: .14em; color: var(--faible); text-transform: uppercase; }
.chiffre .v { font: 40px/1.15 Catalogue, serif; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.chiffre .s { color: var(--sourd); font-size: 15px; }
.point { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); background: var(--faible); flex: 0 0 auto; }
.point.ok { background: var(--sauge); box-shadow: 0 0 8px #a9b48a88; }
.point.ko { background: var(--rouille-hi); }

.forums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.forum { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: var(--papier); transition: border-color .15s, background .15s; }
.forum:hover, .forum:focus-visible { border-color: var(--laiton); background: linear-gradient(120deg, #3c2d24eb, #211b17ed); }
.forum .nom { font: 22px Catalogue, serif; color: var(--laiton-hi); }
.forum .cats { color: var(--sourd); font-size: 15px; }
.forum .lien { margin-top: auto; padding-top: 6px; font: 12px Lino, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faible); }
.forum:hover .lien { color: var(--papier); }

/* champs */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.champ { display: block; }
.champ > span { display: block; font: 12px Lino, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faible); margin-bottom: 7px; }
input[type=text], input[type=number], select, textarea {
    width: 100%; padding: 10px 13px; background: #0d0e0ecc; border: 1px solid var(--filet); border-bottom-color: var(--filet-mid);
    color: var(--papier); font: 16px Georgia, 'Times New Roman', serif;
}
input:focus, select:focus, textarea:focus { border-color: var(--laiton); outline: none; }
input[readonly] { color: var(--faible); }
input::placeholder { color: #7f766a; }
select { color-scheme: dark; }

/* puces de roles */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--filet);
    background: #0d0e0e99; color: var(--sourd); font: 16px Catalogue, serif; letter-spacing: .02em; transition: border-color .15s, color .15s, background .15s;
}
.puce i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--c, var(--faible)); flex: 0 0 auto; }
.puce[aria-pressed="true"] { color: var(--papier); border-color: var(--laiton); background: radial-gradient(ellipse at 20% 50%, #a2493c44, transparent 75%), linear-gradient(110deg, #3c2d24eb, #211b17ed); }
.puce:hover { border-color: var(--filet-mid); color: var(--papier); }
.puce.inconnu { border-style: dashed; color: #dfa58c; }

/* interrupteur */
.bascule { display: inline-flex; align-items: center; gap: 12px; font: 18px Catalogue, serif; color: var(--papier); }
.bascule i { position: relative; width: 42px; height: 22px; border: 1px solid var(--filet-mid); background: #0d0e0e; }
.bascule i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--faible); transition: transform .18s var(--ease), background .18s; }
.bascule[aria-checked="true"] i { border-color: var(--rouille-hi); background: #a2493c33; }
.bascule[aria-checked="true"] i::after { transform: translateX(20px); background: var(--laiton-hi); }

/* categories */
.pole-carte { padding: 22px 24px; margin-bottom: 16px; }
.pole-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pole-tete .emoji { font-size: 26px; width: 34px; text-align: center; }
.pole-tete h3 { font: 28px Catalogue, serif; margin: 0; }
.pole-tete .id { font: 12px Lino, serif; letter-spacing: .1em; color: var(--faible); }
.pole-tete .actions { margin-left: auto; display: flex; gap: 4px; }
.pole-roles { margin-top: 16px; }
.pole-roles > .aide { margin-bottom: 8px; }

/* tickets */
.filtres { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filtres select { width: auto; min-width: 200px; }
.disposition { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.disposition > * { min-width: 0; }
.defile { overflow-x: auto; }
.defile table { min-width: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { font: 12px Lino, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faible); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--filet-mid); }
td { padding: 11px 10px; border-bottom: 1px solid var(--filet); vertical-align: top; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover, tbody tr[aria-selected="true"] { background: linear-gradient(90deg, #a2493c30, transparent); }
tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 var(--rouille-hi); }
.etiq { display: inline-block; padding: 3px 9px; font: 11px Lino, serif; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--filet-mid); color: var(--laiton); white-space: nowrap; }
.etiq.ouvert { color: #dfa58c; border-color: #a2493c88; }
.etiq.pris { color: #e4c98f; }
.etiq.ferme { color: var(--faible); border-color: #5a534a; }
.detail { position: sticky; top: 24px; padding: 22px 24px; max-height: calc(100vh - 48px); overflow: auto; }
.detail h3 { font: 30px Catalogue, serif; margin: 0 0 4px; }
.echange { list-style: none; margin: 18px 0 0; padding: 0 0 0 18px; border-left: 1px solid var(--filet-mid); display: grid; gap: 16px; }
.echange li { position: relative; }
.echange li::before { content: ''; position: absolute; left: -22px; top: 8px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--rouille-hi); }
.echange li.staff::before { background: var(--laiton); box-shadow: 0 0 8px #bd9b6966; }
.echange .qui { font: 12px Lino, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--rouille-hi); }
.echange li.staff .qui { color: var(--laiton); }
.echange time { color: var(--faible); margin-left: 10px; text-transform: none; letter-spacing: .04em; }
.echange p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #e2d7c5; }
.fermeture { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; gap: 12px; }

/* journal */
.journal { list-style: none; margin: 0; padding: 0; }
.journal li { display: grid; grid-template-columns: 170px 200px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.journal time { color: var(--faible); }

/* statut du bot */
.messages-statut { display: grid; gap: 8px; margin: 12px 0 16px; }
.messages-statut > .discret { justify-self: start; }
.message-statut { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; }
.message-statut .apercu { color: var(--laiton-hi); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-statut .apercu::before { content: '→ '; color: var(--faible); }

/* bandeau d'enregistrement et notifications */
.bandeau {
    position: fixed; left: calc(330px + 2vw); right: 5vw; bottom: 18px; z-index: 20;
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    background: radial-gradient(ellipse at 10% 50%, #a2493c33, transparent 60%), linear-gradient(110deg, #2a201af7, #171514f7);
    border: 1px solid var(--laiton); box-shadow: 0 10px 30px #000a; animation: lever .3s var(--ease) both;
}
.bandeau strong { font: 20px Catalogue, serif; font-weight: normal; }
.bandeau-texte { margin-right: auto; }
.bandeau ul { margin: 6px 0 0; padding-left: 18px; color: #dfa58c; font-size: 15px; }
.bandeau ul:empty { display: none; }
#toast {
    position: fixed; right: 24px; top: 24px; z-index: 30; max-width: 400px; padding: 13px 18px;
    background: #1b1815f5; border-left: 3px solid var(--sauge); color: var(--papier); font-size: 15px; box-shadow: 0 8px 24px #0008;
    opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
#toast.visible { opacity: 1; transform: none; }
#toast.erreur { border-left-color: var(--rouille-hi); }

/* ------------------------------------------------------------ feuillet (dialogues), comme le menu Echap */
.dialogue { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #0d0e0edb; animation: ouvrir .25s ease both; }
.feuillet {
    width: min(640px, 92vw); max-height: 86vh; overflow: auto; padding: 46px 56px;
    background: radial-gradient(ellipse, #27201be8 15%, #171515d9 60%, #17151500 75%);
}
.feuillet .surtitre { margin-bottom: 10px; }
.feuillet h2 { font: 42px/1.05 Catalogue, serif; font-weight: normal; margin: 0 0 20px; }
.feuillet p { font-size: 18px; line-height: 1.55; color: #c7b9a5; margin: 0 0 14px; }
.feuillet .champ { margin-top: 18px; }
.feuillet .actions { display: flex; gap: 28px; justify-content: space-between; margin-top: 30px; }
.feuillet .actions button { font: 22px Catalogue, serif; padding: 12px 16px; background: radial-gradient(ellipse, #bd9b6915, transparent 73%); transition: color .15s, background .15s; }
.feuillet .actions button:hover, .feuillet .actions button:focus-visible { color: #efc09a; background: radial-gradient(ellipse, #a2493c55, transparent 73%); }
.feuillet .actions .confirmer-danger { color: #e1a58b; }
@keyframes ouvrir { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ pages servies seules (erreur, transcription) */
body.seule .carte-seule, .feuille { position: relative; max-width: 760px; margin: 0 auto; padding: 9vh 28px 60px; animation: lever .8s var(--ease) both; }
.carte-seule h1, .feuille h1 { font: 46px/1.08 Catalogue, serif; margin: 6px 0 14px; }
.carte-seule .marque, .feuille .marque { margin-bottom: 42px; }
.carte-seule p, .feuille > p { color: var(--sourd); font-size: 17px; }
.feuille .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--faible); font-size: 15px; margin-bottom: 26px; }
.feuille .echange { margin-top: 10px; gap: 20px; }
.feuille .echange .qui { display: flex; align-items: baseline; gap: 12px; }
.feuille .echange time { margin-left: 0; }
.feuille .echange p { font-size: 18px; line-height: 1.55; margin-top: 6px; }
.feuille .echange li.vide::before { display: none; }
.feuille .pied { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--faible); }
.feuille .avertissement { color: #dfa58c; }
.feuille form { display: inline; }
.feuille .bouton, .carte-seule .bouton { margin-top: 12px; }

@media (max-width: 1000px) {
    #app { grid-template-columns: 1fr; }
    .rail { position: static; height: auto; padding: 22px 16px 8px; }
    .rail .marque { font-size: 34px; margin-bottom: 18px; }
    #onglets { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    #onglets button { font-size: 20px; transform: none !important; }
    #onglets small { display: none; }
    .identite { margin-top: 12px; }
    .registre { padding: 16px 16px 160px; }
    .disposition { grid-template-columns: 1fr; }
    .detail { position: static; max-height: none; }
    .journal li { grid-template-columns: 1fr; gap: 2px; }
    .message-statut { grid-template-columns: 1fr auto auto auto; }
    .message-statut .apercu { grid-column: 1 / -1; grid-row: 2; }
    .bandeau { left: 16px; right: 16px; flex-wrap: wrap; }
    .feuillet { padding: 30px 24px; }
    .porte { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ categories : liste et fiche (registre F4) */
.cats { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.cats-liste { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.lignes-cat { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.lignes-cat li { border-bottom: 1px solid var(--filet); }
.ligne-cat {
    position: relative; isolation: isolate; display: grid; gap: 6px; width: 100%; padding: 13px 12px 13px 14px; text-align: left;
    color: #b8b2a4; transition: color .2s, background .2s;
}
.ligne-cat::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
    background: radial-gradient(ellipse at 20% 50%, #a2493c44, transparent 75%);
}
.ligne-cat:hover { color: var(--papier); }
.ligne-cat:hover::before { opacity: .6; }
.ligne-cat[aria-current="true"] { color: var(--papier); box-shadow: inset 2px 0 var(--rouille-hi); }
.ligne-cat[aria-current="true"]::before { opacity: 1; }
.ligne-tete { display: flex; align-items: center; gap: 12px; }
.ligne-tete .numero { font: 11px Lino, serif; letter-spacing: .08em; color: var(--ombre); min-width: 18px; }
.ligne-cat[aria-current="true"] .numero { color: var(--rouille-hi); }
.ligne-tete .emoji { width: 22px; text-align: center; font-size: 17px; }
.ligne-tete .nom { font: 22px/1.15 Catalogue, serif; }
.ligne-sous { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 64px; font-size: 14px; color: var(--faible); }
.etiq.jeu { color: var(--sauge); border-color: #8f9a6a77; }
.etiq.discord { color: #a9b6e0; border-color: #6d7bb077; }
.etiq.prive { color: #dfa58c; border-color: #a2493c88; }
.cats-liste .ajouter { justify-self: start; text-align: left; padding-left: 14px; }
.rangement { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--filet); }

.fiche-cat {
    padding: 26px 30px 22px; background: linear-gradient(120deg, #241e19e6, #151413e6); border: 1px solid var(--filet);
    box-shadow: inset 0 0 0 1px #0004, 0 8px 24px #0005; animation: lever .35s var(--ease) both;
}
.fiche-tete { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--filet-mid); }
.fiche-tete .emoji { font-size: 34px; line-height: 1; width: 44px; text-align: center; padding-top: 22px; }
.fiche-tete .surtitre { margin-bottom: 4px; }
.fiche-tete h2 { margin: 0; font: 36px/1.05 Catalogue, serif; font-weight: normal; }
.fiche-tete .id { margin: 6px 0 0; font: 12px Lino, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--faible); }
.fiche-tete .actions { margin-left: auto; display: flex; gap: 2px; }
.fiche-groupe { padding: 18px 0 4px; }
.fiche-groupe + .fiche-groupe { border-top: 1px solid var(--filet); }
.fiche-groupe > h3 { margin: 0 0 12px; font: 13px Lino, serif; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); font-weight: normal; }
.fiche-groupe > .aide { margin: -4px 0 12px; }
.grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fiche-cat .resume { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--filet); }

@media (max-width: 1200px) {
    .cats { grid-template-columns: 1fr; }
    .cats-liste { position: static; }
}
@media (max-width: 700px) {
    .grille.deux { grid-template-columns: 1fr; }
    .fiche-cat { padding: 20px 16px; }
    .fiche-tete { flex-wrap: wrap; }
}

.choix-vue { margin: 16px 0 4px; max-width: 360px; }

/* ------------------------------------------------------------ roles en jeu */
.liaison-jeu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.liaison-jeu .aide { margin: 0; }
.outils-globaux { display: flex; gap: 6px; }
.pastille { display: inline-block; width: 11px; height: 11px; transform: rotate(45deg); flex: 0 0 auto;
    background: var(--c, var(--faible)); box-shadow: 0 0 0 1px #0007, 0 0 8px color-mix(in srgb, var(--c, #000) 45%, transparent); margin: 0 5px; }
.pastille.grande { width: 20px; height: 20px; margin: 30px 12px 0 8px; }
.fiche-groupe > h3 .compte { float: right; font: 15px Catalogue, serif; letter-spacing: .02em; color: var(--laiton-hi); text-transform: none; }
.famille { margin: 4px 0 14px; }
.famille-titre { margin: 0 0 7px; font: 11px Lino, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--faible); }
.puce.perm { font: 15px Catalogue, serif; }
.puce:disabled { opacity: .38; cursor: not-allowed; }
input[type=color] { width: 100%; height: 42px; padding: 3px; background: #0d0e0ecc; border: 1px solid var(--filet); cursor: pointer; }
select:disabled, input:disabled { opacity: .55; }

/* ------------------------------------------------------------ tickets : panneau de lecture
   (la mise en page de la transcription du joueur, resserree dans le panneau lateral) */
.disposition.tickets { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 28px; }
.registre-tickets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet-mid); }
.registre-tickets li { border-bottom: 1px solid var(--filet); }
.fiche-ticket { display: grid; gap: 5px; width: 100%; text-align: left; padding: 14px 16px 13px 18px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; transition: background .15s; }
.fiche-ticket:hover, .fiche-ticket:focus-visible { background: linear-gradient(90deg, #a2493c22, transparent); outline: none; }
.fiche-ticket[aria-current="true"] { background: linear-gradient(90deg, #a2493c38, transparent 85%); box-shadow: inset 2px 0 var(--rouille-hi); }
.fiche-ticket .ligne-haut { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.fiche-ticket .numero { font: 22px/1 Catalogue, serif; color: var(--laiton); flex: none; min-width: 52px; }
.fiche-ticket .nom { font-size: 17px; color: #eadfcd; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-ticket .etiq { flex: none; }
.fiche-ticket .ligne-bas { font: 11px Lino, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faible); padding-left: 64px; display: flex; justify-content: space-between; gap: 12px; }
.fiche-ticket .ligne-bas time { flex: none; white-space: nowrap; letter-spacing: .06em; }
.fiche-ticket[aria-current="true"] .ligne-bas { color: #c7b499; }
.detail.lecture { position: sticky; padding: 30px 38px 28px; margin-top: 0; }
.lecture > .vide { margin: 0; }
.lecture .refermer { position: absolute; top: 12px; right: 14px; font: 26px/1 Catalogue, serif; color: var(--faible); padding: 4px 10px; }
.lecture .refermer:hover, .lecture .refermer:focus-visible { color: #efc09a; }
.lecture .surtitre { margin-bottom: 8px; padding-right: 30px; }
.lecture h1 { font: 40px/1.08 Catalogue, serif; font-weight: normal; margin: 4px 0 12px; }
.lecture .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--faible); font-size: 15px; margin: 0 0 6px; }
.lecture .joueurs { color: var(--sourd); font-size: 16px; margin: 0 0 18px; }
.outils-lecture { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 14px 0 16px; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.outils-lecture .champ { flex: 1 1 220px; margin: 0; }
.boutons-lecture { display: flex; flex-wrap: wrap; gap: 10px; }
.lecture .echange { margin-top: 22px; gap: 20px; }
.lecture .echange .qui { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lecture .echange time { margin-left: 0; }
.lecture .echange p { font-size: 17px; line-height: 1.55; margin-top: 6px; }
.lecture .echange li.vide::before { display: none; }
.lecture .pied { margin: 30px 0 0; padding-top: 12px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--faible); }
@media (max-width: 1180px) { .disposition.tickets { grid-template-columns: 1fr; } .detail.lecture { position: static; } }
.fiche-ticket .ligne-bas span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-ticket { grid-template-columns: minmax(0, 1fr); min-width: 0; }
