@charset "UTF-8";
/* =====================================================================
   nomprenoms.ci — charte graphique
   Palette : orange #F77F00, blanc, vert #009E60 (drapeau ivoirien),
             encre #1B1B1F, fond #FAFAF7
   ===================================================================== */

:root {
    --np-orange: #F77F00;
    --np-orange-fonce: #D96D00;
    --np-orange-pale: #FFF1E3;
    --np-vert: #009E60;
    --np-vert-fonce: #007A4A;
    --np-vert-pale: #E3F6EC;
    --np-encre: #1B1B1F;
    --np-gris: #6B6B70;
    --np-gris-clair: #E8E6DF;
    --np-fond: #FAFAF7;
    --np-blanc: #FFFFFF;
    --np-rayon: 18px;
    --np-ombre: 0 10px 30px rgba(27, 27, 31, 0.06), 0 1px 2px rgba(27, 27, 31, 0.04);
    --bs-font-sans-serif: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --bs-body-color: var(--np-encre);
    --bs-body-bg: var(--np-fond);
    --bs-link-color: var(--np-vert-fonce);
    --bs-link-hover-color: var(--np-orange-fonce);
    --bs-primary: var(--np-orange);
    --bs-primary-rgb: 247, 127, 0;
    --bs-success: var(--np-vert);
    --bs-success-rgb: 0, 158, 96;
    --bs-border-radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--np-fond);
    color: var(--np-encre);
    font-family: var(--bs-font-sans-serif);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- bandeau tricolore */
.np-bandeau {
    height: 5px;
    background: linear-gradient(90deg, var(--np-orange) 0 33.3%, var(--np-blanc) 33.3% 66.6%, var(--np-vert) 66.6%);
}

/* ---------------------------------------------------------------- navigation */
.np-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--np-gris-clair);
}
/* Logo typographique : mot-symbole + filet tricolore */
.np-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    line-height: 1;
    text-decoration: none;
    padding: 2px 0;
}
.np-logo:hover { text-decoration: none; }
.np-logo-mot {
    font-family: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.045em;
    white-space: nowrap;
}
.np-logo-nom { color: var(--np-encre); }
.np-logo-prenoms { color: var(--np-orange); }
.np-logo-ci { color: var(--np-vert); font-weight: 700; letter-spacing: -0.02em; }
.np-logo-point { color: var(--np-orange); }
.np-logo-filet { display: flex; gap: 3px; height: 4px; width: 100%; }
.np-logo-filet i { flex: 1; border-radius: 999px; }
.np-logo-filet i:nth-child(1) { background: var(--np-orange); }
.np-logo-filet i:nth-child(2) { background: var(--np-blanc); box-shadow: inset 0 0 0 1px #D9D6CC; }
.np-logo-filet i:nth-child(3) { background: var(--np-vert); }
.np-logo:hover .np-logo-prenoms { color: var(--np-orange-fonce); }
.np-logo.navbar-brand { margin-right: 1.25rem; }
.np-logo-pied .np-logo-mot { font-size: 1.4rem; }
@media (max-width: 575.98px) { .np-logo-mot { font-size: 1.3rem; } }
.np-navbar .nav-link {
    color: var(--np-encre);
    font-weight: 600;
    padding: .5rem .9rem;
    border-radius: 999px;
}
.np-navbar .nav-link:hover, .np-navbar .nav-link.active {
    background: var(--np-orange-pale);
    color: var(--np-orange-fonce);
    text-decoration: none;
}
.np-navbar .dropdown-menu {
    border: 1px solid var(--np-gris-clair);
    border-radius: 14px;
    box-shadow: var(--np-ombre);
    padding: .5rem;
}
.np-navbar .dropdown-item { border-radius: 8px; font-weight: 500; }
.np-navbar .dropdown-item:hover { background: var(--np-vert-pale); color: var(--np-vert-fonce); }

/* ---------------------------------------------------------------- boutons */
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.2rem; }
.btn-primary {
    --bs-btn-bg: var(--np-orange);
    --bs-btn-border-color: var(--np-orange);
    --bs-btn-hover-bg: var(--np-orange-fonce);
    --bs-btn-hover-border-color: var(--np-orange-fonce);
    --bs-btn-active-bg: var(--np-orange-fonce);
    --bs-btn-active-border-color: var(--np-orange-fonce);
}
.btn-success {
    --bs-btn-bg: var(--np-vert);
    --bs-btn-border-color: var(--np-vert);
    --bs-btn-hover-bg: var(--np-vert-fonce);
    --bs-btn-hover-border-color: var(--np-vert-fonce);
    --bs-btn-active-bg: var(--np-vert-fonce);
    --bs-btn-active-border-color: var(--np-vert-fonce);
}
.btn-outline-dark { --bs-btn-color: var(--np-encre); --bs-btn-border-color: var(--np-gris-clair); }
.btn-outline-dark:hover { background: var(--np-encre); border-color: var(--np-encre); }

