/* Gestion FE : thème « marine et or » (logo de l'église et du registre, novembre 2026).
   Bleus de la charte d'origine (marine #0e4078, bleu #1f57a0, bleu clair #45a8e0) pour la structure et les actions, or pour l'accent (bouton principal d'ajout, écran affiché, alertes à surveiller).
   Les anciens noms (--gfe-orange) restent utilisés par les écrans : ils désignent maintenant l'or. */
@font-face {
    font-family: "Libre Baskerville";
    src: url("fonts/LibreBaskerville-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --gfe-marine: #0e4078;
    --gfe-marine-fonce: #0a3263;
    --gfe-nuit: #072849;
    --gfe-bleu: #1f57a0;
    --gfe-bleu-clair: #45a8e0;
    --gfe-or: #e3a821;
    --gfe-or-fonce: #c99212;
    --gfe-or-clair: #f3cd62;
    --gfe-or-pale: #fbf4e1;
    --gfe-or-texte: #7a560b;
    --gfe-orange: var(--gfe-or);
    --gfe-orange-fonce: var(--gfe-or-fonce);
    --gfe-fond: #f3f5f9;
    --gfe-bord: #dbe2ec;
    --gfe-texte: #1b2738;
    --gfe-gris: #5b6878;
    --gfe-vert: #1d7a46;
    --gfe-rouge: #b42318;
    --gfe-titres: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --bs-primary: #1f57a0;
    --bs-primary-rgb: 31, 87, 160;
    --bs-link-color: #1f57a0;
    --bs-link-color-rgb: 31, 87, 160;
    --bs-link-hover-color: #0e4078;
    --bs-link-hover-color-rgb: 14, 64, 120;
    --bs-body-color: #1b2738;
    --bs-border-radius: .45rem;
}

html, body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--gfe-texte);
    background: var(--gfe-fond);
}

h1:focus {
    outline: none;
}

.btn {
    font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: var(--gfe-bleu);
    --bs-btn-border-color: var(--gfe-bleu);
    --bs-btn-hover-bg: var(--gfe-marine);
    --bs-btn-hover-border-color: var(--gfe-marine);
    --bs-btn-active-bg: var(--gfe-marine);
    --bs-btn-active-border-color: var(--gfe-marine);
    --bs-btn-disabled-bg: var(--gfe-bleu);
    --bs-btn-disabled-border-color: var(--gfe-bleu);
}

.btn-outline-primary {
    --bs-btn-color: var(--gfe-bleu);
    --bs-btn-border-color: var(--gfe-bleu);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gfe-bleu);
    --bs-btn-hover-border-color: var(--gfe-bleu);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--gfe-marine);
    --bs-btn-active-border-color: var(--gfe-marine);
}

.btn-outline-secondary {
    --bs-btn-color: #4b5869;
    --bs-btn-border-color: #c5cfdc;
    --bs-btn-hover-color: var(--gfe-marine);
    --bs-btn-hover-bg: #eef2f8;
    --bs-btn-hover-border-color: #aebdd0;
    --bs-btn-active-color: var(--gfe-marine);
    --bs-btn-active-bg: #e3e9f2;
    --bs-btn-active-border-color: #aebdd0;
}

/* Bouton d'ajout (nouvelle opération, ajouter) : or, lettres blanches */
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: #e3a821;
    --bs-btn-border-color: #cf930f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d39612;
    --bs-btn-hover-border-color: #bf850b;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c08609;
    --bs-btn-active-border-color: #a87406;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #e3a821;
    --bs-btn-disabled-border-color: #cf930f;
    font-weight: 600;
    background-image: linear-gradient(180deg, #f5bf3c 0%, #dc9c12 100%);
    text-shadow: 0 1px 1px rgba(110, 62, 0, .45);
}

    .btn-accent:hover, .btn-accent:active {
        background-image: linear-gradient(180deg, #ebb02c 0%, #cc8c0b 100%);
    }

    .btn-accent:disabled {
        background-image: none;
    }

.btn-link {
    --bs-btn-color: var(--gfe-bleu);
    --bs-btn-hover-color: var(--gfe-marine);
}

.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus-visible {
    border-color: var(--gfe-bleu-clair);
    box-shadow: 0 0 0 .2rem rgba(69, 168, 224, .35);
}

.form-check-input:checked {
    background-color: var(--gfe-bleu);
    border-color: var(--gfe-bleu);
}

.form-label {
    font-weight: 500;
}

/* Alertes : fond pâle, filet de couleur à gauche */
.alert {
    border-left-width: 4px;
}

.alert-info {
    --bs-alert-color: var(--gfe-marine);
    --bs-alert-bg: #edf3fb;
    --bs-alert-border-color: #cddbee;
    --bs-alert-link-color: var(--gfe-marine);
    border-left-color: var(--gfe-bleu-clair);
}

.alert-warning {
    --bs-alert-color: #5e430a;
    --bs-alert-bg: var(--gfe-or-pale);
    --bs-alert-border-color: #efdca6;
    --bs-alert-link-color: #5e430a;
    border-left-color: var(--gfe-or);
}

.alert-success {
    --bs-alert-color: #145c34;
    --bs-alert-bg: #eaf6ef;
    --bs-alert-border-color: #c7e5d3;
    border-left-color: var(--gfe-vert);
}

.alert-danger {
    --bs-alert-color: #8f1d14;
    --bs-alert-bg: #fcefee;
    --bs-alert-border-color: #f2cfcb;
    border-left-color: var(--gfe-rouge);
}

/* Titres d'écran et de fenêtre : le caractère du logo */
.gfe-titre, .gfe-fenetre-titre h2, .gfe-connexion-carte h1, .gfe-manuel-texte h1, .gfe-manuel-texte h2 {
    font-family: var(--gfe-titres);
    letter-spacing: -.005em;
}

.gfe-icone {
    flex: none;
    vertical-align: -3px;
}

/* ---------- Mise en page ---------- */

.gfe-page {
    display: flex;
    min-height: 100vh;
}

.gfe-cote {
    width: 240px;
    flex: none;
    background: #fff;
    border-right: 1px solid var(--gfe-bord);
    box-shadow: 1px 0 0 rgba(14, 64, 120, .03);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
}

.gfe-logo {
    display: block;
    margin: 0 18px 4px;
    padding: 18px 0 14px;
    text-align: center;
    border-bottom: 1px solid #e8ecf3;
}

    .gfe-logo img {
        width: 110px;
        height: auto;
    }

.gfe-nav {
    padding: 6px 12px 24px;
}

.gfe-nav-groupe {
    margin-top: 6px;
}

/* Titre d'un groupe : marine, sans fond. Le groupe ouvert est bordé d'un filet bleu clair,
   qui passe à l'or à hauteur de l'écran affiché. */
.gfe-nav-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gfe-marine);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

    .gfe-nav-titre:hover {
        background: #f1f4f9;
    }

    .gfe-nav-titre:focus-visible {
        outline: 2px solid var(--gfe-orange);
        outline-offset: 1px;
    }

    .gfe-nav-titre .gfe-chevron {
        opacity: .7;
    }

