:root {
    --pnr-sidebar-bg: #0a4a2e;
    --pnr-sidebar-text: #9FE1CB;
    --pnr-accent: #5DCAA5;
    --pnr-danger: #E24B4A;
    --pnr-warning: #D85A30;
    --pnr-border: #e8e6df;
    --pnr-muted: #888;
    --pnr-bg: #f4f6f9;
    --pnr-text: #1a1a2e;
    --pnr-sidebar-width: 240px;
    --pnr-topbar-height: 64px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--pnr-bg);
    color: var(--pnr-text);
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0ede8; }
::-webkit-scrollbar-thumb { background: #c8c6bf; border-radius: 3px; }

/* ---------------------------------------------------------------- */
/* Sidebar                                                           */
/* ---------------------------------------------------------------- */

.pnr-sidebar {
    width: var(--pnr-sidebar-width);
    min-height: 100vh;
    background: var(--pnr-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.pnr-sidebar-brand {
    padding: 24px 20px 16px;
}

.pnr-sidebar-tag {
    color: var(--pnr-sidebar-text);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.5;
}

.pnr-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.pnr-sidebar-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    line-height: 1.15;
}

/* ── Logo ST/CNSA animé (adapté, format compact) ─────────────────── */
.pnr-logo-aura-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pnr-sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    padding: 3px;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(93, 202, 165, .6));
    transition: filter .3s, transform .3s;
}

.pnr-sidebar-logo:hover {
    filter: drop-shadow(0 0 14px rgba(93, 202, 165, 1));
    transform: scale(1.08);
}

.pnr-logo-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    pointer-events: none;
}

.pnr-logo-ring-1 {
    width: 46px; height: 46px;
    border-width: 1.5px;
    border-color: rgba(93, 202, 165, .7) rgba(93, 202, 165, .08) rgba(93, 202, 165, .7) rgba(93, 202, 165, .08);
    animation: pnrSpinRing 4s linear infinite;
}

.pnr-logo-ring-2 {
    width: 52px; height: 52px;
    border-width: 1px;
    border-style: dashed;
    border-color: rgba(159, 225, 203, .4);
    animation: pnrSpinRing 8s linear infinite reverse;
}

.pnr-logo-ring-orbit {
    position: absolute;
    width: 52px; height: 52px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pnrSpinRing 6s linear infinite;
    pointer-events: none;
}

.pnr-logo-ring-orbit::before {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--pnr-accent);
    box-shadow: 0 0 6px 2px rgba(93, 202, 165, .9);
}

.pnr-logo-pulse {
    position: absolute;
    width: 42px; height: 42px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 202, 165, .35) 0%, rgba(93, 202, 165, .1) 50%, transparent 70%);
    animation: pnrLogoPulse 2.8s ease-in-out infinite;
    z-index: 1;
}

.pnr-logo-halo {
    position: absolute;
    width: 42px; height: 42px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(93, 202, 165, .4);
    animation: pnrHaloExpand 2.8s ease-out infinite;
    pointer-events: none;
}

.pnr-logo-halo-2 { animation-delay: 1.4s; }

@keyframes pnrSpinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pnrLogoPulse {
    0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.28); }
}

@keyframes pnrHaloExpand {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: .7; }
    100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

.pnr-sidebar-nav {
    flex: 1;
    padding: 8px 8px 0;
    overflow-y: auto;
}

.pnr-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--pnr-sidebar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: background .15s, color .15s;
}

.pnr-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.pnr-nav-link.actif {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-weight: 700;
}

.pnr-nav-icon {
    font-size: 14px;
    opacity: .9;
}

.pnr-nav-notif {
    margin: 4px 8px 8px;
    position: relative;
}

.pnr-badge-count {
    margin-left: auto;
    background: var(--pnr-danger);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
}

.pnr-sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.pnr-sidebar-user-label {
    color: var(--pnr-sidebar-text);
    font-size: 10px;
    margin-bottom: 2px;
}

