/* Le tableau — charte Hoplia (skill hoplia-da) : Nuit, dégradé cyan → magenta, Cabin et DM Sans, verre, grain.
   Tout passe par des jetons de rôle : le thème clair ne change que leurs valeurs. */
@font-face { font-family: "Cabin"; font-weight: 600; font-display: swap; src: url("/polices/cabin-600.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/polices/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/polices/dm-sans-500.woff2") format("woff2"); }

:root {
  --cyan: #14C8FF; --violet: #A064FF; --magenta: #C814FF;
  --fond: #0A002D; --panneau: #0D0440; --profond: #07001C; --carte: #150A45;
  --encre: 255, 255, 255;
  --texte: rgb(var(--encre)); --texte-2: rgba(var(--encre), .78); --texte-3: rgba(var(--encre), .66); --texte-4: rgba(var(--encre), .52);
  --filet: rgba(var(--encre), .10); --filet-fort: rgba(var(--encre), .18); --verre: rgba(var(--encre), .04); --verre-fort: rgba(var(--encre), .08);
  --lien: #DCB4FF; --vif: #14C8FF; --alerte: #FF8FAB; --alerte-fond: rgba(255, 62, 108, .13); --voile: rgba(7, 0, 28, .62);
  --halo-1: rgba(20, 200, 255, .15); --halo-2: rgba(200, 20, 255, .13); --grain: .07;
  --sur-degrade: #07001C;
  --degrade: linear-gradient(100deg, #14C8FF 0%, #A064FF 48%, #C814FF 100%);
  --rayon-p: 14px; --rayon: 20px; --rayon-g: 28px;
  --sortie: cubic-bezier(.22, 1, .36, 1); --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --titre: "Cabin", system-ui, sans-serif; --courant: "DM Sans", system-ui, sans-serif;
  --bord: clamp(16px, 2.6vw, 32px);
  color-scheme: dark;
}
:root[data-theme="clair"] {
  --fond: #F6F4FD; --panneau: #FFFFFF; --profond: #EEEAFB; --carte: #FFFFFF;
  --encre: 10, 0, 45;
  --texte-3: rgba(var(--encre), .64); --texte-4: rgba(var(--encre), .54);
  --filet: rgba(var(--encre), .11); --filet-fort: rgba(var(--encre), .2); --verre: rgba(255, 255, 255, .62); --verre-fort: rgba(var(--encre), .06);
  --lien: #6A2BD9; --vif: #6A2BD9; --alerte: #B4124A; --alerte-fond: rgba(180, 18, 74, .08); --voile: rgba(10, 0, 45, .34);
  --halo-1: rgba(20, 200, 255, .2); --halo-2: rgba(200, 20, 255, .12); --grain: .05;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--fond); color: var(--texte-2); font: 400 16px/1.6 var(--courant); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; color: var(--texte); letter-spacing: -.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: var(--lien); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--vif); outline-offset: 2px; }
::selection { background: rgba(160, 100, 255, .4); }

/* fond : deux halos et le grain, fixes derrière tout */
.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46rem 30rem at 4% -12%, var(--halo-1), transparent 62%), radial-gradient(48rem 32rem at 104% -6%, var(--halo-2), transparent 64%); }
.fond::after { content: ""; position: absolute; inset: 0; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
:root[data-theme="clair"] .fond::after { filter: invert(1); }

/* ---- éléments communs ---- */
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--filet-fort);
  background: transparent; color: var(--texte); font: 600 15px/1 var(--titre); white-space: nowrap; text-decoration: none;
  transition: transform .35s var(--ressort), background .2s, border-color .2s, opacity .2s; }
