/* ============================================================================
   Style du panel d'administration BelleLife
   ----------------------------------------------------------------------------
   Reprend l'identite visuelle du panel d'origine : barre bleue #428bca, menu
   lateral clair, cartes blanches a coins arrondis sur fond gris. Deux
   differences volontaires :

   - aucune police ni image distante. L'original importait Open Sans depuis
     Google Fonts et deux icones depuis imgur : le panel devenait donc
     dependant d'Internet, et la politique de securite du panel (CSP) interdit
     desormais ces chargements.
   - les huit blocs « #rcorners1 » a « #rcorners8 », identiques a la virgule
     pres et hauts de 200px fixes, sont remplaces par une seule classe
     « .carte » qui s'adapte a son contenu.
   ========================================================================== */

:root {
    --bleu: #428bca;
    --bleu-fonce: #2f6da4;
    --bleu-clair: #eaf3fb;
    --bordure: #9ea7af;
    --fond: #f0f0f0;
    --texte: #2f3a44;
    --texte-doux: #717c87;
    --vert: #3c9d54;
    --rouge: #c9302c;
    --orange: #e08a1e;
    --rose: #df377a;
}

/* --- Base ---------------------------------------------------------------- */

body {
    font-family: "Segoe UI", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--fond);
    color: var(--texte);
    padding-top: 50px;
}

a {
    color: var(--bleu);
}

h1, h2, h3, h4 {
    font-weight: 600;
}

code, kbd, pre, .mono {
    font-family: Consolas, "Courier New", monospace;
}

/* --- Barre du haut ------------------------------------------------------- */

.barre-haut {
    background-color: var(--bleu);
    border: 0;
    border-radius: 0;
    min-height: 50px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.barre-haut .navbar-brand {
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
}

.barre-haut .navbar-brand span {
    font-weight: 300;
}

.barre-haut .navbar-brand:hover,
.barre-haut .navbar-brand:focus {
    color: #fff;
}

.barre-haut .nav > li > a {
    color: rgba(255, 255, 255, .9);
}

.barre-haut .nav > li > a:hover,
.barre-haut .nav > li > a:focus {
    color: #fff;
    background-color: var(--bleu-fonce);
}

.barre-haut .navbar-toggle {
    border-color: rgba(255, 255, 255, .5);
}

.barre-haut .navbar-toggle .icon-bar {
    background-color: #fff;
}

.barre-haut .navbar-text {
    color: rgba(255, 255, 255, .9);
    margin-right: 10px;
}

.barre-haut .badge-role {
    background-color: rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 12px;
}

.bouton-deconnexion {
    background: none;
    border: 0;
    padding: 15px;
    color: rgba(255, 255, 255, .9);
}

.bouton-deconnexion:hover {
    color: #fff;
    background-color: var(--bleu-fonce);
}

/* --- Menu lateral -------------------------------------------------------- */

.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 50px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding: 0 0 30px;
        display: block;
        background-color: #f5f5f5;
        border-right: 1px solid #e2e2e2;
    }

    /* Bootstrap impose « overflow: visible !important » a
       .navbar-collapse.collapse des 768px. Sans cette reprise — meme force,
       specificite superieure — le menu deborde de son cadre fixe et ses
       dernieres rubriques deviennent inatteignables : le cadre ne defile pas,
       et la page defile sans lui. */
    .sidebar.navbar-collapse,
    .sidebar.navbar-collapse.collapse {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        max-height: none !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ascenseur du menu : assez visible pour annoncer qu'il reste des rubriques
   plus bas, assez fin pour ne pas manger la largeur des libelles. */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #b0bac2 #e9edef;
}

.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #e9edef;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #b0bac2;
    border: 2px solid #e9edef;
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #8f9ba5;
}