/* ---------------------------------------------------------------- héros */
.np-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(900px 400px at 10% -10%, rgba(247, 127, 0, 0.16), transparent 60%),
        radial-gradient(800px 400px at 95% 0%, rgba(0, 158, 96, 0.16), transparent 60%),
        var(--np-blanc);
    border-bottom: 1px solid var(--np-gris-clair);
}
.np-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
.np-hero .lead { color: var(--np-gris); font-size: 1.15rem; max-width: 46rem; }
.np-hero .np-chiffre { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.np-hero .np-chiffre-libelle { color: var(--np-gris); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* recherche */
.np-recherche { position: relative; max-width: 42rem; }
.np-recherche .form-control {
    height: 3.5rem;
    border-radius: 999px;
    padding-left: 1.4rem;
    padding-right: 8.5rem;
    border: 2px solid var(--np-gris-clair);
    font-size: 1.05rem;
    background: var(--np-blanc);
}
.np-recherche .form-control:focus { border-color: var(--np-orange); box-shadow: 0 0 0 .25rem rgba(247, 127, 0, .18); }
.np-recherche .btn { position: absolute; right: .35rem; top: .35rem; height: 2.8rem; }
.np-suggestions {
    position: absolute; left: 0; right: 0; top: 3.8rem; z-index: 20;
    background: var(--np-blanc); border: 1px solid var(--np-gris-clair); border-radius: 16px;
    box-shadow: var(--np-ombre); overflow: hidden; display: none; text-align: left;
}
.np-suggestions.ouvert { display: block; }
.np-suggestions a { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.1rem; color: var(--np-encre); }
.np-suggestions a:hover, .np-suggestions a.actif { background: var(--np-orange-pale); text-decoration: none; }
.np-suggestions .np-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--np-gris); }