.pilule:hover { background: var(--verre-fort); transform: translateY(-1px); }
.pilule:active { transform: scale(.97); }
.pilule:disabled { opacity: .45; cursor: default; transform: none; }
.pilule.principal { border: 0; background: var(--degrade); color: var(--sur-degrade); padding: 0 20px; }
.pilule.principal:hover { background: var(--degrade); filter: brightness(1.08); }
.pilule.alerte { color: var(--alerte); border-color: color-mix(in srgb, var(--alerte) 50%, transparent); }
.pilule.petit { min-height: 32px; padding: 0 13px; font-size: 13.5px; }
.rond { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--filet); background: var(--verre); color: var(--texte); font-size: 18px; line-height: 1;
  transition: transform .35s var(--ressort), background .2s; }
.rond:hover { background: var(--verre-fort); transform: translateY(-1px); }
.rond.petit { width: 30px; height: 30px; font-size: 15px; border-color: transparent; background: transparent; color: var(--texte-3); }
.rond.petit:hover { background: var(--verre-fort); color: var(--texte); }
.etiquette { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--filet); color: var(--texte-3); font-size: 12.5px; line-height: 1.5; white-space: nowrap; }
.etiquette.p1 { color: var(--lien); border-color: color-mix(in srgb, var(--lien) 45%, transparent); font-weight: 500; }
.etiquette.p3 { color: var(--texte-4); }
.sourcil { font: 600 12.5px/1.2 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.point { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--texte-4); }
.point.actif { background: var(--cyan); box-shadow: 0 0 0 0 rgba(20, 200, 255, .5); animation: pouls 1.8s var(--sortie) infinite; }
.point.arret { background: var(--alerte); }
@keyframes pouls { 70%, 100% { box-shadow: 0 0 0 9px rgba(20, 200, 255, 0); } }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } }
@keyframes fondu { from { opacity: 0; } }

.champ { display: grid; gap: 5px; font-size: 13px; color: var(--texte-3); min-width: 0; }
input[type="text"], input[type="number"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--rayon-p); border: 1px solid var(--filet); background: var(--verre); color: var(--texte); font-size: 16px; line-height: 1.45;
  transition: border-color .2s, background .2s; }
textarea { resize: vertical; display: block; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--texte-3) 50%), linear-gradient(135deg, var(--texte-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--panneau); color: var(--texte); }
input:hover, select:hover, textarea:hover { border-color: var(--filet-fort); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--vif); background-color: var(--verre-fort); }

/* ---- en-tête ---- */
.entete { display: flex; align-items: center; gap: 12px; padding: 16px var(--bord) 8px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font: 600 19px/1 var(--titre); }
.marque img { width: 44px; height: 27px; }
.entete select { width: auto; max-width: 15rem; min-height: 40px; border-radius: 999px; padding: 0 34px 0 16px; font: 600 15px var(--titre); }
.compteurs { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.compteur { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filet); background: var(--verre); color: var(--texte-2); font-size: 14px; white-space: nowrap; }
.compteur strong { font: 600 15px var(--titre); color: var(--texte); }
button.compteur { transition: transform .35s var(--ressort), background .2s; }
button.compteur:hover { background: var(--verre-fort); transform: translateY(-1px); }
.compteur.alerte { color: var(--alerte); border-color: color-mix(in srgb, var(--alerte) 45%, transparent); }

.accroche { padding: 14px var(--bord) 18px; display: grid; gap: 8px; }
.accroche h1 { font-size: clamp(22px, 2.5vw, 30px); max-width: 46ch; text-wrap: balance; }
.accroche .liens { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.accroche .liens a { text-decoration: none; }
.accroche .liens a:hover { text-decoration: underline; }

/* ---- colonnes ---- */
.onglets { display: none; }
.tableau { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; padding: 0 var(--bord) 28px; align-items: start; overflow-x: auto; }
.colonne { display: flex; flex-direction: column; min-width: 0; max-height: 100%; min-height: 220px; border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--verre);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .25s, background .25s; }
.colonne > header { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 12px 6px 18px; }
.colonne > header .compte { color: var(--texte-4); font-size: 13px; }
.colonne > header .rond { margin-left: auto; }
.colonne.cible { border-color: var(--vif); background: var(--verre-fort); }
.cartes { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--filet-fort) transparent; }
.vide { margin: 6px 8px 10px; padding: 18px 12px; border: 1px dashed var(--filet-fort); border-radius: var(--rayon-p); color: var(--texte-4); font-size: 14px; text-align: center; }
.repere { height: 3px; margin: -4px 4px; border-radius: 3px; background: var(--degrade); flex: none; }