.nav-lateral {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-lateral .groupe {
    padding: 14px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.nav-lateral a {
    display: block;
    padding: 9px 20px;
    color: #333;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
}

.nav-lateral a:hover,
.nav-lateral a:focus {
    background-color: #fff;
    padding-left: 26px;
    transition: all .25s;
}

.nav-lateral .actif > a {
    background-color: #fff;
    border-left-color: var(--bleu);
    color: var(--bleu-fonce);
    font-weight: 600;
}

.nav-lateral .glyphicon {
    width: 22px;
    color: var(--texte-doux);
}

.nav-lateral .actif > a .glyphicon {
    color: var(--bleu);
}

/* Sous-entrees : les journaux par categorie sous « Tous les logs ». Le trait
   vertical les rattache visuellement a leur entree parente. */
.nav-lateral .sous-entree > a {
    padding-left: 34px;
    font-size: 13px;
    box-shadow: inset 12px 0 0 -11px var(--texte-doux);
}

.nav-lateral .sous-entree > a:hover,
.nav-lateral .sous-entree > a:focus {
    padding-left: 40px;
}

.nav-lateral .sous-entree .glyphicon {
    width: 20px;
    font-size: 11px;
}

/* --- Contenu ------------------------------------------------------------- */

.contenu {
    padding: 20px 15px 60px;
}

@media (min-width: 768px) {
    .contenu {
        padding: 24px 30px 60px;
    }
}

.entete-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e2e8eb;
}

.entete-page h1 {
    margin: 0;
    font-size: 24px;
}

.entete-page .resume {
    margin: 4px 0 0;
    color: var(--texte-doux);
    font-size: 13px;
}

/* --- Cartes -------------------------------------------------------------- */

.carte {
    background: #fff;
    border: 3px solid var(--bordure);
    border-radius: 12px 34px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.carte > h2,
.carte > .titre-carte {
    margin: -18px -20px 16px;
    padding: 0 20px;
    background-color: #f9fafb;
    border-bottom: 2px solid #e2e8eb;
    border-radius: 9px 31px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 42px;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: default;
}

.carte > .titre-carte .glyphicon {
    margin-right: 6px;
}

.carte > .titre-carte .a-droite {
    float: right;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--texte-doux);
}

.carte-plate {
    border-radius: 8px;
    border-width: 1px;
    border-color: #d5dbe1;
}

.carte-plate > .titre-carte {
    border-radius: 7px 7px 0 0;
}

/* Une carte dont l'action est destructrice se signale d'elle-meme : le libelle
   du bouton ne suffit pas quand la page en compte plusieurs. */
.carte-danger {
    border-color: #e2a9a7;
}

.carte-danger > .titre-carte {
    color: var(--rouge);
    background-color: #fdf1f0;
}

/* Bandeau du bas d'une carte, pour regrouper les boutons d'action. */
.pied-carte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px -20px -18px;
    padding: 12px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #e2e8eb;
    border-radius: 0 0 9px 31px;
}

.pied-carte + .pied-carte {
    margin-top: -18px;
    border-radius: 0;
}

.carte-plate > .pied-carte {
    border-radius: 0 0 7px 7px;
}

/* Carte reduite a un seul chiffre : le nombre porte l'information, le reste
   doit s'effacer. */
.carte-chiffre {
    text-align: center;
}

.gros-chiffre {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
}

.separateur {
    height: 1px;
    background-color: #e2e8eb;
    margin: 16px 0;
}

/* --- Compteurs du tableau de bord ---------------------------------------- */

.compteurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.compteur {
    background: #fff;
    border: 1px solid #d5dbe1;
    border-left: 4px solid var(--bleu);
    border-radius: 6px;
    padding: 14px 16px;
}

.compteur .valeur {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.compteur .libelle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--texte-doux);
    margin-top: 4px;
}

.compteur .detail {
    font-size: 12px;
    color: var(--texte-doux);
    margin-top: 6px;
}

.compteur-vert { border-left-color: var(--vert); }
.compteur-rouge { border-left-color: var(--rouge); }
.compteur-orange { border-left-color: var(--orange); }
.compteur-rose { border-left-color: var(--rose); }

/* --- Tableaux ------------------------------------------------------------ */

.tableau-panel {
    background: #fff;
    border: 1px solid #d5dbe1;
    border-radius: 6px;
    overflow: hidden;
}

.tableau-panel table {
    margin-bottom: 0;
}

.tableau-panel > .table-responsive {
    border: 0;
    margin-bottom: 0;
}

.table > thead > tr > th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e2e8eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texte-doux);
    white-space: nowrap;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.table-panel > tbody > tr:hover > td {
    background-color: var(--bleu-clair);
}