.gfe-nav-liens {
    margin: 4px 0 8px 16px;
    padding-left: 8px;
    border-left: 2px solid var(--gfe-bleu-clair);
}

    .gfe-nav-liens .gfe-lien {
        position: relative;
        font-size: .92rem;
        padding: 6px 10px;
    }

    .gfe-nav-liens .gfe-lien svg {
        color: var(--gfe-bleu);
    }

    /* L'écran affiché : le filet devient doré sur la hauteur de son lien */
    .gfe-nav-liens .gfe-lien.active {
        box-shadow: none;
    }

        .gfe-nav-liens .gfe-lien.active::before {
            content: "";
            position: absolute;
            left: -10px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--gfe-orange);
        }

.gfe-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0 2px 3px 8px;
    transition: transform .15s;
}

.gfe-nav-groupe.replie .gfe-chevron {
    transform: rotate(-45deg);
    margin-bottom: 0;
}

.gfe-lien {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--gfe-texte);
    text-decoration: none;
    font-size: .95rem;
}

    .gfe-lien:hover {
        background: #f1f4f9;
        color: var(--gfe-marine);
    }

    .gfe-lien.active {
        background: #eaf0f8;
        color: var(--gfe-marine);
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--gfe-or);
    }

.gfe-principal {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gfe-bandeau {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 8px 24px;
    background: var(--gfe-marine);
    color: #fff;
    border-bottom: 2px solid var(--gfe-or);
    box-shadow: 0 2px 8px rgba(14, 64, 120, .16);
}

.gfe-marque {
    display: none;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-family: var(--gfe-titres);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

    .gfe-marque:hover {
        color: #fff;
    }

    .gfe-marque img {
        width: 32px;
        height: 32px;
        border-radius: 7px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    }

    .gfe-marque-texte > span {
        color: #f5bf3c;
    }

.gfe-menu-case {
    display: none;
}

.gfe-menu-bouton {
    display: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

    .gfe-menu-bouton .gfe-icone {
        width: 22px;
        height: 22px;
    }

.gfe-voile {
    display: none;
}

.gfe-choix {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gfe-choix-entite {
    flex: 0 1 340px;
    min-width: 180px;
}

.gfe-choix-annee {
    width: 92px;
}

.gfe-choix-fabrique {
    font-weight: 600;
    min-width: 0;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfe-choix-conso {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    white-space: nowrap;
    cursor: pointer;
}

    .gfe-choix-conso .form-check-input {
        margin: 0;
    }

.gfe-utilisateur {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gfe-nom {
    color: #fff;
    text-decoration: none;
    font-size: .92rem;
    white-space: nowrap;
}

    .gfe-nom:hover {
        color: var(--gfe-or-clair);
    }

.gfe-sortie {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .88rem;
}

    .gfe-sortie:hover {
        background: rgba(255, 255, 255, .2);
        border-color: var(--gfe-or);
        color: #fff;
    }

.gfe-contenu {
    padding: 24px;
    max-width: 1400px;
    width: 100%;
}

.gfe-titre {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gfe-marine);
    margin: 0 0 6px;
}

.gfe-sous-titre {
    color: var(--gfe-gris);
    margin-bottom: 18px;
}

.gfe-entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

    .gfe-entete .gfe-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

.gfe-carte {
    background: #fff;
    border: 1px solid var(--gfe-bord);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(14, 40, 80, .04);
}

    .gfe-carte h2, .gfe-carte-titre {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--gfe-marine);
        margin-bottom: 12px;
    }

/* Chiffres clés */
.gfe-chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.gfe-chiffre {
    background: #fff;
    border: 1px solid var(--gfe-bord);
    border-radius: 12px;
    padding: 16px 18px;
    border-top: 4px solid var(--gfe-marine);
    box-shadow: 0 1px 2px rgba(14, 40, 80, .04);
}

    .gfe-chiffre.recettes {
        border-top-color: var(--gfe-vert);
    }

    .gfe-chiffre.depenses {
        border-top-color: var(--gfe-orange);
    }

    .gfe-chiffre.resultat {
        border-top-color: var(--gfe-bleu-clair);
    }

.gfe-chiffre-libelle {
    color: var(--gfe-gris);
    font-size: .85rem;
}

.gfe-chiffre-valeur {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gfe-marine);
    font-variant-numeric: tabular-nums;
}

.gfe-chiffre-note {
    color: var(--gfe-gris);
    font-size: .8rem;
}

/* Tableaux */
.gfe-tableau {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .92rem;
}

    .gfe-tableau th {
        background: #eef2f8;
        color: var(--gfe-marine);
        font-weight: 600;
        text-align: left;
        padding: 8px 10px;
        border-bottom: 1px solid var(--gfe-bord);
        white-space: nowrap;
        position: sticky;
        top: 0;
    }

    .gfe-tableau td {
        padding: 7px 10px;
        border-bottom: 1px solid #edf1f6;
        vertical-align: top;
    }

    .gfe-tableau tbody tr:hover td {
        background: #f7fafd;
    }

    .gfe-tableau tr.cliquable {
        cursor: pointer;
    }

    .gfe-tableau tfoot td {
        font-weight: 700;
        background: #f7f9fc;
        border-top: 2px solid var(--gfe-bord);
    }

    .gfe-tableau .num, .num {
        text-align: right;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .gfe-tableau tr.archive td {
        color: var(--gfe-gris);
    }

    /* Boutons d'une ligne : ils passent à la ligne plutôt que d'élargir le tableau au-delà de l'écran */
    .gfe-tableau .gfe-actions-ligne {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
    }

.gfe-defile {
    overflow-x: auto;
}

.montant-recette {
    color: var(--gfe-vert);
}

.montant-depense {
    color: var(--gfe-rouge);
}

.gfe-badge {
    display: inline-block;
    font-size: .74rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8eef6;
    color: var(--gfe-marine);
    font-weight: 600;
    white-space: nowrap;
}

    .gfe-badge.orange {
        background: #f9edc8;
        color: var(--gfe-or-texte);
    }

    .gfe-badge.vert {
        background: #dff3e6;
        color: #145c34;
    }

    .gfe-badge.gris {
        background: #eceef1;
        color: #555f6b;
    }

    .gfe-badge.rouge {
        background: #fbe4e2;
        color: #8f1d14;
    }

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

    .gfe-filtres .form-label {
        font-size: .8rem;
        color: var(--gfe-gris);
        margin-bottom: 2px;
    }

.gfe-vide {
    text-align: center;
    color: var(--gfe-gris);
    padding: 28px 12px;
}

.gfe-bouton-icone {
    border: none;
    background: none;
    color: var(--gfe-gris);
    padding: 3px 6px;
    border-radius: 6px;
}

    .gfe-bouton-icone:hover {
        background: #e8eef6;
        color: var(--gfe-marine);
    }

    .gfe-bouton-icone.danger:hover {
        background: #fbe4e2;
        color: var(--gfe-rouge);
    }

/* Fenêtre de saisie */
.gfe-fenetre-fond {
    position: fixed;
    inset: 0;
    background: rgba(14, 30, 50, .45);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    overflow-y: auto;
}

.gfe-fenetre {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 18px 50px rgba(14, 30, 50, .35);
}

    .gfe-fenetre.large {
        max-width: 860px;
    }

.gfe-fenetre-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gfe-bord);
}

    .gfe-fenetre-titre h2 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--gfe-marine);
        margin: 0;
    }