/* ---- carte ---- */
.carte { position: relative; flex: none; padding: 12px 12px 12px 14px; border-radius: var(--rayon-p); border: 1px solid var(--filet); background: var(--carte); cursor: grab; text-align: left;
  transition: transform .3s var(--sortie), border-color .2s, box-shadow .3s, opacity .2s; }
.carte.nouvelle { animation: entree .5s var(--sortie) both; }
.carte:hover { transform: translateY(-2px); border-color: var(--filet-fort); box-shadow: 0 10px 28px -16px rgba(7, 0, 28, .9); }
.carte.glisse { opacity: .4; }
.carte .haut { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.carte .numero { color: var(--texte-4); font-size: 12.5px; }
.carte .haut .rond { margin: -6px -6px -6px auto; }
.carte h3 { font-size: 16px; line-height: 1.28; margin-bottom: 9px; overflow-wrap: anywhere; }
.carte .meta { display: flex; flex-wrap: wrap; gap: 5px; }
.carte .cout { margin-top: 8px; color: var(--texte-4); font-size: 12.5px; }
.carte .agent-etat { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--filet); font-size: 13px; line-height: 1.4; color: var(--texte-3); }
.carte .agent-etat .point { margin-top: 5px; }
.carte .agent-etat span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* agent au travail : le liseré en dégradé de l'élément actif */
.carte.en-marche { border-color: transparent; background: linear-gradient(var(--carte), var(--carte)) padding-box, var(--degrade) border-box; }
.carte.bloquee { border-color: color-mix(in srgb, var(--alerte) 60%, transparent); }
.carte.bloquee .agent-etat { color: var(--alerte); }

/* ---- fiche d'une carte ---- */
.voile { position: fixed; inset: 0; z-index: 20; background: var(--voile); animation: fondu .3s var(--sortie); }
.fiche { position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); display: flex; flex-direction: column; background: var(--panneau); border-left: 1px solid var(--filet-fort);
  box-shadow: -30px 0 60px -30px rgba(7, 0, 28, .8); animation: glisse .45s var(--sortie); }