.colonne-actions {
    white-space: nowrap;
    text-align: right;
}

.vide {
    padding: 30px 20px;
    text-align: center;
    color: var(--texte-doux);
}

/* Une ligne de tableau peut porter un lien sur toute sa surface : le curseur
   doit le signaler, sinon la zone cliquable reste invisible. */
.ligne-cliquable {
    cursor: pointer;
}

/* --- Filtres ------------------------------------------------------------- */

.barre-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

/* Les memes champs servent dans une barre de filtres et dans une ligne
   d'action : le style est donc porte par « .champ », pas par le conteneur. */
.champ {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.champ > label,
.barre-filtres label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texte-doux);
    margin: 0;
    white-space: nowrap;
}

.barre-filtres .form-control,
.ligne-action .champ .form-control {
    min-width: 150px;
}

.champ-large .form-control {
    min-width: 260px;
}

.champ-etroit .form-control {
    min-width: 90px;
    width: 110px;
}

/* --- Formulaires --------------------------------------------------------- */

.form-control {
    border-color: #bfcdda;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--bleu);
    box-shadow: 0 0 0 2px rgba(66, 139, 202, .18);
}

.grille-champs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.aide-champ {
    font-size: 12px;
    color: var(--texte-doux);
    margin-top: 4px;
}

fieldset.bloc-reglages {
    border: 1px solid #e2e8eb;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

fieldset.bloc-reglages > legend {
    width: auto;
    border: 0;
    margin: 0;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bleu-fonce);
}