.gfe-fenetre-corps {
    padding: 18px 20px;
}

.gfe-fenetre-pied {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--gfe-bord);
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.gfe-aide {
    font-size: .82rem;
    color: var(--gfe-gris);
}

/* Choix d'un fichier : bouton en français quel que soit le navigateur, puis le nom du fichier choisi */
fieldset > legend.form-label {
    font-size: 1rem;
    float: none;
    margin-bottom: .5rem;
}

.gfe-choix-fichier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Aide placée sous un champ : un peu d'air entre le champ et le texte */
:is(.form-control, .form-select, .input-group, datalist) + .gfe-aide {
    margin-top: 6px;
}

.gfe-sens {
    display: inline-flex;
    border: 1px solid var(--gfe-bord);
    border-radius: 10px;
    overflow: hidden;
}

    .gfe-sens button {
        border: none;
        background: #fff;
        padding: 6px 16px;
        font-weight: 600;
        color: var(--gfe-gris);
    }

        .gfe-sens button.choisi.recette {
            background: var(--gfe-vert);
            color: #fff;
        }

        .gfe-sens button.choisi.depense {
            background: linear-gradient(180deg, #f5bf3c 0%, #dc9c12 100%);
            color: #fff;
            text-shadow: 0 1px 1px rgba(110, 62, 0, .45);
        }

.gfe-retrait {
    display: inline-block;
}

/* Pages de connexion */
.gfe-connexion {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        linear-gradient(160deg, #0e4078 0%, #1f57a0 55%, #45a8e0 100%);
}

.gfe-connexion-carte {
    /* liseré d'or en haut de la carte, suivi par l'arrondi */
    background: linear-gradient(var(--gfe-or), var(--gfe-or)) top / 100% 5px no-repeat, #fff;
    border-radius: 16px;
    padding: 34px 30px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(8, 34, 70, .3);
}

    .gfe-connexion-carte h1 {
        color: var(--gfe-marine);
        text-align: center;
    }

/* Page Confidentialité : même cadre que la connexion, plus large */
.gfe-connexion-carte:has(.gfe-confidentialite) {
    max-width: 760px;
}

.gfe-confidentialite h2 {
    font-size: 1.05rem;
    color: var(--gfe-marine);
    margin: 1.2rem 0 .5rem;
}

.gfe-confidentialite p, .gfe-confidentialite li {
    text-align: justify;
}

.gfe-connexion-pied a {
    color: #fff;
}

.gfe-connexion-logo {
    display: block;
    width: 130px;
    margin: 0 auto 16px;
}

.gfe-connexion-pied {
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    margin-top: 18px;
    text-align: center;
}

.gfe-onglets .nav-link {
    color: var(--gfe-texte);
}

    .gfe-onglets .nav-link.active {
        background: var(--gfe-marine);
    }

.gfe-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

    .gfe-codes code {
        font-size: 1rem;
        color: var(--gfe-marine);
        background: #f0f4f9;
        padding: 6px 10px;
        border-radius: 6px;
    }

.gfe-qr svg {
    width: 190px;
    height: 190px;
    margin: 10px 0;
}

.gfe-etapes li {
    margin-bottom: 14px;
}

.gfe-mdp {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gfe-marine);
    background: var(--gfe-or-pale);
    border: 1px dashed var(--gfe-or);
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-block;
}

/* Erreurs */
.validation-message {
    color: var(--gfe-rouge);
    font-size: .85rem;
}

.invalid {
    outline: 1px solid var(--gfe-rouge);
}

.blazor-error-boundary {
    background: var(--gfe-rouge);
    padding: 1rem;
    color: #fff;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "Une erreur inattendue s'est produite.";
    }

#blazor-error-ui {
    color-scheme: light only;
    background: #fff4d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.form-floating > .form-control::placeholder {
    color: transparent;
}