.fiche > header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 22px; }
.fiche > header .rond { margin-left: auto; }
.fiche .corps { flex: 1; overflow-y: auto; padding: 0 22px 18px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.fiche textarea.titre { font: 600 22px/1.2 var(--titre); letter-spacing: -.01em; border-color: transparent; background: transparent; padding: 6px 10px; margin: 0 -10px; width: calc(100% + 20px); resize: none; min-height: 0; }
.fiche textarea.titre:hover { border-color: var(--filet); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.bandeau { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--rayon-p); border: 1px solid var(--filet-fort); background: var(--verre); font-size: 14.5px; line-height: 1.45; }
.bandeau .ligne { display: flex; align-items: flex-start; gap: 9px; color: var(--texte); overflow-wrap: anywhere; }
.bandeau .ligne .point { margin-top: 7px; }
.bandeau .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bandeau.bloquee { border-color: color-mix(in srgb, var(--alerte) 55%, transparent); background: var(--alerte-fond); }
.bandeau.bloquee .ligne { color: var(--alerte); }
.bandeau small { color: var(--texte-3); font-size: 13px; }
.jetons { color: var(--texte-3); font-size: 13.5px; }
.jetons strong { color: var(--texte); font-weight: 500; }
.volets { display: flex; gap: 4px; border-bottom: 1px solid var(--filet); }
.volets button { padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--texte-3); font: 600 15px var(--titre); transition: color .2s, border-color .2s; }
.volets button[aria-selected="true"] { color: var(--texte); border-bottom-color: var(--vif); }
.fil, .journal { display: grid; gap: 10px; align-content: start; }
.message { max-width: 94%; padding: 10px 14px; border-radius: var(--rayon-p); border: 1px solid var(--filet); background: var(--verre); animation: entree .45s var(--sortie) both; overflow-wrap: anywhere; }
.message.gio { justify-self: end; background: color-mix(in srgb, var(--violet) 16%, transparent); border-color: color-mix(in srgb, var(--violet) 34%, transparent); }
.message .qui { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; font: 600 13.5px var(--titre); color: var(--texte); }
.message .qui time, .message .envoi { font: 400 12.5px var(--courant); color: var(--texte-4); }
.message .envoi { margin-top: 5px; }
.prose { display: grid; gap: 8px; color: var(--texte-2); font-size: 15.5px; line-height: 1.55; }
.prose p { white-space: pre-wrap; }
.prose h4 { font-size: 16px; margin-top: 4px; }
.prose code { font: 13.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 1px 5px; border-radius: 6px; background: var(--verre-fort); }
.prose pre { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--profond); border: 1px solid var(--filet); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
/* la puce de la marque : un losange en dégradé */
ul.puces { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
ul.puces li { position: relative; padding-left: 18px; }
ul.puces li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1.5px; background: linear-gradient(135deg, #14C8FF, #C814FF); }
.journal { gap: 3px; font-size: 14px; line-height: 1.45; }
.etape { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; padding: 3px 0; color: var(--texte-3); overflow-wrap: anywhere; }
.etape time { color: var(--texte-4); font-size: 12.5px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.etape.texte { color: var(--texte-2); }
.etape.etat { color: var(--texte); font-weight: 500; }
.ecrire { display: grid; gap: 8px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--filet); background: var(--panneau); }
.ecrire .bas { display: flex; align-items: center; gap: 10px; }
.ecrire small { flex: 1; color: var(--texte-4); font-size: 12.5px; line-height: 1.35; }
.pied { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }

/* ---- dialogues ---- */
dialog { width: min(560px, calc(100vw - 24px)); max-height: min(86dvh, 820px); padding: 0; border: 1px solid var(--filet-fort); border-radius: var(--rayon-g); background: var(--panneau); color: var(--texte-2); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(7, 0, 28, .9); }
dialog[open] { display: flex; flex-direction: column; animation: monte .45s var(--sortie); }
dialog::backdrop { background: var(--voile); }
dialog > header { display: flex; align-items: flex-start; gap: 10px; padding: 20px 16px 6px 24px; }
dialog > header h2 { font-size: 22px; padding-top: 5px; }
dialog > header .rond { margin-left: auto; }
dialog .corps { padding: 10px 24px 22px; overflow-y: auto; display: grid; gap: 14px; }
dialog form { display: grid; gap: 14px; }
dialog .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 4px; }
dialog .note { color: var(--texte-3); font-size: 14px; line-height: 1.5; }
.rangees { display: grid; gap: 8px; }
.rangee { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: var(--rayon-p); border: 1px solid var(--filet); background: var(--verre); color: var(--texte); text-align: left;
  transition: transform .3s var(--sortie), background .2s, border-color .2s; }
button.rangee:hover { background: var(--verre-fort); border-color: var(--filet-fort); transform: translateX(3px); }
.rangee .gros { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rangee .gros b { font: 600 16px/1.3 var(--titre); }
.rangee .gros span { color: var(--texte-3); font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.rangee .fleche { color: var(--texte-4); }
.rangee:disabled { opacity: .45; cursor: default; transform: none; }
.segments { display: inline-flex; justify-self: start; padding: 3px; border-radius: 999px; border: 1px solid var(--filet); background: var(--verre); }
.segments button { min-width: 44px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--texte-3); font: 600 14.5px var(--titre); transition: background .2s, color .2s; }
.segments button[aria-pressed="true"] { background: var(--verre-fort); color: var(--texte); box-shadow: inset 0 0 0 1px var(--filet-fort); }
.resume { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--rayon-p); border: 1px solid var(--filet); background: var(--verre); }
.resume b { font: 600 17px/1.3 var(--titre); color: var(--texte); }

.annonces { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.annonce { padding: 11px 16px; border-radius: var(--rayon-p); border: 1px solid var(--filet-fort); background: var(--panneau); color: var(--texte); font-size: 14.5px; line-height: 1.4; box-shadow: 0 16px 40px -18px rgba(7, 0, 28, .9); animation: monte .4s var(--sortie); }
.annonce.alerte { border-color: var(--alerte); color: var(--alerte); }
.hors-ligne { position: fixed; z-index: 50; top: 10px; left: 50%; transform: translateX(-50%); }

/* ---- page du code ---- */
.porte { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.porte form { width: min(400px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 34px 26px 28px; border-radius: var(--rayon-g); border: 1px solid var(--filet); background: var(--verre);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: monte .7s var(--sortie); }
.porte img { width: 132px; height: 91px; }
.porte h1 { font-size: 30px; }
.porte p { color: var(--texte-3); font-size: 15px; }
.porte input { text-align: center; letter-spacing: .08em; margin-top: 6px; }
.porte .pilule { width: 100%; min-height: 48px; font-size: 16px; }
.porte #erreur { min-height: 1.5em; color: var(--alerte); }

/* ---- ordinateur : la page tient dans l'écran, ce sont les colonnes qui défilent ---- */
@media (min-width: 761px) {
  body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .tableau { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
}

/* ---- téléphone : une colonne à la fois, des onglets, la fiche en plein écran ---- */
@media (max-width: 760px) {
  .entete { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
  .marque span { display: none; }
  .entete select { flex: 1; min-width: 0; max-width: none; }
  .compteurs { order: 5; width: 100%; margin: 0; flex-wrap: wrap; gap: 6px; }
  .compteur { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .compteur strong { font-size: 14px; }
  button.compteur { order: -1; }
  .accroche { padding-top: 8px; padding-bottom: 12px; }
  .accroche h1 { font-size: 21px; }
  #nouvelle { position: fixed; z-index: 10; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 50px; padding: 0 22px; font-size: 16px; box-shadow: 0 14px 34px -10px rgba(160, 100, 255, .7); }
  .onglets { display: flex; gap: 6px; padding: 0 var(--bord) 10px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; }
  .onglets::-webkit-scrollbar { display: none; }
  .onglets button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filet); background: var(--panneau); color: var(--texte-3); font: 600 14px var(--titre); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
  .onglets button[aria-selected="true"] { color: var(--texte); border-color: var(--vif); background: color-mix(in srgb, var(--violet) 22%, var(--panneau)); }
  .onglets .compte { color: var(--texte-4); font-weight: 400; margin-left: 4px; }
  .tableau { display: block; padding-bottom: 96px; overflow: visible; }
  .colonne { display: none; max-height: none; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .colonne.montree { display: flex; }
  .colonne > header { display: none; }
  .cartes { padding: 2px 0 0; overflow: visible; }
  .vide { margin: 4px 0; }
  .carte { cursor: default; padding: 14px; }
  .carte .haut .rond { width: 38px; height: 38px; font-size: 18px; }
  .fiche { width: 100vw; border-left: 0; animation-name: monte; }
  .fiche > header { padding-left: 16px; }
  .fiche .corps { padding: 0 16px 16px; }
  .ecrire { padding-left: 16px; padding-right: 16px; }
  dialog { margin-bottom: 0; width: 100vw; max-width: 100vw; border-radius: var(--rayon-g) var(--rayon-g) 0 0; border-bottom: 0; max-height: 90dvh; }
  dialog .corps { padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  dialog > header { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