.ligne-action {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.ligne-action .form-control {
    width: auto;
    min-width: 120px;
}

/* Un champ « motif » accolé à son bouton : la validation refuse l'action sans
   explication, autant les garder cote a cote. */
.formulaire-motif {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.formulaire-motif .form-control {
    width: auto;
    min-width: 130px;
    flex: 1 1 130px;
}

/* --- Boutons ------------------------------------------------------------- */

.btn-panel {
    background-color: var(--bleu);
    border-color: var(--bleu-fonce);
    color: #fff;
}

.btn-panel:hover,
.btn-panel:focus {
    background-color: var(--bleu-fonce);
    border-color: var(--bleu-fonce);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: inherit;
    transition: all .3s;
}

.groupe-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.boutons-en-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.boutons-empiles {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Un bouton qui doit se lire comme un lien : « tout » / « aucun » de la
   matrice des droits agit en JavaScript, mais ne doit pas ressembler a une
   action importante. */
.lien-discret {
    border: 0;
    padding: 0 4px;
    background: none;
    color: var(--bleu);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.lien-discret:hover {
    text-decoration: underline;
}

/* --- Etiquettes ---------------------------------------------------------- */

.etiquette {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    background-color: #e8ecef;
    color: var(--texte-doux);
}

.etiquette-verte { background-color: #e2f3e6; color: #1f7135; }
.etiquette-rouge { background-color: #fbe4e3; color: #a3231f; }
.etiquette-orange { background-color: #fdf0dc; color: #96590c; }
.etiquette-bleue { background-color: var(--bleu-clair); color: var(--bleu-fonce); }
.etiquette-violette { background-color: #efe6f7; color: #6b3fa0; }
.etiquette-grise { background-color: #e8ecef; color: #59636d; }

.point {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: #b8c0c7;
    vertical-align: middle;
}

.point-vert { background-color: var(--vert); }
.point-rouge { background-color: var(--rouge); }
.point-orange { background-color: var(--orange); }

/* Liste compacte de valeurs (membres d'un gang, droits d'un role, crimes d'un
   avis de recherche) : un tableau serait trop lourd pour ces enumerations. */
.jetons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.jeton {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid #dbe2e8;
    border-radius: 12px;
    background-color: #f7f9fa;
    font-size: 12px;
    color: var(--texte);
    text-decoration: none;
}

a.jeton:hover {
    background-color: var(--bleu-clair);
    border-color: var(--bleu);
    color: var(--bleu-fonce);
    text-decoration: none;
}

/* --- Messages ------------------------------------------------------------ */

.zone-messages {
    position: fixed;
    top: 62px;
    right: 18px;
    z-index: 1080;
    width: 380px;
    max-width: calc(100vw - 36px);
}

.message-panel {
    position: relative;
    padding: 12px 38px 12px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    animation: apparition .25s ease-out;
}

.message-panel .fermer {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: var(--texte-doux);
    cursor: pointer;
}

.message-succes { border-left-color: var(--vert); }
.message-echec { border-left-color: var(--rouge); }
.message-info { border-left-color: var(--bleu); }

@keyframes apparition {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.encart {
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 4px solid var(--bleu);
    background-color: var(--bleu-clair);
    margin-bottom: 16px;
}

.encart-attention {
    border-left-color: var(--orange);
    background-color: #fdf6e9;
}

.encart-danger {
    border-left-color: var(--rouge);
    background-color: #fdecea;
}

.encart p:last-child {
    margin-bottom: 0;
}

/* --- Pagination ---------------------------------------------------------- */

.pagination-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.pagination-panel .pagination {
    margin: 0;
}

.pagination-resume {
    margin: 0;
    color: var(--texte-doux);
    font-size: 13px;
}

/* --- Fiche joueur -------------------------------------------------------- */

.entete-joueur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.entete-joueur .nom {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.entete-joueur .steamid {
    font-family: Consolas, monospace;
    color: var(--texte-doux);
}

.liste-definitions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 20px;
    margin: 0;
}

/* Intitule d'un bloc, dans une liste de definitions comme au-dessus d'un
   groupe de champs ou d'une enumeration. */
.cle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texte-doux);
    margin-bottom: 4px;
}

.liste-definitions .valeur {
    font-weight: 600;
    word-break: break-word;
}

.grille-licences {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.licence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e2e8eb;
    border-radius: 5px;
}

.licence-active {
    background-color: #f3faf4;
    border-color: #cbe6d2;
}

.grille-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.item-jeu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e2e8eb;
    border-radius: 5px;
    background: #fff;
}

.item-jeu img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.item-jeu .quantite {
    margin-left: auto;
    font-weight: 700;
}

/* Icone d'item glissee dans une ligne de tableau, sans casser sa hauteur. */
.icone-item {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 5px;
    vertical-align: -4px;
}

/* --- Matrice des droits -------------------------------------------------- */

.matrice-droits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.matrice-droits .groupe-droits {
    border: 1px solid #e2e8eb;
    border-radius: 6px;
    padding: 10px 12px;
}

.matrice-droits h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bleu-fonce);
    margin: 0 0 8px;
}

.matrice-droits label {
    display: block;
    font-weight: 400;
    margin-bottom: 4px;
    font-size: 13px;
}

/* --- Journaux ------------------------------------------------------------ */

/* Arborescence categorie / module de la page des logs. */
.liste-categories,
.liste-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-categories ul {
    padding-left: 14px;
}

.liste-categories a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
}

.liste-categories > li > a {
    font-weight: 600;
}

.liste-categories a:hover {
    background-color: var(--bleu-clair);
}

.liste-categories a.actif {
    background-color: var(--bleu);
    color: #fff;
}

.liste-categories a.actif .total {
    color: rgba(255, 255, 255, .85);
}

.liste-categories .total {
    margin-left: auto;
    font-size: 11px;
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
}

/* Couleur declaree par le mod pour une categorie ou un module de log. */
.pastille {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex: 0 0 9px;
}

.arbre-logs {
    max-height: 520px;
    overflow-y: auto;
}

.arbre-logs .categorie {
    font-weight: 700;
    padding: 6px 4px 2px;
    border-bottom: 1px solid #eee;
}

.arbre-logs .module a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 4px 3px 14px;
    font-size: 13px;
    color: #444;
}

.arbre-logs .module a:hover {
    background-color: var(--bleu-clair);
}

.arbre-logs .module .compte {
    color: var(--texte-doux);
    font-size: 11px;
}

/* Onglets des sous-journaux : le staff passe d'un journal a l'autre sans
   revenir au menu lateral. */
.onglets-journaux {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.onglets-journaux a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #dfe5e9;
    border-radius: 16px;
    background-color: #fff;
    color: #4a5560;
    font-size: 13px;
    text-decoration: none;
}

.onglets-journaux a:hover {
    background-color: var(--bleu-clair);
    color: var(--bleu-fonce);
}

.onglets-journaux a.actif {
    background-color: var(--bleu);
    border-color: var(--bleu);
    color: #fff;
}

.onglets-journaux .glyphicon {
    font-size: 11px;
}

/* Modules d'une categorie : filtre en un clic, volume affiche a cote. */
.pastilles-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pastilles-modules a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #e2e8eb;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
}

.pastilles-modules a:hover {
    background-color: var(--bleu-clair);
}

.pastilles-modules a.actif {
    background-color: var(--bleu);
    border-color: var(--bleu);
    color: #fff;
}

.pastilles-modules .total {
    font-size: 11px;
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
}

.pastilles-modules a.actif .total {
    color: rgba(255, 255, 255, .85);
}

.puce-couleur {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
}

.texte-log {
    font-family: Consolas, monospace;
    font-size: 12px;
    word-break: break-word;
}

.console {
    background-color: #1d2228;
    color: #d5dbe1;
    border-radius: 6px;
    padding: 12px 14px;
    max-height: 560px;
    overflow: auto;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* --- Page de connexion --------------------------------------------------- */

.page-nue {
    min-height: 100vh;
    padding: 0;
    background-color: #21303d;
}

/* Le fond defilant de l'original : les images vivent dans public/ressources. */
.fond-defilant {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s;
}

.voile {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(20, 32, 44, .72), rgba(20, 32, 44, .5));
}

.barre-nue {
    height: 50px;
    background-color: var(--bleu);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 1.4em;
}

.barre-nue .marque span {
    font-weight: 300;
}

.barre-nue .mention {
    font-size: 13px;
    opacity: .85;
}

.horloge {
    text-align: center;
    color: #fff;
    font-size: 68px;
    font-weight: 200;
    letter-spacing: .04em;
    margin: 6vh 0 3vh;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.bloc-connexion {
    width: 400px;
    max-width: calc(100vw - 32px);
    margin: 0 auto 40px;
    padding: 24px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--bleu);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.bloc-connexion h1 {
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.bloc-connexion .form-control {
    height: 42px;
    margin-bottom: 14px;
}

.bloc-connexion button {
    width: 100%;
    height: 42px;
    text-transform: uppercase;
    font-weight: 700;
}

.bloc-connexion .aide-connexion {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--texte-doux);
    text-align: center;
}

.bloc-erreur {
    width: 560px;
    max-width: calc(100vw - 32px);
    margin: 8vh auto;
    padding: 26px 28px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--rouge);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.bloc-erreur .code {
    font-size: 46px;
    font-weight: 200;
    color: var(--rouge);
    line-height: 1;
}

/* --- Divers -------------------------------------------------------------- */

.texte-doux { color: var(--texte-doux); }
.texte-vert { color: var(--vert); }
.texte-rouge { color: var(--rouge); }
.texte-orange { color: var(--orange); }
.petit { font-size: 12px; }
.gras { font-weight: 700; }
.sans-marge { margin: 0; }
.marge-haut { margin-top: 16px; }
.aligne-droite { text-align: right; }
.a-droite { float: right; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; }

/* Conseils de la page d'aide : des paragraphes a puces, plus lisibles qu'un
   pave de texte. */
.liste-aide {
    padding-left: 18px;
    margin: 0;
    font-size: 13px;
}

.liste-aide li {
    margin-bottom: 8px;
}

/* Cle d'API affichee une seule fois : elle doit etre selectionnable d'un coup
   et rester lisible caractere par caractere. */
.cle-api {
    user-select: all;
    word-break: break-all;
    font-size: 15px;
    background-color: #fff;
    border: 1px solid var(--orange);
    border-radius: 4px;
    padding: 8px 10px;
}

.chargement {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(66, 139, 202, .25);
    border-top-color: var(--bleu);
    border-radius: 50%;
    animation: rotation .7s linear infinite;
    vertical-align: -2px;
}

@keyframes rotation {
    to { transform: rotate(360deg); }
}

/* Un formulaire en cours d'envoi ne doit pas pouvoir etre resoumis. */
.en-cours {
    opacity: .6;
    pointer-events: none;
}

@media print {
    .barre-haut, .sidebar, .zone-messages, .colonne-actions {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: #fff;
    }
}