.pnr-sidebar-user-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pnr-sidebar-user-role {
    color: var(--pnr-accent);
    font-size: 10px;
}

/* ---------------------------------------------------------------- */
/* Topbar                                                             */
/* ---------------------------------------------------------------- */

.pnr-topbar {
    position: fixed;
    top: 0;
    left: var(--pnr-sidebar-width);
    right: 0;
    height: var(--pnr-topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--pnr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 90;
}

.pnr-topbar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--pnr-text);
}

.pnr-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pnr-bell-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pnr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    transition: background .15s;
}

.pnr-bell-btn:hover { background: #E6F1FB; }

.pnr-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pnr-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pnr-profile-wrap {
    position: relative;
}

.pnr-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 24px;
    border: 1.5px solid var(--pnr-border);
    background: #fff;
    cursor: pointer;
    transition: box-shadow .15s;
}

.pnr-profile-pill:hover {
    box-shadow: 0 0 0 3px rgba(10, 74, 46, .1);
}

.pnr-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E6F1FB;
    color: var(--pnr-sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.pnr-avatar-lg { width: 40px; height: 40px; font-size: 13px; }

.pnr-profile-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.pnr-profile-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--pnr-text);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pnr-profile-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--pnr-sidebar-bg);
    margin-top: 1px;
}

.pnr-chevron {
    font-size: 10px;
    color: #aaa;
}

.pnr-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--pnr-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    overflow: hidden;
    z-index: 300;
}

.pnr-profile-dropdown.ouvert { display: block; }

.pnr-dropdown-head {
    padding: 14px 16px;
    background: var(--pnr-sidebar-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pnr-dropdown-name { font-size: 13px; font-weight: 700; color: #fff; }
.pnr-dropdown-email { font-size: 10px; color: var(--pnr-sidebar-text); margin-top: 2px; }

.pnr-dropdown-badge {
    padding: 10px 16px;
    border-bottom: 1px solid #f0ede8;
}

.pnr-role-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0ede8;
    color: var(--pnr-muted);
}

.pnr-dropdown-actions { padding: 6px 8px; }

.pnr-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--pnr-danger);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.pnr-dropdown-logout:hover { background: #FCEBEB; }

/* ---------------------------------------------------------------- */
/* Layout général                                                    */
/* ---------------------------------------------------------------- */

.pnr-content-wrap {
    margin-left: var(--pnr-sidebar-width);
    padding-top: var(--pnr-topbar-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pnr-main {
    flex: 1 0 auto;
    padding: 24px 32px;
    overflow-x: hidden;
}

.pnr-main-public {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------- */
/* Composants                                                        */
/* ---------------------------------------------------------------- */

.card-pnr {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-pnr:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 74, 46, .14);
    border-color: rgba(10, 74, 46, .18);
}

.card-pnr .card-header {
    background-color: var(--pnr-sidebar-bg);
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--pnr-sidebar-bg);
    border-color: var(--pnr-sidebar-bg);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #073a23 !important;
    border-color: #073a23 !important;
}

.btn-outline-primary {
    color: var(--pnr-sidebar-bg);
    border-color: var(--pnr-sidebar-bg);
}

.btn-outline-primary:hover {
    background-color: var(--pnr-sidebar-bg);
    border-color: var(--pnr-sidebar-bg);
}

a { color: var(--pnr-sidebar-bg); }

.btn {
    cursor: pointer;
}

.kpi-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: #1a1a2e;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 148px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(0, 0, 0, .08);
}

.kpi-card.bg-primary:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(10, 74, 46, .22); }
.kpi-card.bg-success:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(93, 202, 165, .28); }
.kpi-card.bg-warning:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(216, 90, 48, .22); }
.kpi-card.bg-info:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(13, 202, 240, .22); }
.kpi-card.bg-secondary:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(108, 117, 125, .22); }
.kpi-card.bg-dark:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .16), 0 0 0 3px rgba(33, 37, 41, .22); }