/* ---------------------------------------------------------------- cartes */
.card {
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-rayon);
    box-shadow: var(--np-ombre);
    background: var(--np-blanc);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--np-gris-clair);
    font-weight: 700;
    padding: 1rem 1.25rem;
}
.np-kpi { padding: 1.25rem 1.4rem; height: 100%; }
.np-kpi .np-kpi-valeur { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.np-kpi .np-kpi-libelle { color: var(--np-gris); font-size: .85rem; margin-top: .25rem; }
.np-kpi.orange { border-top: 4px solid var(--np-orange); }
.np-kpi.vert { border-top: 4px solid var(--np-vert); }
.np-kpi.encre { border-top: 4px solid var(--np-encre); }

/* pastilles */
.np-pastille {
    display: inline-block; padding: .2rem .65rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.np-pastille-orange { background: var(--np-orange-pale); color: var(--np-orange-fonce); }
.np-pastille-vert { background: var(--np-vert-pale); color: var(--np-vert-fonce); }
.np-pastille-gris { background: #EFEEE8; color: var(--np-gris); }

/* ---------------------------------------------------------------- tableaux */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--np-gris);
    border-bottom: 1px solid var(--np-gris-clair); font-weight: 700; white-space: nowrap;
}
.table tbody td { vertical-align: middle; border-color: #F0EFEA; }
.table-hover tbody tr:hover { background: #FFF8F0; }
.np-rang { width: 3rem; color: var(--np-gris); font-variant-numeric: tabular-nums; font-weight: 700; }
.np-rang.top3 { color: var(--np-orange-fonce); }
.np-valeur a { font-weight: 700; color: var(--np-encre); font-size: 1.02rem; }
.np-valeur a:hover { color: var(--np-orange-fonce); }
.np-nombre { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* barre de taux */
.np-barre { display: flex; align-items: center; gap: .6rem; min-width: 8rem; }
.np-barre .np-barre-piste { flex: 1; height: 8px; background: #EFEEE8; border-radius: 999px; overflow: hidden; }
.np-barre .np-barre-valeur { height: 100%; background: linear-gradient(90deg, var(--np-orange), var(--np-vert)); border-radius: 999px; }
.np-barre .np-barre-texte { font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; min-width: 4.2rem; text-align: right; }

/* répartition hommes / femmes */
.np-sexe { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #EFEEE8; min-width: 5rem; }
.np-sexe .h { background: #1B6FD1; }
.np-sexe .f { background: #D1327A; }

/* ---------------------------------------------------------------- onglets, filtres */
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; color: var(--np-encre); }
.nav-pills .nav-link.active { background: var(--np-encre); color: var(--np-blanc); }
.np-filtres { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.np-filtres .form-select { border-radius: 999px; min-width: 8rem; width: auto; font-weight: 600; }
.np-segment { display: inline-flex; border: 1px solid var(--np-gris-clair); border-radius: 999px; overflow: hidden; background: var(--np-blanc); }
.np-segment a { padding: .4rem .9rem; font-weight: 600; color: var(--np-encre); font-size: .9rem; }
.np-segment a.actif { background: var(--np-encre); color: var(--np-blanc); }
.np-segment a:hover { text-decoration: none; background: var(--np-orange-pale); }
.np-segment a.actif:hover { background: var(--np-encre); }

/* Bandeau de consentement (mesure d'audience) */
.np-consentement { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 46rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; background: var(--np-blanc); border: 1px solid var(--np-gris-clair); border-top: 4px solid var(--np-orange); border-radius: var(--np-rayon); box-shadow: var(--np-ombre); font-size: .9rem; }
.np-consentement[hidden] { display: none; }
.np-consentement p { flex: 1 1 22rem; }

/* Raretés : filtre par initiale et encart des disparus */
.np-lettres { display: flex; flex-wrap: wrap; gap: .3rem; }
.np-lettres a { min-width: 2.1rem; padding: .3rem .55rem; text-align: center; border: 1px solid var(--np-gris-clair); border-radius: 10px; background: var(--np-blanc); color: var(--np-encre); font-weight: 600; font-size: .85rem; }
.np-lettres a:hover { text-decoration: none; background: var(--np-orange-pale); }
.np-lettres a.actif { background: var(--np-encre); border-color: var(--np-encre); color: var(--np-blanc); }
.np-disparus { background: linear-gradient(180deg, var(--np-orange-pale), var(--np-fond)); border-bottom: 1px solid var(--np-gris-clair); }
.np-disparu-valeur { color: var(--np-encre); text-decoration: line-through; text-decoration-color: var(--np-orange); text-decoration-thickness: 2px; }
.np-disparu-valeur:hover { text-decoration: line-through; color: var(--np-orange-fonce); }

/* fil d'Ariane */
.breadcrumb { --bs-breadcrumb-divider: "\203A"; font-size: .9rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--np-gris); }
.breadcrumb .active { color: var(--np-encre); font-weight: 600; }

/* ---------------------------------------------------------------- fiche */
.np-fiche-entete { padding: 2.5rem 0 1.5rem; background: var(--np-blanc); border-bottom: 1px solid var(--np-gris-clair); }
.np-fiche-entete h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.np-fiche-entete .np-sur-titre { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--np-orange-fonce); font-weight: 700; }
.np-definition { border-left: 4px solid var(--np-vert); padding-left: 1rem; }
.np-definition dt { color: var(--np-gris); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.np-definition dd { margin-bottom: .75rem; }

/* liste de territoires */
.np-grille-terr { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.np-grille-terr a {
    display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem;
    background: var(--np-blanc); border: 1px solid var(--np-gris-clair); border-radius: 14px; color: var(--np-encre); font-weight: 600;
}
.np-grille-terr a:hover { border-color: var(--np-orange); text-decoration: none; box-shadow: var(--np-ombre); }
.np-grille-terr small { color: var(--np-gris); font-weight: 500; }

/* ---------------------------------------------------------------- newsletter */
.np-newsletter {
    background: var(--np-encre); color: var(--np-blanc); border-radius: var(--np-rayon); padding: 2.2rem;
    background-image: radial-gradient(500px 200px at 100% 0%, rgba(0, 158, 96, .35), transparent 60%),
                      radial-gradient(500px 200px at 0% 100%, rgba(247, 127, 0, .35), transparent 60%);
}
.np-newsletter .form-control { border-radius: 999px; height: 3rem; }
.np-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- pied de page */
.np-footer { background: var(--np-blanc); border-top: 1px solid var(--np-gris-clair); padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: .92rem; }
.np-footer h6 { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--np-gris); }
.np-footer a { color: var(--np-encre); }
.np-footer .np-legal { color: var(--np-gris); font-size: .8rem; }

/* ---------------------------------------------------------------- formulaires d'authentification */
.np-auth { max-width: 30rem; margin: 3rem auto; }
.np-auth .card-body { padding: 2rem; }
.form-control, .form-select { border-color: var(--np-gris-clair); }
.form-control:focus, .form-select:focus { border-color: var(--np-orange); box-shadow: 0 0 0 .2rem rgba(247, 127, 0, .15); }

/* ---------------------------------------------------------------- admin */
.np-admin-nav .nav-link { color: var(--np-encre); font-weight: 600; border-radius: 10px; padding: .55rem .9rem; }
.np-admin-nav .nav-link.active { background: var(--np-encre); color: var(--np-blanc); }
.np-admin-nav .nav-link:hover { background: var(--np-orange-pale); text-decoration: none; }

/* ---------------------------------------------------------------- graphiques */
.np-graphique { position: relative; height: 260px; }
.np-courbe { border: 1px solid var(--np-gris-clair); border-radius: 14px; padding: .75rem .9rem; background: var(--np-blanc); }
.np-courbe-titre { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--np-gris); font-weight: 700; margin-bottom: .35rem; }

/* ---------------------------------------------------------------- contributions */
.np-appel { background: var(--np-orange-pale); border: 1px dashed var(--np-orange); border-radius: 14px; padding: 1.25rem; }
.np-appel .form-control { background: var(--np-blanc); }
.active-territoire { background: var(--np-vert-pale); }

/* ---------------------------------------------------------------- pages éditoriales */
.np-texte { font-size: 1.03rem; line-height: 1.7; }
.np-texte h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.np-texte h2:first-child { margin-top: 0; }
.np-faq .accordion-button { font-weight: 600; }
.np-faq .accordion-button:not(.collapsed) { background: var(--np-orange-pale); color: var(--np-encre); box-shadow: none; }
.np-plan h3 { font-size: 1rem; margin-top: 1rem; }
.np-plan ul { columns: 2; column-gap: 2rem; padding-left: 1.1rem; }
@media (max-width: 575.98px) { .np-plan ul { columns: 1; } }

/* ---------------------------------------------------------------- erreurs */
.np-erreur { text-align: center; padding: 4rem 1rem; }
.np-erreur .np-code { font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; background: linear-gradient(90deg, var(--np-orange), var(--np-vert)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 767.98px) {
    .np-hero { padding: 2.8rem 0 2.2rem; }
    .np-recherche .form-control { padding-right: 1.4rem; }
    .np-recherche .btn { position: static; width: 100%; margin-top: .5rem; }
    .np-kpi .np-kpi-valeur { font-size: 1.4rem; }
    .table-responsive { border-radius: 12px; }
    .np-newsletter { padding: 1.5rem; }
}

@media print {
    .np-navbar, .np-footer, .np-newsletter, .btn { display: none !important; }
}
