/* REVISIA — charte graphique « R vitesse » (bleu nuit et or), novembre 2026.
   Thème sombre (par défaut) et thème clair ; le bandeau reste bleu nuit dans les deux. */
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/exo-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/exo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/exo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 800; font-display: swap; src: url("/static/fonts/exo-2-latin-800-italic.woff2") format("woff2"); }

:root, [data-theme="sombre"] {
  --fond: #0A1530; --surface: #111E40; --surface-2: #172752; --bord: #24365F;
  --texte: #EEF1F8; --texte-2: #A9B4CC; --accent: #D4A84B; --accent-2: #F3D27A; --accent-texte: #F3D27A;
  --succes: #34D399; --alerte: #FBBF24; --erreur: #F87171; --lien: #F3D27A;
  --fond-porte: radial-gradient(circle at 50% 28%, #22366E 0%, #0A1530 70%);
  --ombre-carte: 0 18px 40px rgba(0, 0, 0, .35);
}
[data-theme="clair"] {
  --fond: #F5F6FA; --surface: #FFFFFF; --surface-2: #EEF1F7; --bord: #DDE2EC;
  --texte: #0A1530; --texte-2: #4B5563; --accent: #B8892E; --accent-2: #1F3163; --accent-texte: #8C6216;
  --succes: #15803D; --alerte: #B45309; --erreur: #B91C1C; --lien: #1F3163;
  --fond-porte: radial-gradient(circle at 50% 28%, #FFFFFF 0%, #E4E8F1 75%);
  --ombre-carte: 0 18px 40px rgba(10, 21, 48, .12);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 "Exo 2", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Exo 2", system-ui, sans-serif; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; font-style: italic; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 1.2em; }
a { color: var(--lien); text-decoration: none; } a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.discret, .facultatif { color: var(--texte-2); } .facultatif { font-size: .85em; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Bandeau */
.appli { min-height: 100vh; display: flex; flex-direction: column; }
.bandeau { background: linear-gradient(180deg, #14224A 0%, #0A1530 100%); box-shadow: 0 6px 18px rgba(10, 21, 48, .3); position: sticky; top: 0; z-index: 30; }
.bandeau::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #8C6216, #F7DC8C 50%, #8C6216); }
.bandeau-int { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.marque:hover { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 52px; height: 48px; display: block; }
.logo-texte { display: flex; flex-direction: column; }
.logo-nom { font: italic 800 1.7rem/1.05 "Exo 2", sans-serif; letter-spacing: .03em; color: #F7DC8C;
  text-shadow: 0 1px 0 #C9962E, 0 2px 0 #9C6E1C, 0 3px 0 #6B4A10, 0 6px 10px rgba(0, 0, 0, .4); }
.logo-slogan { font: 600 .7rem/1.3 "Exo 2", sans-serif; letter-spacing: .06em; color: #E9D9A6; }
.nav-principale { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 4px; }
.nav-principale a { padding: 10px 14px; border-radius: 10px; color: #C9D3EA; font-weight: 600; }
.nav-principale a:hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; text-decoration: none; }
.nav-principale a.actif { color: #F7DC8C; background: rgba(212, 168, 75, .16); box-shadow: inset 0 -2px 0 #D4A84B; }
.compte { display: flex; align-items: center; gap: 12px; }
.cabinet { font-size: .82rem; font-weight: 600; color: #C9D3EA; padding: 6px 12px; border: 1px solid rgba(201, 211, 234, .35); border-radius: 999px; }
.menu-compte { position: relative; }
.menu-compte summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; color: #EEF1F8; padding: 4px 6px; border-radius: 12px; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-compte summary:hover { background: rgba(255, 255, 255, .07); }
.moi-nom { display: flex; flex-direction: column; font-size: .88rem; font-weight: 600; line-height: 1.25; }
.moi-nom small { color: #A9B4CC; font-weight: 400; font-size: .75rem; }
.menu-deroulant { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--bord);
  border-radius: 12px; padding: 8px; box-shadow: var(--ombre-carte); display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.menu-deroulant a, .menu-deroulant .lien { display: block; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--texte); font-size: .92rem; }
.menu-deroulant a:hover, .menu-deroulant .lien:hover { background: var(--surface-2); text-decoration: none; }
.contenu { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
.pied { text-align: center; color: var(--texte-2); font-size: .8rem; padding: 18px 24px; }

/* Pages d'accès */
.porte { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: var(--fond-porte); }
.carte-porte { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 30px 30px 26px; width: 100%; max-width: 460px; box-shadow: var(--ombre-carte); position: relative; overflow: hidden; }
.carte-porte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #8C6216, #F7DC8C 50%, #8C6216); }
.carte-porte h1 { font-size: 1.35rem; margin-top: 14px; }
.logo-porte { display: block; width: 230px; height: auto; margin: 0 auto 4px; }
[data-theme="sombre"] .si-clair, [data-theme="clair"] .si-sombre { display: none; }
.centre { text-align: center; }
.mention { color: var(--texte-2); font-size: .8rem; margin-top: 16px; text-align: center; }
.aide { color: var(--texte-2); font-size: .9rem; }
.etapes { color: var(--texte-2); padding-left: 1.2em; font-size: .9rem; }
.qr { background: #fff; border-radius: 10px; padding: 10px; width: 220px; margin: 12px auto; }
.qr svg { width: 100%; height: auto; display: block; }
.cle { text-align: center; font-size: .85rem; word-break: break-all; }

/* Composants */
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.entete h1 { margin: 0; }
.fil { color: var(--texte-2); font-size: .85rem; margin: 0 0 8px; }
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.colonnes .carte { margin-bottom: 0; } .colonnes { margin-bottom: 20px; }
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.formulaire.etroit { max-width: 460px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.grille .large { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 500; }
input, select { background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte); border-radius: 8px; padding: 9px 11px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[readonly] { opacity: .75; }
.recherche { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.recherche label { flex: 1; min-width: 220px; }
.ligne-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
/* Mandataires sociaux : une ligne par mandataire, case « Interlocuteur » en bout de ligne */
.mandataires { display: flex; flex-direction: column; gap: 6px; }
.mandataire { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mandataire-actions { display: inline-flex; align-items: center; gap: 6px; }
.coche.mini span { padding: 3px 10px 3px 7px; font-size: .78rem; border-radius: 8px; box-shadow: 0 2px 0 var(--bord); gap: 6px; }
.coche.mini span::before { width: 13px; height: 13px; border-radius: 4px; background-size: 10px; }
.coche.mini input:checked + span { box-shadow: 0 2px 0 #8C6216; }
.ajout-mandataire { margin-top: 8px; } .ajout-mandataire summary { cursor: pointer; color: var(--lien); font-size: .88rem; }
.mandataire-saisie { margin-bottom: 10px; }
/* Exercices : ligne N, cases à cocher N-1 à N-5, lignes Début / Fin qui s'enchaînent */
.exo-form { margin-top: 16px; }
.exo-grille { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; margin-bottom: 16px; }
.exo-lignes { display: grid; grid-template-columns: auto minmax(140px, 180px) minmax(140px, 180px); gap: 8px 12px; align-items: center; }
.exo-ligne { display: contents; } .exo-ligne[hidden] { display: none; }
.exo-entete span { font-size: .88rem; font-weight: 500; }
.exo-rang { min-width: 50px; text-align: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte-2); font-weight: 700; font-size: .9rem; }
.exo-rang.principal { background: linear-gradient(180deg, #F7DC8C, #D4A84B); border-color: transparent; color: #0A1530; }
.exo-anterieurs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.exo-anterieurs legend { padding: 0; margin-bottom: 8px; font-size: .88rem; font-weight: 500; }
.exo-coches { display: flex; flex-wrap: wrap; gap: 10px; }
.exo-deja { font-size: .82rem; }
.coche { position: relative; flex-direction: row; gap: 0; }
.coche input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.coche span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 10px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); font: 700 .92rem "Exo 2", sans-serif; box-shadow: 0 3px 0 var(--bord); transition: background .15s, transform .1s, box-shadow .1s; }
.coche span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--texte-2); background: var(--surface) center / 12px no-repeat; }
.coche:hover span { filter: brightness(1.08); }
.coche input:checked + span { background: linear-gradient(180deg, #F7DC8C, #D4A84B); border-color: transparent; color: #0A1530; box-shadow: 0 3px 0 #8C6216; }
.coche input:checked + span::before { border-color: #0A1530; background-color: #0A1530; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.8 9 10 3.2' fill='none' stroke='%23F7DC8C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.coche input:active + span { transform: translateY(2px); box-shadow: 0 1px 0 #8C6216; }
.coche input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.coche input:disabled { cursor: not-allowed; }
.coche input:disabled + span { opacity: .6; border: 1px dashed #8C6216; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .exo-ligne[data-rang]:not([data-rang="0"]) > * { animation: exo-descend .22s ease-out; }
  @keyframes exo-descend { from { opacity: 0; transform: translateY(-10px); } }
}
@media (max-width: 520px) { .exo-lignes { grid-template-columns: auto 1fr 1fr; width: 100%; } .exo-lignes input { min-width: 0; padding: 9px 6px; } }
.bouton { display: inline-block; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); padding: 9px 16px; border-radius: 10px; font: 700 .92rem "Exo 2", sans-serif; cursor: pointer; text-align: center; }
.bouton:hover { text-decoration: none; filter: brightness(1.1); }
.bouton.plein { background: linear-gradient(180deg, #F7DC8C, #D4A84B); border: 0; color: #0A1530; box-shadow: 0 3px 0 #8C6216; }
.bouton.plein:active { transform: translateY(2px); box-shadow: 0 1px 0 #8C6216; }
.bouton:disabled { opacity: .45; cursor: not-allowed; }
.lien { background: none; border: 0; color: var(--lien); cursor: pointer; padding: 4px 4px; font: inherit; font-size: .88rem; text-align: left; }
.alerte { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--bord); background: var(--surface-2); font-size: .92rem; }
.alerte.succes { border-color: var(--succes); } .alerte.erreur { border-color: var(--erreur); } .alerte.info { border-color: var(--accent); }
.etiquette { border: 1px solid var(--bord); border-radius: 999px; padding: 3px 12px; font-size: .82rem; color: var(--texte-2); }
.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #FFF1C1, #D4A84B 55%, #9C6E1C); color: #0A1530; font-weight: 800; font-size: .82rem; box-shadow: 0 2px 0 #6B4A10; }
.vide { text-align: center; padding: 40px; }
.fiche { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.fiche dt { color: var(--texte-2); } .fiche dd { margin: 0; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th { text-align: left; color: var(--texte-2); font-weight: 500; border-bottom: 1px solid var(--bord); padding: 8px 10px; }
.tableau td { border-bottom: 1px solid var(--bord); padding: 9px 10px; vertical-align: top; }
.tableau.compact td { padding: 6px 10px; }
.tableau td.mono { white-space: nowrap; }
.tableau tr.inactif td { opacity: .5; }
.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pes .detail { color: var(--texte-2); font-size: .85rem; margin-top: 3px; }
.pes .refs { color: var(--texte-2); font-size: .78rem; margin-top: 3px; font-family: ui-monospace, Consolas, monospace; }
.type { border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.type.bloquant { background: color-mix(in srgb, var(--erreur) 18%, transparent); color: var(--erreur); }
.type.forcable { background: color-mix(in srgb, var(--alerte) 18%, transparent); color: var(--alerte); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 10px; }
.chiffre { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 14px 16px; color: var(--texte-2); font-size: .85rem; }
.chiffre span { display: block; font: 700 1.7rem "Exo 2", sans-serif; color: var(--texte); }
.alerte-chiffre span { color: var(--erreur); }
.succes-texte { color: var(--succes); }
.liste-revisions { padding-left: 1.1em; } .liste-revisions li { margin-bottom: 6px; }
.liste-revisions .discret { display: block; font-size: .82rem; }

/* Recherche d'entreprise : liste déroulante */
.champ-suggestions { position: relative; flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 5px; }
.champ-suggestions label { font-size: .88rem; font-weight: 500; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; max-height: 360px; overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.suggestions li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.suggestions li span { color: var(--texte-2); font-size: .82rem; flex-basis: 100%; }
.suggestions li em { font-style: normal; font-size: .75rem; color: var(--alerte); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--surface-2); }
.suggestions li.vide-suggestion { cursor: default; color: var(--texte-2); }
.liste-candidats { min-height: 120px; }
.liste-candidats option { padding: 6px 4px; }

/* Groupes */
.etiquette.groupe { color: var(--lien); border-color: color-mix(in srgb, var(--accent) 45%, var(--bord)); }
.etiquette.petite { font-size: .72rem; padding: 1px 8px; margin-left: 4px; }
.etiquette.groupe:hover { text-decoration: none; background: var(--surface-2); }
.alerte.suggestion { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bouton.petit { padding: 5px 12px; font-size: .82rem; }
.lien.danger { color: var(--erreur); }
.en-ligne { display: flex; gap: 6px; align-items: center; }
.en-ligne select { padding: 5px 8px; }
.liste-simple { padding-left: 1.1em; margin: 0 0 10px; } .liste-simple li { margin-bottom: 6px; }
textarea { background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte); border-radius: 8px; padding: 9px 11px; font: inherit; resize: vertical; }
details summary { cursor: pointer; margin: 6px 0 10px; }
.organigramme, .organigramme ul { list-style: none; margin: 0; padding-left: 0; }
.organigramme ul { padding-left: 28px; border-left: 1px dashed var(--bord); margin-left: 14px; }
.organigramme li { margin: 8px 0; position: relative; }
.organigramme ul > li::before { content: ""; position: absolute; left: -28px; top: 18px; width: 24px; border-top: 1px dashed var(--bord); }
.organigramme .boite { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface-2);
  border: 1px solid var(--bord); border-radius: 10px; padding: 7px 12px; }
.organigramme .personne > .boite { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--bord)); }
.organigramme .personne-nom { font-weight: 600; }
.organigramme .repete { opacity: .7; border-style: dashed; }
.organigramme .pct { font: 700 .85rem "Exo 2", sans-serif; color: var(--accent-texte); min-width: 54px; }
.indic { font-size: .72rem; border-radius: 999px; padding: 1px 8px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--lien); cursor: help; }

@media (max-width: 800px) {
  .bandeau { position: static; }
  .bandeau-int { padding: 10px 16px; }
  .moi-nom, .logo-slogan { display: none; }
  .contenu { padding: 20px 16px; }
  .grille .large { grid-column: auto; }
  .tableau { display: block; overflow-x: auto; }
}

/* Utilisateurs et titres */
.case { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.case input { width: auto; padding: 0; }
.pastilles-titres { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles-titres li { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--bord); border-radius: 999px; padding: 3px 6px 3px 12px; font-size: .88rem; background: var(--surface-2); }
.pastilles-titres li:not(:has(form)) { padding-right: 12px; }
.pastilles-titres .lien { font-size: 1rem; line-height: 1; padding: 0 4px; color: var(--texte-2); }

/* Charte : finitions */
.carte { box-shadow: 0 1px 2px rgba(10, 21, 48, .06); }
.tableau th { font-weight: 600; }
.vide .bouton.plein { margin-top: 6px; }

/* Fiche collaborateur, statistiques */
.lien-discret { color: inherit; } .lien-discret:hover { color: var(--lien); }
.action-ligne { text-align: right; white-space: nowrap; }
.bouton-edit { font-size: .8rem; color: var(--texte-2); border: 1px solid var(--bord); border-radius: 6px; padding: 3px 9px; opacity: .75; }
.bouton-edit:hover { opacity: 1; color: var(--lien); border-color: var(--lien); text-decoration: none; }
tr:hover .bouton-edit { opacity: 1; }
.pastille.grande { min-width: 44px; height: 44px; font-size: .95rem; vertical-align: middle; margin-right: 6px; }
.pastille.petite { min-width: 26px; height: 26px; font-size: .68rem; }
.etiquette.alerte-etiquette { color: var(--erreur); border-color: var(--erreur); }
.actions-acces { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.journal { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.journal li { padding: 5px 0; border-bottom: 1px solid var(--bord); }
.journal li:last-child { border-bottom: 0; }

/* Archivage des dossiers */
.titre-carte { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: .6em; }
.titre-carte h2 { margin: 0; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin: -4px 0 16px; }
.onglets a { padding: 8px 14px; color: var(--texte-2); border-bottom: 2px solid transparent; }
.onglets a.actif { color: var(--texte); border-bottom-color: var(--accent); }
.onglets a:hover { text-decoration: none; color: var(--texte); }
.zone-sensible { margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--bord); font-size: .88rem; }
.bouton.danger-plein { background: var(--erreur); border: 0; color: #fff; }

/* Désert : fond des pages d'accès et filigrane derrière les pages (thème de la liberté, novembre 2026) */
:root { --filigrane: .18; }
.porte { background: url("/static/marque/desert-dunes.webp") 50% 50% / cover no-repeat, url("/static/marque/desert-ciel.webp") 50% 50% / cover no-repeat, #0A1530; }
.carte-porte { background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mention { background: rgba(10, 21, 48, .62); color: #EEF1F8; padding: 6px 14px; border-radius: 14px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.appli { position: relative; isolation: isolate; }
.appli::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--filigrane);
  background: url("/static/marque/desert-dunes.webp") 50% 100% / cover no-repeat, url("/static/marque/desert-ciel.webp") 50% 100% / cover no-repeat; }
@media print { .appli::before { display: none; } }

/* Animation de lancement : désert, aigle, logo. Se joue seule et se referme seule ; lancement.js ajoute le clic. */
.lz-ecran { position: fixed; inset: 0; z-index: 1000; background: #0A1530; cursor: pointer; animation: lz-ecran-sortie .7s ease 5.3s forwards; }
.lz-ecran > .lz { position: absolute; inset: 0; }
.lz-ecran.lz-ecran--sortie { animation: lz-ecran-sortie .45s ease forwards; }
.lz-passer { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(10, 21, 48, .55);
  color: #EEF1F8; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; animation: lz-fondu .6s ease 1.2s both; }
@keyframes lz-ecran-sortie { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .lz-ecran { display: none; } }
.img-ciel { background-image: url("/static/marque/desert-ciel.webp"); }
.img-dunes { background-image: url("/static/marque/desert-dunes.webp"); }
.lz { position: relative; overflow: hidden; background: #0A1530; isolation: isolate; }
.lz-ciel, .lz-dunes { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; transform-origin: 50% 53%; }
.lz-ciel { transform: scale(1.04); }
.lz-air { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lz-marque { position: absolute; left: 4%; right: 4%; top: 3.5%; height: 47%; display: flex; align-items: center; justify-content: center; }
.lz-logo { height: 100%; width: auto; max-width: 100%; display: block; overflow: visible; }
.lz-voile { position: absolute; inset: 0; background: #0A1530; opacity: 0; pointer-events: none; }
.lz-nom .lz-l { filter: drop-shadow(0 7px 6px rgba(6, 20, 52, .42)); }
.lz-r, .lz-trainees, .lz-etoile, .lz-l, .lz-aile, .lz-aigle, .lz-barre-or { transform-box: fill-box; }
.lz-aigle { transform-origin: 50% 50%; transform: scale(.4) rotate(3deg); }
.lz-aile { transform-origin: 0% 76%; }
.lz-eclat { transform: translateX(420px); }

@media (prefers-reduced-motion: no-preference) {
  .lz-plane { animation: lz-plane 7s ease-in-out infinite alternate; }
  .lz-aile { animation: lz-aile 2.6s ease-in-out infinite alternate; }

  .lz--joue .lz-voile { animation: lz-voile 1s ease-out both; }
  .lz--joue .lz-ciel { animation: lz-ciel 7s cubic-bezier(.16, .7, .2, 1) both; }
  .lz--joue .lz-dunes { animation: lz-dunes 7s cubic-bezier(.16, .7, .2, 1) both; }
  .lz--joue .lz-aigle { animation: lz-aigle 5s cubic-bezier(.12, .72, .22, 1) both; }
  .lz--joue .lz-ombre { animation: lz-ombre 5s ease-out both; }
  .lz--joue .lz-halo { animation: lz-fondu 1.4s ease-out 1.5s both; }
  .lz--joue .lz-r { transform-origin: 60% 50%; animation: lz-r .95s cubic-bezier(.18, .82, .22, 1) 1.5s both; }
  .lz--joue .lz-trainees { transform-origin: 100% 50%; animation: lz-trainees 1.25s cubic-bezier(.2, .8, .2, 1) 1.5s both; }
  .lz--joue .lz-etoile { transform-origin: 50% 50%; animation: lz-etoile .7s cubic-bezier(.2, 1.6, .4, 1) both; }
  .lz--joue .lz-etoile-1 { animation-delay: 2.4s; }
  .lz--joue .lz-etoile-2 { animation-delay: 2.55s; }
  .lz--joue .lz-eclat { animation: lz-eclat 1s cubic-bezier(.4, 0, .2, 1) 2.35s both; }
  .lz--joue .lz-l { animation: lz-lettre .55s cubic-bezier(.2, 1.35, .35, 1) both; animation-delay: calc(2.5s + var(--i) * .07s); }
  .lz--joue .lz-slogan { animation: lz-slogan .7s ease-out 3.2s both; }
  .lz--joue .lz-barre { animation: lz-fondu .4s ease-out 3.4s both; }
  .lz--joue .lz-barre-or { transform-origin: 0% 50%; animation: lz-barre 1.45s cubic-bezier(.5, 0, .2, 1) 3.45s both; }
}
@keyframes lz-voile { from { opacity: 1; } to { opacity: 0; } }
@keyframes lz-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes lz-ciel { from { transform: scale(1.16) translateX(-1.8%); } to { transform: scale(1.04); } }
@keyframes lz-dunes { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes lz-aigle { from { transform: scale(.66) rotate(-13deg); } 55% { transform: scale(.5) rotate(-4deg); } to { transform: scale(.4) rotate(3deg); } }
@keyframes lz-ombre { from { opacity: .3; transform: scale(1.5); } to { opacity: .1; transform: scale(.7); } }
@keyframes lz-plane { from { transform: translate(0, 0) rotate(-1.5deg); } to { transform: translate(-14px, 9px) rotate(2deg); } }
@keyframes lz-aile { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes lz-r {
  0% { transform: translate(-560px, 196px) scale(.1) skewX(-20deg); opacity: 0; filter: blur(3px); }
  10% { opacity: 1; }
  66% { transform: translate(22px, -4px) scale(1.05) skewX(-7deg); filter: blur(0); }
  84% { transform: translate(-7px, 2px) scale(.985) skewX(3deg); }
  100% { transform: none; opacity: 1; filter: blur(0); }
}
@keyframes lz-trainees { 0% { transform: scaleX(4.2); opacity: 0; } 12% { opacity: 1; } 60% { transform: scaleX(2.4); } 100% { transform: scaleX(1); } }
@keyframes lz-etoile { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes lz-eclat { from { transform: translateX(-160px); } to { transform: translateX(420px); } }
@keyframes lz-lettre { from { transform: translateY(34px) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lz-slogan { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lz-barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Exigibilité de la TVA proposée d'après le code NAF ---- */
.proposition-tva { display: block; margin-top: .35rem; font-weight: 400; font-size: .82rem; line-height: 1.4; }
.ecart-tva { display: block; margin-top: .35rem; padding: .35rem .55rem; border-left: 3px solid var(--alerte);
  background: color-mix(in srgb, var(--alerte) 10%, transparent); color: var(--texte); font-size: .82rem; font-weight: 500; line-height: 1.4; }

/* Collecte des registres (fiche dossier) */
.etat-collecte { font-weight: 600; }
.etat-collecte.ok { color: #3fae6a; }
.etat-collecte.erreur { color: #e0564b; }
.etat-collecte.non_configure, .etat-collecte.vide { opacity: .75; }
.etat-collecte.en-cours { color: #D4A84B; }
label.case { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.etat-collecte.attente { color: #D4A84B; }
.menu-documents { border-top: 1px solid rgba(128, 140, 170, .25); padding: .35rem 0; }
.menu-documents summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
.menu-documents summary:hover { color: #D4A84B; }
.menu-documents .date-doc { white-space: nowrap; width: 6.5rem; }
.actions-collecte { align-items: center; gap: 1rem; }

/* Groupes : sociétés du dirigeant aux registres, à cocher pour une création en bloc */
.tableau.selection .case { width: 1%; padding-right: 0; }
.tableau.selection input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; margin: 0; vertical-align: middle; }
.tableau.selection label { cursor: pointer; font-weight: 600; }
.tableau.selection tbody tr:has(input:checked) td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
[data-avancement]:empty { display: none; }

/* Dossier : en-tête commun (dénomination · forme juridique, accès aux documents) */
.entete-dossier { justify-content: flex-start; gap: 12px 26px; }
.entete-dossier h1 .forme { color: var(--accent-2); }
.entete-dossier h1 .forme.a-preciser { color: var(--texte-2); font-size: .7em; }
.onglets-dossier { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.onglet { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--bord);
  background: var(--surface); color: var(--texte); font: 700 .92rem "Exo 2", sans-serif; }
.onglet:hover { text-decoration: none; border-color: var(--accent); }
.onglet.actif { background: linear-gradient(180deg, #F7DC8C, #D4A84B); border-color: transparent; color: #0A1530; box-shadow: 0 3px 0 #8C6216; }
.onglet.attente { border-style: dashed; border-color: var(--accent); color: var(--accent-texte); font-weight: 600; }
.compte { display: inline-block; min-width: 1.9em; text-align: center; font: 600 .75rem "Exo 2", sans-serif; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--texte-2); }
.onglet.actif .compte { background: rgba(10, 21, 48, .14); color: #0A1530; }
.compte.or { background: linear-gradient(180deg, #F7DC8C, #D4A84B); color: #0A1530; }
.groupes-dossier { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* Dossier permanent et dossiers annuels */
.bandeau-exercices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.carte-exercice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface);
  color: var(--texte); font-size: .82rem; }
.carte-exercice:hover { text-decoration: none; border-color: var(--accent); }
.carte-exercice .annee { font: 700 1.35rem "Exo 2", sans-serif; }
.carte-exercice.actif { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); padding: 11px 13px; }
.page-documents { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.arbo { flex: 1 1 280px; max-width: 350px; padding: 16px 10px; margin-bottom: 0; }
.arbo .titre-carte { padding: 0 8px; }
.colonne-documents { flex: 999 1 540px; min-width: 0; }
.arbo-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding: 5px 8px; border-radius: 8px;
  color: var(--texte); font-size: .9rem; }
.arbo-ligne a { color: inherit; flex: 1; }
a.arbo-ligne:hover, .arbo-ligne:hover { background: var(--surface-2); text-decoration: none; }
.arbo-ligne.sous { padding-left: 30px; }
.arbo-ligne.actif { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.arbo-groupe > summary { margin: 0; font-weight: 600; list-style-position: inside; }
.arbo-groupe > summary.arbo-ligne { display: flex; }
.arbo-groupe > summary::before { content: "▸"; color: var(--texte-2); width: 1em; }
.arbo-groupe[open] > summary::before { content: "▾"; }
.arbo-groupe > summary::-webkit-details-marker { display: none; }
.arbo-groupe > summary { list-style: none; }
.arbo-pied { border-top: 1px solid var(--bord); margin: 12px 8px 0; padding-top: 10px; }
.arbo-pied .arbo-ligne { padding-left: 0; padding-right: 0; }
.ajout-rubrique summary { color: var(--lien); font-weight: 600; font-size: .9rem; }
.modes-import { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.mode-import { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--bord); cursor: pointer; }
.mode-import input { margin-top: 4px; accent-color: var(--accent); }
.mode-import strong { display: block; font-size: .95rem; }
.mode-import .aide { display: block; font-size: .82rem; font-weight: 400; }
.mode-import:has(input:checked) { border: 2px solid var(--accent); padding: 11px 13px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.mode-import.indisponible { opacity: .6; cursor: not-allowed; }
.zone-depot { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 20px; border: 2px dashed var(--texte-2);
  border-radius: 13px; background: var(--surface-2); color: var(--texte); }
.zone-depot.survol { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.zone-depot.occupe { opacity: .6; pointer-events: none; }
.zone-depot .aide { max-width: 660px; font-size: .84rem; }
.boutons-depot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.boutons-depot label.bouton { flex-direction: row; cursor: pointer; }
.avancement { margin-top: 14px; }
.avancement .barre { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.avancement .barre div { height: 100%; width: 0; background: linear-gradient(90deg, #D4A84B, #F7DC8C); transition: width .2s; }
.avancement p { font-size: .88rem; margin: 8px 0 0; }
.bilan-import { margin-top: 16px; }
.bilan-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: .9rem; }
.barre-bilan { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.barre-bilan .classe { background: var(--accent-2); } .barre-bilan .a-valider { background: var(--accent); } .barre-bilan .non-reconnu { background: var(--texte-2); }
[data-theme="sombre"] .barre-bilan .classe { background: #6F8FD8; }
.defilement { overflow-x: auto; }
.actions-doc { white-space: nowrap; text-align: right; }
.actions-doc form { display: inline; }
.confiance { white-space: nowrap; }
.a-preciser { color: var(--alerte); font-weight: 600; }
.recherche-docs { display: flex; gap: 8px; align-items: center; }
.recherche-docs input { width: 230px; max-width: 100%; padding: 6px 10px; }
.nombre-docs { font-size: .85rem; font-weight: 400; margin-left: 6px; }
.colonne-documents .titre-carte { flex-wrap: wrap; align-items: flex-start; }
.colonne-documents .titre-carte p { margin: 4px 0 0; font-size: .85rem; }
.date-doc { white-space: nowrap; }
.retrait { margin-top: 22px; } .retrait summary { color: var(--erreur); font-size: .88rem; }
@media (max-width: 720px) { .arbo { max-width: none; } }
.etat-lecture, .taux-reussite { font-size: .9rem; margin: 14px 0 0; }
.taux-reussite { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--bord); border-radius: 10px; background: var(--surface); }
.etat-lecture span, .taux-reussite span { margin-left: 4px; }


/* Visionneuse : un document s'ouvre dans REVISIA, sur la page même (ni nouvel onglet ni nouvelle fenêtre). */
.visionneuse { padding: 14px; }
.visionneuse-barre { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.visionneuse-barre h2 { flex: 1; min-width: 12ch; margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.visionneuse-cadre { display: block; width: 100%; height: calc(100vh - 150px); min-height: 480px; border: 1px solid var(--bord); border-radius: 8px; background: #fff; }
.visionneuse-image { text-align: center; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 8px; padding: 12px; }
.visionneuse-image img { max-width: 100%; height: auto; }

/* Comptabilité (13 nov. 2026) */
.compta-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 18px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; }
.compta-nav > a { padding: 6px 4px; color: var(--texte-2); border-bottom: 2px solid transparent; font-weight: 600; }
.compta-nav > a.actif { color: var(--texte); border-bottom-color: var(--accent); }
.compta-nav > a:hover { text-decoration: none; color: var(--texte); }
.compta-nav > a.discret { margin-left: auto; font-weight: 400; }
.compta-exercice { display: inline-flex; align-items: center; gap: 8px; color: var(--texte-2); margin-right: 8px; }
.choix-exercice { position: relative; display: inline-block; }
.choix-exercice > summary { cursor: pointer; list-style: none; padding: 5px 12px; border: 1px solid var(--bord); border-radius: 9px; background: var(--surface-2); color: var(--texte); font-weight: 700; }
.choix-exercice > summary::-webkit-details-marker { display: none; }
.choix-exercice > summary::after { content: " ▾"; color: var(--texte-2); }
.choix-exercice .menu-deroulant { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 6px; box-shadow: var(--ombre-carte); }
.choix-exercice .menu-deroulant a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--texte); white-space: nowrap; }
.choix-exercice .menu-deroulant a:hover, .choix-exercice .menu-deroulant a[aria-current] { background: var(--surface-2); text-decoration: none; }
.autre-journal { margin-left: auto; } .autre-journal .menu-deroulant { left: auto; right: 0; }
.autre-journal > summary { font-weight: 600; font-size: .88rem; }
.titre-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; } .titre-carte h2 { margin: 0; }
.tableau.compta td.nombre, .tableau.compta th.nombre { text-align: right; white-space: nowrap; }
.tableau.compta .mono { white-space: nowrap; }
.tableau.compta tfoot td { font-weight: 700; border-top: 2px solid var(--bord); border-bottom: 0; }
.tableau.compta tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.journal-compta tbody.ecriture tr td { border-bottom: 0; }
.journal-compta tbody.ecriture tr:last-child td { border-bottom: 1px solid var(--bord); }
.journal-compta tbody.ecriture.cible td { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.journal-compta tbody.ecriture.revisia td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.journal-compta tbody.ecriture { scroll-margin-top: 110px; }
.periodes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.periodes a { padding: 4px 11px; border: 1px solid var(--bord); border-radius: 999px; color: var(--texte-2); font-size: .85rem; }
.periodes a.actif { background: var(--accent); border-color: var(--accent); color: #0A1530; font-weight: 700; }
.periodes a:hover { text-decoration: none; border-color: var(--accent); }
.col-piece { width: 1%; white-space: nowrap; }
a.piece { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; border-radius: 6px; color: var(--accent-texte); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--bord)); background: color-mix(in srgb, var(--accent) 12%, transparent); vertical-align: middle; }
a.piece:hover { background: var(--accent); color: #0A1530; }
.apercu-compte { position: absolute; z-index: 40; max-width: 340px; background: var(--surface); color: var(--texte); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; box-shadow: var(--ombre-carte); font-size: .88rem; pointer-events: none; }
.apercu-compte strong { display: block; margin-bottom: 6px; }
.apercu-compte dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 6px; }
.apercu-compte dt { color: var(--texte-2); } .apercu-compte dd { margin: 0; text-align: right; font-family: ui-monospace, Consolas, monospace; }
.apercu-compte small { color: var(--texte-2); }
.carte.a-trancher { border-color: var(--alerte); }
.journaux-a-preciser { display: grid; gap: 10px; max-width: 720px; }
.journaux-a-preciser label { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-weight: 400; }
.journaux-a-preciser .bouton { justify-self: start; }
.journaux-a-preciser select, .discret-select, .recherche-compta input[type="search"] { background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord); border-radius: 8px; padding: 6px 10px; font: inherit; }
.discret-select { padding: 3px 8px; font-size: .88rem; } .discret-select.a-confirmer { border-color: var(--alerte); }
.actions-compta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.bouton.inerte { opacity: .45; pointer-events: none; }
.recherche-compta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.recherche-compta input[type="search"] { min-width: 260px; flex: 0 1 340px; }
.liste-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-pieces li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.liste-pieces form { margin-left: auto; }
.sous-comptes { margin: 0 0 16px; } .sous-comptes > summary { cursor: pointer; color: var(--lien); margin-bottom: 8px; }
.chiffre.alerte-chiffre span { color: var(--erreur); }
.case-simple { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.case-simple input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