.ph-icon {
    display: inline-block;
    flex-shrink: 0;
}

.pnr-footer {
    flex: 0 0 auto;
    padding: 6px 32px;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: var(--pnr-muted);
    border-top: 1px solid var(--pnr-border);
    background: #fff;
}

body.pnr-public .pnr-footer {
    text-align: center;
}

@media (max-width: 900px) {
    .pnr-content-wrap { margin-left: 72px; }
}

.kpi-card.bg-primary { background-color: #fff !important; border-color: var(--pnr-sidebar-bg) !important; color: var(--pnr-sidebar-bg) !important; }
.kpi-card.bg-success { background-color: #fff !important; border-color: var(--pnr-accent) !important; color: #0d6b4d !important; }
.kpi-card.bg-warning { background-color: #fff !important; border-color: var(--pnr-warning) !important; color: var(--pnr-warning) !important; }
.kpi-card.bg-info { background-color: #fff !important; border-color: #0dcaf0 !important; color: #055160 !important; }
.kpi-card.bg-secondary { background-color: #fff !important; border-color: #6c757d !important; color: #41464b !important; }
.kpi-card.bg-dark { background-color: #fff !important; border-color: #212529 !important; color: #212529 !important; }

.badge-raci-R { background-color: #C6E0B4; color: #375623; }
.badge-raci-A { background-color: #F8CBAD; color: #833C00; }
.badge-raci-C { background-color: #BDD7EE; color: #1F4E78; }
.badge-raci-I { background-color: #FFE699; color: #7F6000; }
.badge-raci-RA {
    background: #8E44AD;
    color: #FFFFFF;
}

.pnr-raci-section-row td {
    background-color: #eef3ee !important;
    color: var(--pnr-sidebar-bg);
}

.pnr-raci-section-label {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 530px;
    min-width: 530px;
    max-width: 530px;
    box-shadow: 2px 0 4px -2px rgba(0, 0, 0, .12);
}

.raci-cell {
    width: 42px;
    text-align: center;
    cursor: pointer;
}

.raci-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
}

.pnr-raci-scroll {
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: auto;
    cursor: pointer;
}

/* Ascenseurs (vertical et horizontal) des matrices : curseur "main" au survol.
   Ne fonctionne que sur les navigateurs à moteur WebKit/Blink (Chrome, Edge,
   Safari) — Firefox ne permet pas de styler le curseur de sa scrollbar. */
.pnr-raci-scroll::-webkit-scrollbar,
.pnr-raci-scroll::-webkit-scrollbar-thumb,
.pnr-raci-scroll::-webkit-scrollbar-track,
.pnr-raci-scroll::-webkit-scrollbar-corner {
    cursor: pointer;
}

table.table-raci thead th {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .75rem;
    vertical-align: middle;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #f8f9fa;
}

.raci-col-ref, .raci-col-activite, .raci-col-statut {
    position: sticky;
    z-index: 1;
    background-color: #fff;
}

.raci-col-ref {
    left: 0;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

.raci-col-activite {
    left: 60px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
}

.raci-col-statut {
    left: 380px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Trait de séparation entre la colonne figée "Statut" et les colonnes
   d'acteurs qui défilent. On utilise un pseudo-élément positionné à
   l'intérieur de la cellule (et non un box-shadow qui déborderait de la
   boîte) car les navigateurs peuvent rogner tout ce qui dépasse le cadre
   d'un élément en position: sticky à l'intérieur d'un conteneur avec
   overflow: auto — un box-shadow y devient alors invisible. */
.raci-col-statut::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background-color: #dee2e6;
    pointer-events: none;
}

/* Cellules d'intersection (en-tête ET colonne figée) : priment sur les deux règles ci-dessus */
table.table-raci thead th.raci-col-ref,
table.table-raci thead th.raci-col-activite,
table.table-raci thead th.raci-col-statut {
    position: sticky;
    top: 0;
    writing-mode: horizontal-tb;
    vertical-align: middle;
    z-index: 6;
    background-color: #f8f9fa;
}

.badge-statut-A_FAIRE   { background-color: var(--pnr-muted); }
.badge-statut-EN_COURS  { background-color: #378ADD; }
.badge-statut-FAIT      { background-color: var(--pnr-accent); color: #073a23; }
.badge-statut-EN_RETARD { background-color: var(--pnr-danger); }

@media (max-width: 900px) {
    .pnr-sidebar { width: 72px; }
    .pnr-sidebar-title, .pnr-sidebar-tag, .pnr-nav-link span:last-child,
    .pnr-sidebar-user-name, .pnr-sidebar-user-role, .pnr-sidebar-user-label { display: none; }
    .pnr-topbar { left: 72px; }
    .pnr-main { margin-left: 72px; }
}

/* ===================== Page de connexion (deux panneaux) ===================== */
body.pnr-login-page {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Le pied de page global (commun à toute l'appli) est masqué sur les pages
   de connexion : un pied de page dédié est affiché à la place, uniquement
   dans la colonne blanche de droite (voir .pnr-login-footer ci-dessous). */
body.pnr-login-page .pnr-footer {
    display: none;
}

.pnr-main-login {
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
    min-height: 100vh;
    display: flex;
}

.pnr-login-split {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.pnr-login-left {
    flex: 1 1 55%;
    background: radial-gradient(circle at 15% 20%, #0f5a38 0%, var(--pnr-sidebar-bg) 55%, #063421 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pnr-login-left::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.pnr-login-left::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
}

.pnr-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.pnr-login-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,.08);
    padding: 6px;
}

.pnr-login-brand-text { line-height: 1.2; }
.pnr-login-brand-title { font-weight: 800; font-size: 15px; }
.pnr-login-brand-sub { font-size: 11px; color: var(--pnr-sidebar-text); letter-spacing: .04em; }

.pnr-login-hero {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.pnr-login-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.pnr-login-hero h1 .accent { color: var(--pnr-accent); }

.pnr-login-hero p {
    font-size: 15px;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
}

.pnr-login-stats {
    display: flex;
    gap: 28px 36px;
    row-gap: 24px;
    flex-wrap: wrap;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.pnr-login-stat-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: var(--pnr-accent);
    line-height: 1;
}

.pnr-login-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 4px;
}

.pnr-login-right {
    flex: 1 1 45%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
}

.pnr-login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 32px;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: var(--pnr-muted);
    border-top: 1px solid var(--pnr-border);
}

.pnr-login-form-wrap { width: 100%; max-width: 380px; }

.pnr-login-form-wrap h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--pnr-text);
    margin-bottom: 6px;
}

.pnr-login-form-wrap > p {
    color: var(--pnr-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.pnr-login-field { margin-bottom: 18px; }

.pnr-login-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--pnr-text);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.pnr-login-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pnr-border);
    border-radius: 10px;
    padding: 0 14px;
    background: #fbfbf9;
    box-shadow: 0 1px 2px rgba(16, 24, 20, .04);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pnr-login-input-wrap:focus-within {
    border-color: var(--pnr-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(93, 202, 165, .18);
}

.pnr-login-input-wrap i {
    color: var(--pnr-muted);
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: color .15s;
}

.pnr-login-input-wrap:focus-within i { color: var(--pnr-accent); }

.pnr-login-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    padding: 13px 10px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14.5px;
    color: var(--pnr-text);
}

.pnr-login-input-wrap input::placeholder { color: #b7bdb9; }

/* Neutralise le fond bleu/jaune imposé par l'auto-remplissage du navigateur,
   pour que le champ garde l'apparence du design même une fois pré-rempli. */
.pnr-login-input-wrap input:-webkit-autofill,
.pnr-login-input-wrap input:-webkit-autofill:hover,
.pnr-login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pnr-text);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-in-out 0s;
}

.pnr-login-toggle-pw {
    background: none;
    border: none;
    color: var(--pnr-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.pnr-login-toggle-pw:hover {
    background: #eef3ee;
    color: var(--pnr-sidebar-bg);
}

.pnr-login-submit {
    width: 100%;
    background: var(--pnr-sidebar-bg);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 6px;
    transition: background .15s;
}

.pnr-login-submit:hover { background: #063421; color: #fff; }

.pnr-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 12px;
}

.pnr-login-links a { color: var(--pnr-sidebar-bg); text-decoration: none; font-weight: 600; }
.pnr-login-links a:hover { text-decoration: underline; }
.pnr-login-version { color: var(--pnr-muted); }

.pnr-login-demo {
    margin-top: 26px;
    background: #eef8f3;
    border: 1px solid #d5ece2;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
}

.pnr-login-demo strong { display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: .05em; color: var(--pnr-sidebar-bg); text-transform: uppercase; }
.pnr-login-demo div { color: var(--pnr-text); margin-top: 2px; }
.pnr-login-demo code { background: #fff; border: 1px solid var(--pnr-border); border-radius: 4px; padding: 1px 6px; }

@media (max-width: 900px) {
    .pnr-login-split { flex-direction: column; }
    .pnr-login-left { padding: 32px; }
    .pnr-login-hero h1 { font-size: 30px; }
    .pnr-login-stats { gap: 24px; }
}

/* Libellés de champs de formulaire en gras, dans toute l'application */
.form-label {
    font-weight: 700;
}

/* Légende "Note sur 4" (ciblage géographique) */
.pnr-legende-note {
    background: #eef3ee;
    border: 1px solid #d5e3da;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--pnr-text);
    min-width: 220px;
}

.pnr-legende-note-titre {
    font-weight: 700;
    color: var(--pnr-sidebar-bg);
    margin-bottom: 4px;
}

/* Force un ascenseur vertical sur les longs formulaires en modale
   (le mécanisme .modal-dialog-scrollable de Bootstrap peut être
   contourné par le contenu, notamment sur les formulaires très longs). */
.pnr-modal-body-scroll {
    max-height: 65vh;
    overflow-y: auto !important;
}

/* ===== Page de connexion : bloc institutionnel + logo animé agrandi ===== */
.pnr-login-institution {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .03em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 18px;
}

.pnr-login-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pnr-logo-aura-wrapper--lg {
    width: 100px;
    height: 100px;
}

.pnr-login-logo--lg {
    width: 76px;
    height: 76px;
    padding: 6px;
}

.pnr-logo-ring-1--lg {
    width: 88px;
    height: 88px;
    border-width: 2.5px;
}

.pnr-logo-ring-2--lg,
.pnr-logo-ring-orbit--lg {
    width: 100px;
    height: 100px;
}

.pnr-logo-ring-2--lg { border-width: 1.5px; }

.pnr-logo-ring-orbit--lg::before {
    width: 7px;
    height: 7px;
    top: -3px;
}

.pnr-logo-pulse--lg,
.pnr-logo-halo--lg {
    width: 80px;
    height: 80px;
}

/* Photo de profil (remplace les initiales quand une photo est définie) */
.pnr-avatar-photo {
    object-fit: cover;
}

.pnr-profil-photo-apercu {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pnr-dropdown-link {
    display: block;
    padding: 8px 4px;
    color: var(--pnr-text);
    text-decoration: none;
    font-size: 13px;
}

.pnr-dropdown-link:hover {
    color: var(--pnr-sidebar-bg);
}

/* Curseur "main" au survol des lignes de tous les tableaux et matrices
   (listes, matrices RACI, etc.) pour indiquer qu'elles sont interactives. */
.table tbody tr,
table.table-raci tbody tr {
    cursor: pointer;
}

/* Badge (rôle, sigle d'acteur, etc.) qui passe en bleu au survol de sa ligne. */
.table-hover tbody tr:hover .role-badge {
    background-color: #0d6efd !important;
    color: #fff !important;
}
