* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #0f172a;
}

a {
    color: inherit;
}

.bandeau {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 26px;
    background: linear-gradient(
        135deg,
        var(--couleur-bandeau-foncee, #111827),
        var(--couleur-bandeau, #1f2937)
    );
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.25);
}

.bandeau h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0.4px;
}

.bandeau p {
    margin: 4px 0 0 0;
    color: #cbd5e1;
}

.etat {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 13px;
    white-space: nowrap;
}

.mise-en-page {
    display: flex;
    min-height: calc(100vh - 78px);
}

.menu {
    width: 220px;
    padding: 18px 14px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.menu a {
    display: block;
    padding: 11px 12px;
    margin-bottom: 8px;
    color: #334155;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
}

.menu a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.contenu {
    flex: 1;
    padding: 24px 26px 40px 26px;
    overflow-x: auto;
}

h2 {
    margin: 0 0 18px 0;
    font-size: 26px;
}

h3 {
    margin: 0 0 14px 0;
    font-size: 20px;
}

.bloc {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.cartes {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cartes-bilan {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.carte {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px 18px;
    min-height: 86px;
}

.carte span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.carte strong {
    display: block;
    font-size: 24px;
}

.titre-cartes {
    margin-top: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th {
    background: #e9eef5;
    color: #0f172a;
    text-align: left;
    font-weight: 700;
    padding: 10px;
    border-bottom: 1px solid #cbd5e1;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

tr.total td,
tr.total th {
    background: #f8fafc;
    font-weight: 700;
}

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

.positif {
    color: #047857;
    font-weight: 700;
}

.negatif {
    color: #dc2626;
    font-weight: 700;
}

.filtres {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
}

.grille-filtres {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px 14px;
}

.filtres label,
.champ label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 14px;
}

.filtres input,
.filtres select,
.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    font-size: 14px;
}

.actions-filtres {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

button,
.bouton-principal {
    display: inline-block;
    padding: 9px 13px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.bouton-principal:hover {
    background: #1d4ed8;
}

.bouton-secondaire {
    display: inline-block;
    padding: 9px 13px;
    border: 0;
    border-radius: 7px;
    background: #64748b;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-secondaire:hover {
    background: #475569;
}

.bouton-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 7px;
    padding: 7px 10px;
    font-weight: 700;
    cursor: pointer;
}

.bouton-danger:hover {
    background: #fecaca;
}

.lien-action {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 7px;
    background: #edf2f7;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.lien-action:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.info {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    border-radius: 9px;
    padding: 12px;
    margin: 18px 0;
}

.messages {
    margin-bottom: 16px;
}

.message {
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.message.succes {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.erreur {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-actif {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.badge-desactive {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.ligne-desactivee {
    opacity: 0.65;
    background: #f8fafc;
}

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

.actions-ligne {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.actions-ligne form {
    margin: 0;
}

.formulaire-bloc {
    max-width: 680px;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.bilan-navigation {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.bilan-note {
    color: #64748b;
    font-size: 13px;
}

/* Menu principal mobile - V1.25.1 */

.entete-bandeau {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.menu-mobile-bouton,
.menu-mobile-entete,
.voile-menu {
    display: none;
}

.texte-visuellement-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1000px) {
    .bandeau {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 18px;
    }

    .entete-bandeau {
        flex: 1 1 auto;
    }

    .zone-utilisateur {
        margin-left: auto;
    }

    .menu-mobile-bouton {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .menu-mobile-bouton:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    .menu-mobile-icone {
        font-size: 25px;
        line-height: 1;
    }

    .mise-en-page {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        display: block;
        width: min(320px, 88vw);
        height: 100vh;
        margin: 0;
        padding: 16px 14px 28px;
        overflow-y: auto;
        background: #ffffff;
        border-right: 1px solid #e5e7eb;
        border-bottom: 0;
        box-shadow: 10px 0 28px rgba(15, 23, 42, 0.2);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    body.menu-mobile-ouvert {
        overflow: hidden;
    }

    body.menu-mobile-ouvert .menu {
        transform: translateX(0);
    }

    .menu-mobile-entete {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: -2px 0 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
        color: #0f172a;
        font-size: 17px;
        font-weight: 800;
    }

    .menu-mobile-fermeture {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
        color: #334155;
        font-size: 28px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }

    .menu-mobile-fermeture:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

    .voile-menu {
        position: fixed;
        inset: 0;
        z-index: 900;
        display: block;
        background: rgba(15, 23, 42, 0.52);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    body.menu-mobile-ouvert .voile-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.25s ease;
    }

    .grille-filtres,
    .cartes,
    .cartes-bilan {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 650px) {
    .bandeau {
        display: block;
    }

    .etat {
        display: inline-block;
        margin-top: 10px;
    }

    .grille-filtres,
    .cartes,
    .cartes-bilan {
        grid-template-columns: 1fr;
    }

    .contenu {
        padding: 18px 14px 32px 14px;
    }
}

.checkbox-ligne label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.checkbox-ligne input[type="checkbox"] {
    width: auto;
}

/* Correction formulaires d'ecritures - V1.7.5.1 */

.formulaire-ecriture {
    max-width: 1180px;
}

.formulaire-ecriture label {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 600;
}

.formulaire-ecriture input,
.formulaire-ecriture select,
.formulaire-ecriture textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.formulaire-ecriture textarea {
    min-height: 90px;
    resize: vertical;
}

.grille-formulaire {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    align-items: start;
}

.champ-large {
    grid-column: span 2;
}

.champ-plein {
    grid-column: 1 / -1;
}

.actions-formulaire {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    align-items: center;
}

.actions-formulaire form {
    margin: 0;
}

.grille-recapitulatif {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.grille-recapitulatif > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.grille-recapitulatif span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 6px;
}

.grille-recapitulatif strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

@media (max-width: 1000px) {
    .grille-formulaire,
    .grille-recapitulatif {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .champ-large {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {
    .grille-formulaire,
    .grille-recapitulatif,
    .champ-large,
    .champ-plein {
        display: block;
        grid-column: auto;
    }

    .grille-formulaire > div,
    .grille-recapitulatif > div {
        margin-bottom: 12px;
    }
}

/* Connexion AppMambo - V1.8.1 */

.page-connexion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #334155);
    padding: 24px;
}

.bloc-connexion {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.bloc-connexion h1 {
    margin: 0;
    font-size: 32px;
    color: #111827;
}

.bloc-connexion > p {
    margin: 6px 0 22px 0;
    color: #64748b;
}

.bloc-connexion button {
    width: 100%;
    margin-top: 8px;
}

/* Correction bouton deconnexion - V1.8.1.1 */

.zone-utilisateur {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.utilisateur-connecte {
    font-size: 12px;
    color: #e5e7eb;
}

.bouton-deconnexion {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-deconnexion:hover {
    background: #b91c1c;
}

@media (max-width: 650px) {
    .zone-utilisateur {
        justify-content: flex-start;
        margin-top: 12px;
    }
}

/* Droits d'acces - V1.8.2 */

.role-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 9px;
    padding: 12px;
    margin: 12px 0;
}

/* Gestion utilisateurs - V1.8.3 */

.actions-page {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.actions-tableau {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.actions-tableau form {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-actif {
    background: #dcfce7;
    color: #166534;
}

.badge-inactif {
    background: #fee2e2;
    color: #991b1b;
}

.ligne-desactivee {
    background: #f8fafc;
    color: #64748b;
}

.bouton-danger {
    display: inline-block;
    padding: 9px 13px;
    border: 0;
    border-radius: 7px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-danger:hover {
    background: #b91c1c;
}

/* Mon compte - V1.8.4 */

.bouton-mon-compte {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-mon-compte:hover {
    background: #1d4ed8;
}

/* Sauvegarde manuelle - V1.9.1 */

.bouton-sauvegarde {
    display: inline-block;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #15803d;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-sauvegarde:hover {
    background: #166534;
}

/* Export Excel ecritures - V1.10 */

.bouton-export {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 7px;
    background: #15803d;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-export:hover {
    background: #166534;
}

/* Export PDF bilans - V1.12 */

.bouton-pdf {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 7px;
    background: #b91c1c;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-pdf:hover {
    background: #991b1b;
}

/* Restauration sauvegarde - V1.13 */

.bouton-restauration {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 8px;
    background: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-restauration:hover {
    background: #6d28d9;
}

/* Choix nouvelle ecriture et virement interne - V1.14 */

.cartes-choix-ecriture {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.carte-choix-ecriture {
    display: block;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.carte-choix-ecriture:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.carte-choix-ecriture strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.carte-choix-ecriture em {
    display: block;
    color: #64748b;
    font-style: normal;
}

.icone-choix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 24px;
    font-weight: 800;
}

.champ-lecture {
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
}

/* Gestion sauvegardes - V1.14.1 */

.bouton-restauration-petit {
    display: inline-block;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-restauration-petit:hover {
    background: #6d28d9;
}

/* Membres - V1.15 */

.entete-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.bouton-principal {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.bouton-principal:hover {
    background: #1d4ed8;
}

.cartes-compteurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.carte-compteur {
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}

.carte-compteur span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.carte-compteur strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
}

.formulaire-filtres {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-actif {
    background: #dcfce7;
    color: #166534;
}

.badge-inactif {
    background: #fee2e2;
    color: #991b1b;
}

.ligne-inactive {
    color: #64748b;
    background: #f8fafc;
}

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

.bouton-petit {
    padding: 6px 10px;
    font-size: 13px;
}

.bouton-validation {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-validation:hover {
    background: #15803d;
}

@media (max-width: 800px) {
    .entete-section {
        display: block;
    }

    .formulaire-filtres {
        grid-template-columns: 1fr;
    }
}

/* Liaison membres / ecritures - V1.16 */

.colonne-membre {
    min-width: 130px;
}

.info-membre-lie {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

/* Affichage champ membre - V1.16.2 */

.colonne-membre {
    min-width: 130px;
}

.info-membre-lie {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

/* Avances / remboursements membres - V1.17 */

.badge-remboursement {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-a-rembourser {
    background: #fef3c7;
    color: #92400e;
}

.badge-rembourse {
    background: #dcfce7;
    color: #166534;
}

/* Saisie dédiée avance membre - V1.17.2 */

.champ-lecture {
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

/* Regroupement des saisies - V1.17.3 */

.aide-saisies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.aide-saisies div {
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}

.aide-saisies strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 16px;
}

.aide-saisies p {
    margin: 0;
    color: #475569;
    line-height: 1.45;
}

/* Marquer remboursement - V1.17.4 */

.bouton-validation {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-validation:hover {
    background: #15803d;
}

/* Indicateur remboursement - V1.17.5 */

.colonne-remboursement {
    min-width: 125px;
}

.badge-remboursement-tableau {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-remboursement-attente {
    background: #fef3c7;
    color: #92400e;
}

.badge-remboursement-ok {
    background: #dcfce7;
    color: #166534;
}

/* Cotisations - V1.18 */

.badge-cotisation {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-cotisation-attente {
    background: #fef3c7;
    color: #92400e;
}

.badge-cotisation-payee {
    background: #dcfce7;
    color: #166534;
}

.badge-cotisation-annulee {
    background: #fee2e2;
    color: #991b1b;
}

/* Archivage campagnes cotisations - V1.18.1 */

.badge-campagne {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-campagne-ouverte {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-campagne-archivee {
    background: #e5e7eb;
    color: #374151;
}

.texte-campagne-verrouillee {
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.alerte-archivage {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #facc15;
    border-radius: 10px;
    background: #fefce8;
    color: #854d0e;
}

/* Campagnes de cotisations indépendantes - V1.18.2 */

.badge-campagne,
.badge-cotisation {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-campagne-ouverte {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-campagne-archivee {
    background: #e5e7eb;
    color: #374151;
}

.badge-cotisation-attente {
    background: #fef3c7;
    color: #92400e;
}

.badge-cotisation-payee {
    background: #dcfce7;
    color: #166534;
}

.badge-cotisation-annulee {
    background: #fee2e2;
    color: #991b1b;
}

.texte-campagne-verrouillee {
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.alerte-archivage {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #facc15;
    border-radius: 10px;
    background: #fefce8;
    color: #854d0e;
}

/* Cotisations - Annulation / exonération V1.18.3.2 */

.badge-cotisation-exoneree {
    background: #e0f2fe;
    color: #075985;
}

.cellule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cellule-actions form {
    margin: 0;
}

/* AppMambo - Organisation du menu V1.18.3.3 */

nav .menu-rubrique {
    display: block;
    margin: 20px 0 7px;
    padding-top: 13px;
    border-top: 1px solid rgba(18, 50, 91, 0.12);
    color: #718096;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

nav li.menu-rubrique {
    list-style: none;
}

nav .menu-rubrique:first-child {
    margin-top: 12px;
}

/* AppMambo - Clarification des saisies V1.18.3.4 */

.encart-cotisations {
    margin-top: 18px;
    border: 1px solid #c9d9ee;
    background: #f6f9fd;
}

.encart-cotisations h3 {
    margin-top: 0;
}

.encart-cotisations p {
    margin-bottom: 8px;
}

.encart-cotisations .actions-formulaire {
    margin-top: 16px;
}

/* AppMambo - Suivi global des cotisations V1.18.4 */

.bloc-relances-cotisations {
    border: 1px solid #f0d8aa;
}

.compteur-relances {
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff5df;
    color: #8a5700;
    font-weight: 700;
    white-space: nowrap;
}

/* AppMambo - Fonctions associatives V1.19 */

.liste-fonctions-associatives {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.option-fonction-associative {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #d7e0ea;
    border-radius: 5px;
    background: #f8fafc;
    cursor: pointer;
}

.option-fonction-associative input {
    width: auto;
    margin: 0;
}

.fonction-associative-inactive {
    padding: 8px 10px;
    border: 1px dashed #c8c8c8;
    border-radius: 5px;
    color: #6b7280;
    background: #f7f7f7;
}

.texte-non-renseigne {
    color: #6b7280;
    font-style: italic;
}

/* AppMambo - Profils et droits V1.20 */

.tableau-droits th,
.tableau-droits td {
    text-align: center;
    vertical-align: middle;
}

.tableau-droits th:first-child,
.tableau-droits td:first-child {
    text-align: left;
}

.case-droit input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.menu-message {
    margin: 12px 8px;
    padding: 10px;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
    border-left: 3px solid #d1d5db;
}

/* AppMambo - Administrateur global unique V1.20.1 */

.champ-lecture-seule {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d7e0ea;
    border-radius: 5px;
    color: #374151;
    background: #f8fafc;
    line-height: 1.35;
}

.champ-lecture-seule span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* AppMambo - Membres, fonctions et droits V1.21 */

.badge-superadmin {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-attention {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.texte-protege {
    color: #5b21b6;
    font-size: 12px;
    font-weight: 800;
}

.fonction-systeme {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    background: #eff6ff;
    color: #1e3a8a;
}

.fonction-systeme span {
    color: #475569;
    font-size: 12px;
}

.fonction-systeme.superadmin {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
}

.aide-champ {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.info-acces-membre {
    padding: 11px 13px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
}

.tableau-droits {
    min-width: 800px;
}

.tableau-droits th,
.tableau-droits td {
    text-align: center;
    vertical-align: middle;
}

.tableau-droits th:first-child,
.tableau-droits td:first-child {
    min-width: 200px;
    text-align: left;
}


/* AppMambo - Identifiants de connexion V1.22 */

.identifiant-connexion {
    color: #1e3a8a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.champ-lecture.identifiant-connexion {
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Identité visuelle de l'association - V1.23.1 */

.identite-bandeau {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.identite-bandeau h1 {
    color: var(--couleur-titre, #ffffff);
}

.identite-bandeau p {
    color: var(--couleur-sous-titre, #cbd5e1);
}

.logo-association-bandeau {
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.identite-visuelle-association {
    border-color: #bfdbfe;
}

.apercu-bandeau-complet {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--couleur-apercu-bandeau, #1f2937);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.apercu-bandeau-complet .logo-association-bandeau {
    width: 50px;
    height: 50px;
}

.apercu-bandeau-textes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.apercu-bandeau-textes strong {
    color: var(--couleur-apercu-titre, #ffffff);
    font-size: 22px;
    line-height: 1.1;
}

.apercu-bandeau-textes span {
    color: var(--couleur-apercu-sous-titre, #cbd5e1);
    font-size: 14px;
    line-height: 1.25;
}

.apercu-logo-association {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.apercu-logo-association img {
    display: block;
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
}

.apercu-logo-association span {
    color: #64748b;
    font-size: 13px;
}

.option-suppression-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.option-suppression-logo input[type="checkbox"] {
    width: auto;
}

.est-cache {
    display: none !important;
}

.champ input[type="color"] {
    min-height: 42px;
    padding: 4px;
    cursor: pointer;
}

@media (max-width: 650px) {
    .identite-bandeau {
        align-items: flex-start;
    }

    .logo-association-bandeau {
        width: 46px;
        height: 46px;
    }

    .apercu-bandeau-complet {
        align-items: flex-start;
    }
}

/* Documents officiels - V1.24 */

.tableau-defilant {
    overflow-x: auto;
}

.tableau-documents {
    min-width: 920px;
}

.tableau-documents td:nth-child(2) {
    min-width: 260px;
}

.badge-document-type {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.document-nom-fichier,
.document-description {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.document-description {
    color: #475569;
}

.actions-documents {
    min-width: 250px;
}

.formulaire-filtres-simple {
    grid-template-columns: minmax(180px, 260px) auto;
    align-items: end;
}

.document-fichier-actuel {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.document-fichier-actuel strong {
    margin-right: 6px;
    color: #0f172a;
}

@media (max-width: 800px) {
    .formulaire-filtres-simple {
        grid-template-columns: 1fr;
    }
}
/* Tableau de bord - V1.24.1 */

.tableau-bord-filtre {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tableau-bord-filtre .champ-annee-tableau-bord {
    width: 118px;
    margin: 0;
}

.tableau-bord-filtre .champ-annee-tableau-bord input {
    width: 100%;
}

.actions-filtre-tableau-bord {
    display: flex;
    align-items: flex-end;
    margin: 0;
}

.tableau-bord-cartes-synthese {
    margin-top: 2px;
}

@media (max-width: 650px) {
    .tableau-bord-filtre {
        align-items: stretch;
    }

    .tableau-bord-filtre .champ-annee-tableau-bord {
        width: 100%;
    }
}

/* V1.31.6 - Repère visuel permanent pour APPTEST. */
.bandeau-app-test {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    background: #b91c1c;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.bandeau-app-test span {
    font-weight: 600;
}

/* Tableau de bord - Cartes mobiles */
.tableau-bord-cartes-activites,
.tableau-bord-cartes-ecritures {
    display: none;
}

@media (max-width: 650px) {
    .tableau-bord-tableau-resume,
    .tableau-bord-tableau-dernieres {
        display: none;
    }

    .tableau-bord-cartes-activites,
    .tableau-bord-cartes-ecritures {
        display: grid;
        gap: 12px;
    }

    .carte-activite-tableau-bord,
    .carte-ecriture-tableau-bord {
        padding: 14px;
        border: 1px solid #dbe3ef;
        border-radius: 10px;
        background: #f8fafc;
    }

    .carte-activite-tableau-bord h4 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 16px;
    }

    .carte-activite-tableau-bord-ligne,
    .carte-ecriture-tableau-bord-detail,
    .carte-ecriture-tableau-bord-montant {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-top: 1px solid #e2e8f0;
    }

    .carte-activite-tableau-bord-ligne span,
    .carte-ecriture-tableau-bord-detail span,
    .carte-ecriture-tableau-bord-montant span {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 13px;
    }

    .carte-activite-tableau-bord-ligne strong,
    .carte-ecriture-tableau-bord-detail strong,
    .carte-ecriture-tableau-bord-montant strong {
        color: #0f172a;
        font-size: 14px;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .carte-activite-tableau-bord-resultat {
        margin-top: 2px;
        padding-top: 11px;
    }

    .carte-activite-tableau-bord-resultat strong {
        font-size: 16px;
    }

    .carte-activite-tableau-bord-total {
        border-color: #cbd5e1;
        background: #ffffff;
    }

    .carte-ecriture-tableau-bord-entete {
        margin-bottom: 8px;
        color: #0f172a;
        font-size: 16px;
    }

    .carte-ecriture-tableau-bord-montant {
        margin-top: 4px;
        padding-top: 11px;
    }

    .carte-ecriture-tableau-bord-montant strong {
        font-size: 16px;
    }
}

/* Tableau de bord - Titres et montants signes */
.titre-pave-tableau-bord {
    color: #1e3a8a;
}

@media (max-width: 650px) {
    .carte-activite-tableau-bord-ligne strong.positif,
    .carte-ecriture-tableau-bord-montant strong.positif {
        color: #047857;
    }

    .carte-activite-tableau-bord-ligne strong.negatif,
    .carte-ecriture-tableau-bord-montant strong.negatif {
        color: #dc2626;
    }
}
