/* ÉGLISE D'AFRIQUE — habillage sur Bootstrap 5.3 */
:root {
    --ea-nuit: #1d2742;
    --ea-nuit-2: #263256;
    --ea-or: #c9a227;
    --ea-fond: #f4f5f8;
    --bs-primary: #2c3e7a;
    --bs-primary-rgb: 44, 62, 122;
    --bs-link-color: #2c3e7a;
    --bs-link-color-rgb: 44, 62, 122;
}

body { background: var(--ea-fond); }

.btn-primary { --bs-btn-bg: #2c3e7a; --bs-btn-border-color: #2c3e7a; --bs-btn-hover-bg: #22306a; --bs-btn-hover-border-color: #22306a; --bs-btn-active-bg: #1d2742; }

.ea-sidebar { width: 250px; min-height: 100vh; background: var(--ea-nuit); color: #fff; }
.ea-sidebar .ea-marque { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ea-sidebar .ea-marque .ea-nom { font-weight: 700; letter-spacing: .04em; }
.ea-sidebar .ea-marque .ea-nom span { color: var(--ea-or); }
.ea-sidebar .ea-marque small { color: rgba(255,255,255,.6); }
.ea-sidebar .nav-link { color: rgba(255,255,255,.78); padding: .6rem 1.25rem; border-left: 3px solid transparent; }
.ea-sidebar .nav-link:hover { color: #fff; background: var(--ea-nuit-2); }
.ea-sidebar .nav-link.active { color: #fff; background: var(--ea-nuit-2); border-left-color: var(--ea-or); }
.ea-sidebar .ea-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 1rem 1.25rem .25rem; }

.ea-contenu { flex: 1; min-width: 0; }
.ea-barre { background: #fff; border-bottom: 1px solid #e3e6ee; }

.ea-carte-indicateur { border: 0; border-left: 4px solid var(--ea-or); }
.ea-carte-indicateur .ea-valeur { font-size: 2rem; font-weight: 700; color: var(--ea-nuit); }

.ea-invite { min-height: 100vh; background: linear-gradient(135deg, var(--ea-nuit) 0%, #2c3e7a 100%); }
.ea-invite .card { border: 0; border-radius: 1rem; }
.ea-invite .ea-nom { font-weight: 800; letter-spacing: .05em; color: var(--ea-nuit); }
.ea-invite .ea-nom span { color: var(--ea-or); }

.table > :not(caption) > * > * { vertical-align: middle; }
.ea-mdp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; }

@media (max-width: 991.98px) {
    .ea-sidebar { width: 100%; min-height: auto; }
}


/* === THEME SIDEBAR NOIR (demande NM 20/11/2026) : noir pur, écriture blanche === */
.ea-sidebar { background: #000 !important; color: #fff; }
.ea-sidebar .ea-marque { border-bottom-color: rgba(255,255,255,.15); }
.ea-sidebar .ea-marque .ea-nom,
.ea-sidebar .ea-marque .ea-nom span,
.ea-sidebar .ea-marque small { color: #fff; }
.ea-sidebar .nav-link { color: #fff; }
.ea-sidebar .nav-link:hover { color: #fff; background: #1a1a1a; }
.ea-sidebar .nav-link.active { color: #fff; background: #262626; border-left-color: #fff; font-weight: 600; }
.ea-sidebar .ea-section { color: #fff; opacity: .6; font-weight: 600; }


/* === THEME TRAIT BLANC (demande NM 20/11/2026) : trait blanc épais sous le nom du logiciel === */
.ea-sidebar .ea-marque { border-bottom: 4px solid #fff !important; margin-bottom: .5rem; }


/* === MENU TELEPHONE (demande NM 20/11/2026) : menu replié derrière un bouton sur petit écran === */
.ea-sidebar .ea-marque { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ea-bouton-menu { background: transparent; color: #fff; border: 2px solid #fff; border-radius: .5rem; padding: .35rem .85rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 991.98px) {
    .ea-sidebar .ea-marque { margin-bottom: 0; }
    .ea-sidebar .ea-menu { display: none !important; }
    .ea-sidebar.ea-menu-ouvert .ea-menu { display: flex !important; }
}


/* === SECTIONS ORANGE (demande NM 20/11/2026) : titres de sections du menu en orange === */
.ea-sidebar .ea-section { color: #F97316 !important; opacity: 1 !important; font-weight: 700; }


/* === PLEINE LARGEUR (demande NM 20/11/2026) : les cartes des formulaires occupent toute la page === */
.ea-contenu main .card[style*="max-width"] { max-width: none !important; }


/* === THEME ICONES (demande NM 20/11/2026) : menu style Entreprise Gold === */
.ea-sidebar .ea-logo { width: 46px; height: 46px; border-radius: 50%; background: #F59E0B; color: #000; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(245,158,11,.35); }
.ea-sidebar .ea-marque .ea-nom { font-size: 1.2rem; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.ea-sidebar .ea-marque small { font-weight: 600; letter-spacing: .02em; }
.ea-sidebar .nav-link { display: flex; align-items: center; gap: .8rem; font-weight: 600; border-left: 0 !important; margin: .1rem .6rem; padding: .55rem .9rem; border-radius: .6rem; }
.ea-sidebar .nav-link i { width: 1.25rem; text-align: center; font-size: 1rem; }
.ea-sidebar .nav-link:hover { background: #161616; }
.ea-sidebar .nav-link.active { background: #1e2a4a !important; color: #fff; }
.ea-sidebar .ea-section { color: #F59E0B !important; opacity: 1 !important; font-weight: 700; padding-left: 1.25rem; }
.ea-sidebar .ea-section::before { content: "\25C6"; margin-right: .45rem; font-size: .65rem; vertical-align: .05em; }

/* === SIDEBAR FIXE (demande NM 20/11/2026) : le menu reste en place et défile seul === */
@media (min-width: 992px) {
    .ea-sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
                  scrollbar-width: thin; scrollbar-color: #444 #000; }
    .ea-sidebar::-webkit-scrollbar { width: 8px; }
    .ea-sidebar::-webkit-scrollbar-track { background: #000; }
    .ea-sidebar::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
}

/* === BORDURES ORANGE (demande NM 20/11/2026) : cases du tableau de bord en orange pur === */
.ea-carte-indicateur { border-left: 4px solid #FF7F00 !important; }

/* === LOGO EGLISE (demande NM 20/11/2026) : logo de l'église en haut du menu === */
.ea-sidebar .ea-logo-eglise { background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 0 0 3px rgba(255,127,0,.45); }
