/* ==========================================================================
   DESIGN « SÉRÉNITÉ » — bleu nuit, ivoire et or
   --------------------------------------------------------------------------
   Cette feuille se charge APRÈS style.css et en reprend la main : elle ne
   change aucune fonction, seulement l'apparence. Toutes les couleurs sont
   définies une seule fois, juste ci-dessous. Pour changer une teinte de
   toute l'application, on ne modifie que cette liste.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('polices/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('polices/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('polices/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('polices/inter-700.woff2') format('woff2'); }

:root {
    --marine: #0f1b33;          /* menu, barres sombres */
    --marine-2: #17274a;
    --encre: #1b2438;           /* texte principal */
    --discret: #6b7385;         /* texte secondaire */
    --ivoire: #f6f3ec;          /* fond des pages */
    --ivoire-2: #faf8f3;        /* fond léger (en-têtes de tableau, pieds de fenêtre) */
    --carte: #ffffff;
    --trait: #e6dfd0;           /* bordures fines */
    --trait-fort: #d3ccbb;      /* bordures de champs */
    --or: #b8893a;              /* couleur d'accent */
    --or-fonce: #9a6f24;
    --or-clair: #f5ecd9;
    --or-encre: #7a5416;
    --bleu: #2c4a7c;            /* liens, éléments d'information */
    --bleu-clair: #e8edf6;
    --vert: #2f7d5a;
    --vert-clair: #e6f1ea;
    --rouge: #b3402f;
    --rouge-clair: #fbeae6;
    --ombre: 0 1px 2px rgba(15, 27, 51, .05), 0 6px 18px rgba(15, 27, 51, .05);
    --titre: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
    --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html, body { font-family: var(--texte); color: var(--encre); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
body { background-color: var(--ivoire); }
.dashboard-body { background-color: var(--ivoire); font-family: var(--texte); }
::selection { background: var(--or-clair); }
a { color: var(--bleu); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   LE MENU DE GAUCHE
   -------------------------------------------------------------------------- */
.sidebar { background-color: var(--marine); box-shadow: none; width: 268px; }
.sidebar-header {
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 26px 22px 20px 22px; background: transparent;
}
.logo-marque {
    width: 40px; height: 40px; flex: none; border-radius: 12px;
    background: var(--or); color: var(--marine); display: grid; place-items: center;
}
.logo-marque svg { width: 22px; height: 22px; fill: currentColor; }
.sidebar-header h2 { font-family: var(--titre); font-size: 17px; font-weight: 700; letter-spacing: -.1px; color: #fff; margin: 0; line-height: 1.2; }
.sidebar-header small { display: block; font-size: 12px; color: #8f9ab3; margin-top: 2px; }
.sidebar-menu { padding: 6px 14px 12px 14px; overflow-y: auto; }
.sidebar-menu li { border-bottom: none; margin-bottom: 3px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 14px; border-radius: 10px; border-left: none;
    color: #9aa5bd; font-size: 14.5px; font-weight: 500; letter-spacing: -.05px;
}
.sidebar-menu a svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-menu a:hover { background-color: rgba(255, 255, 255, .06); color: #fff; border-left: none; }
.sidebar-menu li.active a { background-color: rgba(184, 137, 58, .2); color: #f0c97a; border-left: none; font-weight: 600; }
.sidebar-footer { background: transparent; padding: 14px 20px 22px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bouton-rouge {
    background: transparent; color: #cdd5e6; border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px; padding: 11px; font-weight: 600; font-size: 14px;
}
.bouton-rouge:hover { background: rgba(200, 85, 61, .18); border-color: #c8553d; color: #fff; }

/* --------------------------------------------------------------------------
   LA ZONE PRINCIPALE
   -------------------------------------------------------------------------- */
.main-content { padding: 30px 40px 36px 40px; }
.main-header { border-bottom: none; padding-bottom: 0; margin-bottom: 22px; }
.main-header h1 { font-family: var(--titre); font-size: 2em; font-weight: 700; letter-spacing: -.5px; color: var(--encre); margin: 6px 0 8px 0; }
.main-header p { color: var(--discret); font-size: 14.5px; line-height: 1.6; }
.main-header p strong { color: var(--encre); font-weight: 600; }
.logo-eglise-entete { border-radius: 10px; }
.contenu-dynamique {
    background-color: var(--carte); border: 1px solid var(--trait);
    border-radius: 16px; box-shadow: var(--ombre); padding: 30px 32px;
}
.contenu-dynamique h2 { font-family: var(--titre); font-weight: 700; letter-spacing: -.3px; color: var(--encre); }
.contenu-dynamique h3 { color: var(--encre); font-weight: 650; }

/* La barre du haut : des pastilles discrètes */
.menu-haut a, .bouton-haut {
    border: 1px solid var(--trait); background-color: var(--carte); color: var(--encre);
    border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13px;
}
.menu-haut a:hover, .bouton-haut:hover { background-color: var(--or-clair); border-color: var(--or); color: var(--or-encre); }
.menu-haut li.active a { background-color: var(--marine); border-color: var(--marine); color: #fff; }
.bouton-haut.lien-public { background-color: var(--marine); border-color: var(--marine); color: #fff; }
.bouton-haut.lien-public:hover { background-color: var(--marine-2); border-color: var(--marine-2); color: #fff; }
.main-header .badge-role {
    background: var(--or-clair); border: 1px solid #ead9b3; color: var(--or-encre);
    border-radius: 999px; padding: 8px 15px; font-weight: 700;
}
.choix-langue select {
    border: 1px solid var(--trait); background-color: var(--carte); color: var(--encre);
    border-radius: 999px; padding: 8px 14px; font-weight: 500;
}
.choix-langue select:hover { border-color: var(--or); background-color: #fff; }
#lang-switch { border: 1px solid var(--trait); background-color: var(--carte); color: var(--encre); border-radius: 999px; padding: 7px 14px; }
#lang-switch:hover { border-color: var(--or); }

/* --------------------------------------------------------------------------
   BOUTONS
   -------------------------------------------------------------------------- */
.bouton-action {
    background-color: var(--or); color: var(--marine); border: none;
    padding: 11px 19px; border-radius: 10px; font-weight: 650; font-size: 14px; letter-spacing: -.05px;
    box-shadow: 0 1px 2px rgba(15, 27, 51, .12); transition: background-color .15s, transform .05s;
}
.bouton-action:hover { background-color: #c79a45; }
.bouton-action:active { transform: translateY(1px); }
.bouton-action:disabled { opacity: .55; cursor: not-allowed; }
.bouton-secondaire {
    background-color: var(--carte); color: var(--encre); border: 1px solid var(--trait-fort);
    padding: 10px 18px; border-radius: 10px; font-weight: 600;
}
.bouton-secondaire:hover { background-color: var(--ivoire-2); border-color: var(--discret); }
.bouton-whatsapp { border-radius: 9px; }

/* --------------------------------------------------------------------------
   TABLEAUX ET CHAMPS
   -------------------------------------------------------------------------- */
.table-donnees { background-color: transparent; }
.table-donnees th {
    background-color: var(--ivoire-2); color: var(--discret); font-weight: 650;
    font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
    padding: 13px 15px; border-bottom: 1px solid var(--trait);
}
.table-donnees td { border-bottom: 1px solid var(--trait); padding: 15px; }
.table-donnees tbody tr:hover td { background-color: var(--ivoire-2); }
.barre-recherche input, .groupe-saisie input, .groupe-saisie select, .groupe-saisie textarea,
.ligne-formulaire input, .ligne-formulaire select {
    border: 1px solid var(--trait-fort); border-radius: 10px; padding: 11px 13px;
    background: #fff; color: var(--encre); font-size: 14px;
}
.barre-recherche input::placeholder, .groupe-saisie input::placeholder { color: #9a9486; }
.barre-recherche input:focus, .groupe-saisie input:focus, .groupe-saisie select:focus, .groupe-saisie textarea:focus,
.ligne-formulaire input:focus, .ligne-formulaire select:focus {
    outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(184, 137, 58, .2);
}
.groupe-saisie label, .ligne-formulaire label { color: var(--encre); font-weight: 600; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   FENÊTRES (POPUP)
   -------------------------------------------------------------------------- */
.modal { background-color: rgba(15, 27, 51, .55); }
.modal-contenu { border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 27, 51, .35); overflow: hidden; }
.modal-en-tete { background-color: #fff; border-bottom: 1px solid var(--trait); padding: 18px 24px; border-radius: 0; }
.modal-en-tete h3 { font-family: var(--titre); font-size: 19px; font-weight: 700; color: var(--encre); }
.fermer-modal { color: var(--discret); }
.fermer-modal:hover { color: var(--rouge); }
.modal-corps { padding: 22px 24px; overflow-y: auto; }
.modal-pied { background-color: var(--ivoire-2); border-top: 1px solid var(--trait); padding: 16px 24px; border-radius: 0; }

/* --------------------------------------------------------------------------
   ÉTIQUETTES, BANDEAUX, DIVERS
   -------------------------------------------------------------------------- */
.etiquette-role { border-radius: 999px; padding: 4px 11px; font-weight: 650; }
.bloc-comptes { border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre); }
.bandeau-abonnement { border-radius: 12px; }
.code-invitation { border-radius: 12px; }
.liste-destinataires { border-color: var(--trait); border-radius: 12px; }

/* --------------------------------------------------------------------------
   TÉLÉPHONE
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .barre-mobile { background: var(--marine); box-shadow: 0 2px 10px rgba(15, 27, 51, .25); }
    .bouton-menu-mobile { border-radius: 10px; }
    .main-content { padding: 0 14px 28px 14px; }
    .contenu-dynamique { padding: 18px 16px; border-radius: 14px; }
    .main-header h1 { font-size: 1.5em; }
    .sidebar { box-shadow: none; }
    body.menu-ouvert .sidebar { box-shadow: 8px 0 28px rgba(15, 27, 51, .4); }
}
@media (max-width: 1024px) {
    .sidebar { width: 236px; }
    .main-content { padding: 26px 22px; }
}

/* --------------------------------------------------------------------------
   PETITS ÉLÉMENTS PARTAGÉS
   -------------------------------------------------------------------------- */
.ico-foyer { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-bouclier svg { width: 15px; height: 15px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icone-carte {
    width: 46px; height: 46px; border-radius: 13px; background: var(--or-clair); color: var(--or-encre);
    display: grid; place-items: center; margin-bottom: 14px;
}
.icone-carte svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-grand { display: flex; justify-content: center; }
.logo-marque.grand { width: 68px; height: 68px; border-radius: 20px; }
.logo-marque.grand svg { width: 36px; height: 36px; }

/* Boutons « discrets » (ex. Importer) : contour, sans remplissage */
.bouton-action.bouton-discret { background: #fff; color: var(--encre); border: 1px solid var(--trait-fort); box-shadow: none; }
.bouton-action.bouton-discret:hover { background: var(--ivoire-2); border-color: var(--discret); }
.bouton-whatsapp { background: #1f9d55; }
.bouton-whatsapp:hover { background: #188a46; }

/* Tuiles du tableau de bord */
.tuile-bord { border-radius: 14px; box-shadow: var(--ombre); border-top-width: 3px; }
.tuile-bord .valeur { font-family: var(--titre); font-weight: 700; letter-spacing: -.5px; color: var(--encre); }
.tuile-bord .libelle { color: var(--discret); font-weight: 500; }

/* Les boutons qui gardent une couleur propre (ministère, dépense, suppression) ont un texte blanc */
.bouton-action[style*="background"] { color: #fff; }
.bouton-action[style*="background"]:hover { filter: brightness(1.08); }
.bouton-action.bouton-faire-appel { color: #fff; }

/* --------------------------------------------------------------------------
   PAGE DE PRÉSENTATION ET PAGE DE DONS
   -------------------------------------------------------------------------- */
header { background: #fff; border-bottom: 1px solid var(--trait); box-shadow: none; }
.logo { gap: 11px; color: var(--encre); letter-spacing: -.2px; }
.logo .logo-marque { width: 36px; height: 36px; border-radius: 11px; }
.logo .logo-marque svg { width: 19px; height: 19px; }
.header-actions select, #select-langue {
    border: 1px solid var(--trait) !important; border-radius: 999px !important;
    padding: 7px 14px !important; background: #fff; color: var(--encre); font-weight: 500;
}
.pied-de-page { background-color: var(--marine); }
.section-vitrine { border-radius: 16px; border: 1px solid var(--trait); }
.section-vitrine h1 { font-family: var(--titre); color: var(--encre); }
.section-vitrine h2 { color: var(--encre); }
.ico-paiement { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; fill: none; stroke: var(--or-encre); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#accueil-application h1 { font-family: var(--titre); }

.main-header { background: transparent; }
@media (max-width: 767px) {
    .main-header { background: transparent; }
    .aide-mobile { background: var(--or-clair); color: var(--or-encre); border-radius: 10px; }
}


/* ===== Étape 23C : onglets Personnes / Dons et choix du logiciel (écran Importer) ===== */
.onglets-import { display: flex; margin: 0 0 14px 0; border-bottom: 1px solid var(--trait); }
.onglet-import { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 22px; margin-bottom: -1px;
    font: 600 14px var(--texte); color: var(--discret); cursor: pointer; }
.onglet-import.actif { color: var(--encre); border-bottom-color: var(--or); }
.pastilles-import { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px 0; font-size: 13px; color: var(--discret); }
.pastille-import { background: #fff; border: 1px solid var(--trait-fort); color: var(--encre); border-radius: 999px;
    padding: 7px 16px; font: 600 13px var(--texte); cursor: pointer; }
.pastille-import.actif { background: var(--marine); border-color: var(--marine); color: #fff; }