/* Téléphone et tablette */
@media (max-width: 900px) {
    .gfe-cote {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .gfe-menu-case:checked ~ .gfe-cote {
        transform: none;
        box-shadow: 4px 0 20px rgba(0, 0, 0, .2);
    }

    .gfe-menu-case:checked ~ .gfe-voile {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(14, 30, 50, .4);
        z-index: 25;
    }

    .gfe-menu-bouton, .gfe-marque {
        display: inline-flex;
    }

    .gfe-bandeau {
        flex-wrap: wrap;
        padding: 8px 14px;
        gap: 10px;
    }

    .gfe-choix {
        order: 5;
        width: 100%;
        flex-wrap: wrap;
    }

    .gfe-choix-entite {
        flex: 1;
        min-width: 0;
    }

    .gfe-sortie span, .gfe-nom {
        display: none;
    }

    .gfe-contenu {
        padding: 16px 12px;
    }

    .gfe-carte {
        padding: 14px;
    }

    .gfe-masquer-mobile {
        display: none;
    }
}

/* Liste des opérations : le libellé prend la place disponible (tbody seulement : le pied de tableau a des colonnes fusionnées) */
.gfe-tableau-operations tbody td:nth-child(2) {
    font-size: .875rem;
    color: var(--gfe-gris);
}

.gfe-tableau-operations tbody td:nth-child(3) {
    min-width: 14rem;
}

.gfe-tableau-operations tbody td:nth-child(4) {
    max-width: 15rem;
    font-size: .875rem;
}

/* Célébration : le nom de la personne doit rester lisible */
.gfe-grille-participants th:nth-child(1) { width: 34%; }
.gfe-grille-participants th:nth-child(2) { width: 22%; }
.gfe-grille-participants th:nth-child(4) { width: 15%; }
.gfe-grille-participants th:nth-child(5) { width: 13%; }

/* ---------- Pièces justificatives, onglets, aperçu ---------- */
.gfe-fenetre.tres-large {
    max-width: 1240px;
}

.gfe-onglets-h {
    border-bottom: 0;
}

    .gfe-onglets-h .nav-link {
        color: var(--gfe-gris);
        background: transparent;
        border: 1px solid transparent;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        font-weight: 600;
    }

        .gfe-onglets-h .nav-link.active {
            color: var(--gfe-marine);
            background: #fff;
            border-color: var(--gfe-bord);
            box-shadow: inset 0 3px 0 var(--gfe-or);
        }

.gfe-carte-onglets {
    border-top-left-radius: 0;
}

.gfe-apercu {
    border: 1px solid var(--gfe-bord);
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

    .gfe-apercu iframe {
        display: block;
        width: 100%;
        height: 68vh;
        border: 0;
    }

    .gfe-apercu img {
        display: block;
        max-width: 100%;
        max-height: 68vh;
        margin: 0 auto;
    }

.gfe-liste-simple {
    list-style: none;
    padding: 0;
}

    .gfe-liste-simple li {
        padding: 6px 0;
        border-bottom: 1px solid var(--gfe-bord);
        font-size: .9rem;
    }

        .gfe-liste-simple li:last-child {
            border-bottom: 0;
        }

.gfe-pieces {
    border: 1px dashed var(--gfe-bord);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfcfe;
}

.gfe-choix-boite {
    max-width: 260px;
}

.gfe-trombone {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    color: var(--gfe-bleu);
    font-size: .78rem;
}

.gfe-bloc-joindre {
    border-top: 1px solid var(--gfe-bord);
    padding-top: 12px;
}

/* Tableaux mis face à face (état du patrimoine) : mêmes colonnes, total poussé au bas de la colonne */
.gfe-tableau-fixe {
    table-layout: fixed;
}

    .gfe-tableau-fixe .gfe-col-montant {
        width: 8.5rem;
    }

.gfe-patrimoine-col {
    display: flex;
    flex-direction: column;
}

    .gfe-patrimoine-col .gfe-patrimoine-total {
        margin-top: auto;
    }

.gfe-tableau tr.total td {
    font-weight: 700;
    background: #eef4fb;
    border-top: 2px solid var(--gfe-marine);
}

.gfe-tableau tr.sous-total td {
    font-weight: 600;
    background: #f6f9fc;
}

.gfe-tableau td.retrait {
    padding-left: 28px;
}

.gfe-tableau tr.gfe-ligne-groupe td {
    background: #f6f9fc;
    color: var(--gfe-marine);
    font-weight: 600;
    font-size: .85rem;
    padding-top: 10px;
}

.gfe-alerte-liste {
    margin: 0;
    padding-left: 18px;
}

.gfe-grille-bareme th,
.gfe-grille-bareme td {
    padding-left: 4px;
    padding-right: 4px;
}

.gfe-grille-bareme thead th,
.gfe-grille-bareme thead th.num {
    font-size: .72rem;
    line-height: 1.15;
    vertical-align: bottom;
    white-space: normal;
}

.gfe-grille-bareme tbody td:first-child {
    font-size: .85rem;
    min-width: 130px;
}

.gfe-grille-bareme input {
    width: 54px;
    padding: 2px 3px;
    font-size: .8rem;
    text-align: right;
}

.gfe-choix-revient {
    min-width: 140px;
}

/* ---------- Manuel d'utilisation ---------- */
.gfe-manuel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.gfe-manuel-sommaire {
    position: sticky;
    top: 12px;
}

    .gfe-manuel-sommaire a {
        display: block;
        padding: 6px 10px;
        border-radius: 8px;
        color: var(--gfe-texte);
        text-decoration: none;
        font-size: .92rem;
    }

        .gfe-manuel-sommaire a.active, .gfe-manuel-sommaire a:hover {
            background: #e8eef6;
            color: var(--gfe-marine);
        }

.gfe-manuel-texte {
    max-width: 820px;
    line-height: 1.6;
}

    .gfe-manuel-texte h1 {
        font-size: 1.6rem;
        color: var(--gfe-marine);
        font-weight: 700;
    }

    .gfe-manuel-texte h2 {
        font-size: 1.2rem;
        color: var(--gfe-marine);
        margin-top: 1.6rem;
        font-weight: 700;
    }

    .gfe-manuel-texte h3 {
        font-size: 1.02rem;
        color: var(--gfe-bleu);
        margin-top: 1.2rem;
        font-weight: 700;
    }

    .gfe-manuel-texte table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0 16px;
        font-size: .92rem;
    }

    .gfe-manuel-texte th, .gfe-manuel-texte td {
        border-bottom: 1px solid var(--gfe-bord);
        padding: 6px 8px;
        text-align: left;
        vertical-align: top;
    }

    .gfe-manuel-texte th {
        background: #eef3f9;
        color: var(--gfe-marine);
    }

    .gfe-manuel-texte blockquote {
        border-left: 4px solid var(--gfe-or);
        background: var(--gfe-or-pale);
        padding: 8px 14px;
        margin: 12px 0;
        border-radius: 0 8px 8px 0;
    }

        .gfe-manuel-texte blockquote p:last-child {
            margin-bottom: 0;
        }

@media (max-width: 900px) {
    .gfe-manuel {
        grid-template-columns: 1fr;
    }

    .gfe-manuel-sommaire {
        position: static;
    }

    .gfe-apercu iframe {
        height: 50vh;
    }
}

/* ---------- Impression des états ---------- */
@media print {
    .gfe-cote, .gfe-bandeau, .gfe-actions, .gfe-filtres, .gfe-onglets-h, .gfe-pas-imprimer, #blazor-error-ui, .gfe-voile, .gfe-menu-case {
        display: none !important;
    }

    .gfe-principal, .gfe-contenu {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Les conteneurs flexibles et défilants empêchent Chrome de couper l'écran en pages : tout repasse en bloc */
    .gfe-page, .gfe-principal {
        display: block !important;
        min-height: 0 !important;
    }

    .gfe-defile {
        overflow: visible !important;
    }

    .gfe-carte {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: auto;
    }

    .gfe-tableau tr {
        break-inside: avoid;
    }

    .gfe-tableau thead {
        display: table-header-group;
    }

    .gfe-saut-page {
        break-before: page;
    }

    body {
        background: #fff;
    }
}

.gfe-manuel-suite {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 820px;
    margin: -4px 0 24px;
    font-size: .92rem;
}

/* Manuel : texte justifié, captures d'écran et repères numérotés (mêmes pastilles que sur les captures) */
.gfe-manuel-texte p, .gfe-manuel-texte li {
    text-align: justify;
    hyphens: auto;
}

.gfe-manuel-texte figure {
    margin: 1.2rem 0 1.6rem;
    text-align: center;
}

    .gfe-manuel-texte figure p {
        margin: 0;
        text-align: center;
    }

    .gfe-manuel-texte figure img {
        max-width: 100%;
        height: auto;
        border: 1px solid var(--gfe-bord);
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(14, 30, 50, .12);
        background: #fff;
    }

    .gfe-manuel-texte figure a:hover img {
        border-color: var(--gfe-bleu);
    }

.gfe-manuel-texte figcaption {
    margin-top: .45rem;
    font-size: .85rem;
    font-style: italic;
    color: var(--gfe-gris);
    text-align: center;
}

.gfe-repere-n {
    display: inline-block;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 .15em;
    border-radius: .7em;
    background: #f28c1b;
    color: #fff;
    font-size: .76em;
    font-weight: 700;
    line-height: 1.4em;
    text-align: center;
    vertical-align: .1em;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.gfe-manuel-texte code {
    color: var(--gfe-marine);
    background: #eef3f9;
    padding: 1px 5px;
    border-radius: 4px;
}

@media print {
    .gfe-manuel {
        display: block;
    }

    .gfe-manuel-texte {
        max-width: none;
        border: none !important;
    }

    .gfe-manuel-chapitre + .gfe-manuel-chapitre {
        break-before: page;
    }

    .gfe-carte.gfe-manuel-chapitre {
        break-inside: auto;
    }

    .gfe-manuel-texte figure {
        break-inside: avoid;
    }

        .gfe-manuel-texte figure img {
            box-shadow: none;
            /* Une capture haute est réduite plutôt que renvoyée à la page suivante en laissant un blanc */
            width: auto;
            max-height: 140mm;
        }

    .gfe-manuel-texte h2, .gfe-manuel-texte h3 {
        break-after: avoid;
    }
}

/* Célébrations détaillées dans une recette de casuel */
.gfe-celebrations {
    border: 1px solid var(--gfe-bord);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfe;
}

.gfe-celebration {
    border-top: 1px dashed var(--gfe-bord);
    margin-top: 10px;
    padding-top: 10px;
}

.gfe-grille-parts th:nth-child(1) { width: 32%; }
.gfe-grille-parts th:nth-child(3) { width: 18%; }
.gfe-grille-parts th:nth-child(4) { width: 36px; }

.gfe-reste-du {
    font-size: .88rem;
    margin-top: 8px;
}

.gfe-part {
    display: inline-block;
    font-size: .8rem;
    background: #eef4fb;
    border-radius: 4px;
    padding: 1px 6px;
    margin: 1px 4px 1px 0;
    white-space: nowrap;
}

/* Import des extraits bancaires */
.gfe-import td { vertical-align: top; }
.gfe-import th:nth-child(4) { width: 215px; }
.gfe-import-mvt { min-width: 220px; max-width: 340px; }
.gfe-import-mvt .gfe-aide { overflow-wrap: anywhere; }
.gfe-import-detail { min-width: 320px; }
.gfe-import-article { max-width: 280px; }
.gfe-import-entite { max-width: 180px; }
.gfe-a-affecter { border-color: var(--gfe-or); background-color: var(--gfe-or-pale); }
.gfe-import-explication { font-size: .8rem; color: var(--gfe-gris); margin-top: 4px; }

/* Budget */
.gfe-budget td.num input.form-control { max-width: 120px; text-align: right; margin-left: auto; }
.gfe-budget .gfe-budget-remarque { max-width: 420px; }
.gfe-budget .gfe-taux { white-space: nowrap; min-width: 38px; text-align: right; }
.gfe-ecart-positif { color: var(--gfe-vert); }
.gfe-ecart-negatif { color: var(--gfe-rouge); }
.gfe-barre { height: 6px; background: #e8edf4; border-radius: 3px; overflow: hidden; min-width: 80px; }
.gfe-barre > span { display: block; height: 100%; background: var(--gfe-bleu); }
.gfe-barre > span.depasse { background: var(--gfe-rouge); }

/* Échéances */
.gfe-echeance-retard td:first-child { border-left: 3px solid var(--gfe-rouge); }
.gfe-echeance-proche td:first-child { border-left: 3px solid var(--gfe-orange); }
.gfe-echeance-faite td { color: var(--gfe-gris); }

/* Calendrier des salles */
.gfe-calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.gfe-calendrier .jour-nom { font-size: .75rem; color: var(--gfe-gris); text-align: center; padding: 2px 0; }
.gfe-calendrier .jour { min-height: 78px; border: 1px solid var(--gfe-bord); border-radius: 4px; padding: 3px 4px; background: #fff; font-size: .78rem; }
.gfe-calendrier .jour.hors-mois { background: #f6f8fb; color: #9aa6b3; }
.gfe-calendrier .jour.aujourdhui { border-color: var(--gfe-bleu); box-shadow: inset 0 0 0 1px var(--gfe-bleu); }
.gfe-calendrier .jour .num-jour { font-weight: 600; }
.gfe-calendrier .resa { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 3px; background: #e5effa; color: var(--gfe-marine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.gfe-calendrier .resa.option { background: #f9edc8; color: var(--gfe-or-texte); }
.gfe-calendrier .resa.annulee { background: #f1f1f1; color: #888; text-decoration: line-through; }
@media (max-width: 700px) {
    .gfe-calendrier .jour { min-height: 48px; }
    .gfe-calendrier .resa { font-size: .68rem; }
}

/* Modèles de documents */
textarea.gfe-modele-texte { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; min-height: 420px; height: 60vh; }
.gfe-champs-modele code { display: inline-block; margin: 1px 4px 1px 0; font-size: .78rem; }

/* Demandes de paiement */
.gfe-fiche { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.gfe-fiche dt { font-weight: 500; color: var(--gfe-gris); }
.gfe-fiche dd { margin: 0; }
.gfe-communication { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.gfe-qr { border: 1px solid var(--gfe-bord); border-radius: 6px; padding: 6px; background: #fff; image-rendering: pixelated; }
.gfe-paiement-manuel { border: 1px dashed var(--gfe-bord); border-radius: 6px; padding: 10px 12px; background: #fafcfe; }

/* Location des salles */
.gfe-mois { min-width: 9.5em; text-align: center; text-transform: capitalize; }
.gfe-calendrier .jour.cliquable { cursor: pointer; }
.gfe-calendrier .jour.cliquable:hover { background: #f4f8fd; }
.gfe-legende { display: inline-block; width: .9em; height: .9em; border-radius: 2px; vertical-align: -1px; background: #e5effa; }
.gfe-legende.option { background: #f9edc8; }
.gfe-legende.annulee { background: #f1f1f1; }

/* État du serveur */
.gfe-controle.ok { border-top-color: var(--gfe-vert); }
.gfe-controle.avertissement { border-top-color: var(--gfe-orange); }
.gfe-controle.panne { border-top-color: var(--gfe-rouge); }
.gfe-controle.panne .gfe-chiffre-valeur { color: var(--gfe-rouge); }
.gfe-controle .gfe-chiffre-valeur { font-size: 1.2rem; }

/* Reprise d'un historique */
.gfe-reprise td { vertical-align: top; }
.gfe-reprise-erreur td:first-child { border-left: 3px solid var(--gfe-rouge); }
.gfe-reprise-doublon td { color: var(--gfe-gris); }

/* Encodage rapide : une colonne, de grands boutons, pensé pour le téléphone */
.gfe-rapide {
    max-width: 34rem;
}

/* Prévision de trésorerie : mois sous zéro */
.gfe-prevision-negatif {
    color: #b42318;
    font-weight: 600;
}

.gfe-barre {
    height: 8px;
    border-radius: 4px;
    background: var(--gfe-bleu-clair);
    min-width: 2px;
}

.gfe-barre.negatif {
    background: #b42318;
}

/* Version d'essai : bandeau rayé en tête de chaque écran */
.gfe-bandeau-essai {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    align-items: center;
    padding: .45rem 1rem;
    background: repeating-linear-gradient(135deg, #b42318 0 18px, #9b1c13 18px 36px);
    color: #fff;
    font-size: .9rem;
}
.gfe-bandeau-essai span::before { content: "· "; opacity: .8; }
.gfe-code {
    background: #f3f5f8;
    border: 1px solid var(--gfe-trait, #dde3ea);
    border-radius: 6px;
    padding: .5rem .75rem;
    margin: .4rem 0;
    font-size: .85rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* État du serveur : répartition du disque */
.gfe-disque { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid var(--gfe-bord); margin: 4px 0 14px; }
.gfe-disque > span { flex: 0 1 auto; height: 100%; }
.gfe-disque > span + span { border-left: 1px solid #fff; }
.gfe-disque > span.libre { border-left-color: var(--gfe-bord); }
.gfe-disque .base, .gfe-puce-disque.base { background: var(--gfe-marine); }
.gfe-disque .pieces, .gfe-puce-disque.pieces { background: var(--gfe-bleu); }
.gfe-disque .autres, .gfe-puce-disque.autres { background: var(--gfe-bleu-clair); }
.gfe-disque .sauvegardes, .gfe-puce-disque.sauvegardes { background: var(--gfe-orange); }
.gfe-disque .programme, .gfe-puce-disque.programme { background: #7a8797; }
.gfe-disque .cache, .gfe-puce-disque.cache { background: #aab4c0; }
.gfe-disque .systeme, .gfe-puce-disque.systeme { background: #cfd6df; }
.gfe-disque .libre, .gfe-puce-disque.libre { background: #fff; }
.gfe-puce-disque { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: baseline; }
.gfe-puce-disque.libre { box-shadow: inset 0 0 0 1px var(--gfe-bord); }
.gfe-tableau-disque .gfe-sous-ligne td:first-child { padding-left: 34px; color: var(--gfe-gris); }
.gfe-tableau-disque .gfe-sous-ligne td { font-size: .92em; }
.gfe-champ-email { max-width: 320px; }
.gfe-actions-espace .btn { width: 100%; }
.gfe-utilisation span { display: block; white-space: nowrap; }

/* ---------- Courrier électronique : dossiers, liste des messages, lecture ---------- */
.gfe-choix-boite { width: auto; max-width: 280px; }
.gfe-courrier { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.gfe-courrier-dossiers { padding: 10px; }
.gfe-courrier-dossiers ul { list-style: none; margin: 0; padding: 0; }
.gfe-courrier-dossiers button {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
    border: 0; background: none; padding: 7px 10px; border-radius: 8px; text-align: left; color: var(--gfe-texte); font-size: .92rem;
}
.gfe-courrier-dossiers button:hover { background: #eef3f9; }
.gfe-courrier-dossiers button.actif { background: #e3ecf7; color: var(--gfe-marine); font-weight: 600; box-shadow: inset 3px 0 0 var(--gfe-bleu-clair); }
.gfe-compteur { background: var(--gfe-bleu); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 600; padding: 1px 7px; line-height: 1.5; }
.gfe-courrier-choix-dossier { display: none; }
.gfe-courrier-recherche { flex: 1 1 220px; max-width: 360px; }
.gfe-courriels { list-style: none; margin: 0 -8px; padding: 0; }
.gfe-courriels > li > button {
    display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: baseline;
    width: 100%; border: 0; border-bottom: 1px solid var(--gfe-bord); background: none; padding: 9px 8px; text-align: left; color: var(--gfe-texte);
}
.gfe-courriels > li:last-child > button { border-bottom: 0; }
.gfe-courriels > li > button:hover { background: #f4f7fb; }
.gfe-point { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.gfe-courriels .non-lu .gfe-point { background: var(--gfe-bleu); }
.gfe-courriel-de { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfe-courriels .non-lu .gfe-courriel-de, .gfe-courriels .non-lu .gfe-courriel-sujet { font-weight: 700; color: var(--gfe-texte); }
.gfe-courriel-date { color: var(--gfe-gris); font-size: .8rem; white-space: nowrap; }
.gfe-courriel-sujet { grid-column: 2 / 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3f4c5d; font-size: .9rem; }
.gfe-courriel-classe { grid-column: 3 / 4; text-align: right; }
.gfe-courriel-icone { color: var(--gfe-gris); margin-right: 4px; }
.gfe-courriel-icone .gfe-icone { width: 13px; height: 13px; vertical-align: -1px; }
.gfe-courrier-pages { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gfe-courrier-pages .btn + .btn { margin-left: 6px; }
.gfe-courriel-retour { margin: -6px 0 6px; }
.gfe-courriel-outils { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gfe-image-masquee { color: #5b6878; font-size: 12px; }
.gfe-courriel-outils-actions, .gfe-courriel-repondre { display: flex; flex-wrap: wrap; gap: 6px; }
.gfe-courriel-objet { font-family: var(--gfe-titres); font-size: 1.15rem; color: var(--gfe-marine); margin: 0 0 8px; overflow-wrap: anywhere; }
.gfe-courriel-entete { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 2px 10px; margin: 0 0 12px; font-size: .9rem; }
.gfe-courriel-entete dt { color: var(--gfe-gris); font-weight: 400; }
.gfe-courriel-entete dd { margin: 0; overflow-wrap: anywhere; }
.gfe-courriel-pieces { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--gfe-bord); border-radius: 8px; }
.gfe-courriel-pieces li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px; }
.gfe-courriel-pieces li + li { border-top: 1px solid var(--gfe-bord); }
.gfe-courriel-piece-nom { overflow-wrap: anywhere; }
.gfe-courriel-piece-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gfe-apercu-courriel { display: block; width: 100%; height: 62vh; min-height: 340px; border: 1px solid var(--gfe-bord); border-radius: 8px; background: #fff; }
.gfe-texte-courriel {
    white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.5; border: 1px solid var(--gfe-bord);
    border-radius: 8px; padding: 14px 16px; background: #fff; max-height: 62vh; overflow: auto;
}
.gfe-redaction { font-size: .92rem; line-height: 1.45; }
.gfe-courriel-joints { list-style: none; margin: 8px 0 0; padding: 0; }
.gfe-courriel-joints li { padding: 2px 0; overflow-wrap: anywhere; }
.gfe-courriel-personnes { columns: 2 260px; }
@media (max-width: 991.98px) {
    .gfe-courrier { grid-template-columns: minmax(0, 1fr); }
    .gfe-courrier-dossiers { display: none; }
    .gfe-courrier-choix-dossier { display: block; }
}
@media (max-width: 575.98px) {
    .gfe-courriel-outils-actions .btn { flex: 1 1 auto; }
    .gfe-courriel-repondre { flex: 1 1 100%; }
    .gfe-courriel-entete { grid-template-columns: 48px minmax(0, 1fr); }
}

/* ---------- Pied des écrans : droits, À propos ---------- */
.gfe-pied { padding: 10px 24px 18px; color: var(--gfe-gris); font-size: .78rem; max-width: 1400px; }
.gfe-pied a { color: var(--gfe-gris); }
@media print { .gfe-pied { display: none; } }

/* Annonce de la plateforme en tête de tous les espaces */
.gfe-annonce {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .55rem 1rem;
    font-size: .92rem;
    border-bottom: 1px solid var(--gfe-bord);
}
.gfe-annonce.attention { background: var(--gfe-or-pale); color: var(--gfe-or-texte); border-bottom-color: var(--gfe-or-clair); }
.gfe-annonce.information { background: #e8f3fb; color: var(--gfe-marine); border-bottom-color: #c5e0f3; }
.gfe-annonce .gfe-icone { flex: 0 0 auto; margin-top: .15rem; }
.gfe-annonce-texte { flex: 1 1 auto; font-weight: 600; }
.gfe-annonce-fermer {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 .25rem;
    cursor: pointer;
    opacity: .7;
}
.gfe-annonce-fermer:hover { opacity: 1; }
.gfe-connexion ~ .gfe-annonce, body > .gfe-annonce { border-radius: 0; }
@media print { .gfe-annonce { display: none; } }

/* Opérations récurrentes à encoder (en tête de l'écran des opérations) */
.gfe-recurrentes { border-left: 4px solid var(--gfe-or); }
.gfe-recurrentes h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.gfe-recette { color: var(--gfe-vert); }
.gfe-depense { color: var(--gfe-texte); }

/* Recherche globale dans le bandeau */
.gfe-recherche {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 220px;
    min-width: 120px;
}
.gfe-recherche .gfe-icone {
    position: absolute;
    left: .55rem;
    color: var(--gfe-gris);
    pointer-events: none;
}
.gfe-recherche input {
    width: 100%;
    padding: .3rem .6rem .3rem 1.9rem;
    border: 1px solid var(--gfe-bord);
    border-radius: 999px;
    font-size: .9rem;
    background: #fff;
}
.gfe-recherche input:focus { outline: 2px solid var(--gfe-bleu-clair); border-color: var(--gfe-bleu); }
.gfe-resultats h2 { font-size: 1.05rem; }
.gfe-resultats li + li { margin-top: .45rem; }
@media (max-width: 700px) {
    .gfe-recherche { flex: 1 1 100%; order: 10; }
}
@media print { .gfe-recherche { display: none; } }
