:root {
    --lntpb-primary: #0b4f8a;
    --lntpb-primary-dark: #083c69;
    --lntpb-accent: #f39c12;
    --lntpb-dark: #0d1b2a;
    --lntpb-light: #f4f7fb;
}

* { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

body {
    background: #fff;
    color: #1f2937;
    line-height: 1.6;
}

a { text-decoration: none; }

/* ====== Bandeau République du Niger ====== */
.state-banner {
    background: #fff;
    border-bottom: 1px solid #e7ecf3;
    font-size: .78rem;
    padding: .35rem 0;
    color: #334155;
}
.state-flag {
    display: inline-flex;
    flex-direction: column;
    width: 28px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    overflow: hidden;
}
.state-flag .band { flex: 1; display: block; position: relative; }
.state-flag .band-orange { background: #e05206; }
.state-flag .band-white { background: #fff; position: relative; }
.state-flag .band-white::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 5px; height: 5px;
    background: #e05206;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.state-flag .band-green { background: #0d7d2d; }
.state-text strong { color: #0f172a; }
.state-text small { color: #64748b; margin-left: .5rem; font-style: italic; }
.state-ministry { color: #475569; font-weight: 500; }

/* ====== Header ====== */
.site-header .topbar {
    background: var(--lntpb-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

.navbar-brand .brand-mark {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.4rem;
}

.navbar-brand .brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand .brand-text strong { font-size: 1.15rem; color: var(--lntpb-primary-dark); letter-spacing: .02em; }
.navbar-brand .brand-text small { font-size: 0.72rem; line-height: 1; }

.footer-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 3px;
    border-radius: 6px;
    flex-shrink: 0;
}

.navbar .nav-link {
    color: #37425a;
    font-weight: 500;
    position: relative;
    padding-inline: 0.9rem !important;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--lntpb-primary);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
    height: 2px;
    background: var(--lntpb-accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* ====== Buttons ====== */
.btn-primary {
    background: var(--lntpb-primary);
    border-color: var(--lntpb-primary);
    font-weight: 500;
    letter-spacing: .02em;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--lntpb-primary-dark);
    border-color: var(--lntpb-primary-dark);
}

.btn-accent {
    background: var(--lntpb-accent);
    border-color: var(--lntpb-accent);
    color: #fff;
}
.btn-accent:hover { background: #d9860a; color: #fff; }

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

/* ====== Hero ====== */
.hero {
    position: relative;
    background: #083c69;
    color: #fff;
    padding: 5.5rem 0 6.5rem;
    overflow: hidden;
    isolation: isolate;
}

/* Fond image avec effet Ken Burns */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: kenburns 28s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes kenburns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    50% {
        transform: scale(1.18) translate(-2%, -1.5%);
    }
    100% {
        transform: scale(1.12) translate(2%, 1%);
    }
}

/* Overlay bleu pour lisibilité du texte */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(8,60,105,0.92) 0%, rgba(11,79,138,0.82) 55%, rgba(8,60,105,0.88) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><path d=%22M0 50h100M50 0v100%22 stroke=%22%23ffffff11%22 stroke-width=%221%22/></svg>');
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: auto -10% -30% auto;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(243,156,18,0.28), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-bg img { animation: none; transform: scale(1.05); }
}

.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 620px; }

.hero-stats {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(4px);
}
.hero-stats .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--lntpb-accent); }
.hero-stats .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }

/* Hero badge + milestone */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: .4rem 1rem;
    background: rgba(243,156,18,0.15);
    color: #fbbf24;
    border: 1px solid rgba(243,156,18,0.35);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero-milestone {
    text-align: center;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: .5rem;
}
.milestone-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--lntpb-accent);
    line-height: 1;
    letter-spacing: -.04em;
    display: inline-flex;
    align-items: flex-start;
}
.milestone-number span { font-size: 2rem; margin-top: .5rem; }
.milestone-label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.85);
    margin-top: .25rem;
}

/* ====== Section ====== */
section.block { padding: 5rem 0; }
section.block-light { background: var(--lntpb-light); }

.section-title {
    font-weight: 700;
    color: var(--lntpb-primary-dark);
    margin-bottom: .5rem;
}

.section-eyebrow {
    color: var(--lntpb-accent);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: .5rem;
    display: inline-block;
}

/* ====== Service card ====== */
.service-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    padding: 1.6rem;
    height: 100%;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lntpb-primary), var(--lntpb-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(11,79,138,0.25);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
    width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e7f0fa, #fff);
    color: var(--lntpb-primary);
    border-radius: 12px;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card .badge-cat {
    font-size: .7rem;
    background: #eef4fc;
    color: var(--lntpb-primary);
    padding: .3rem .6rem;
    border-radius: 999px;
    font-weight: 500;
}

/* ====== News ====== */
.news-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
    height: 100%;
}
.news-card:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); transform: translateY(-3px); }
.news-card .news-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35); font-size: 3rem;
    overflow: hidden;
    position: relative;
}
.news-card .news-thumb.has-image { background: #1e293b; }
.news-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-card:hover .news-thumb.has-image img { transform: scale(1.05); }

/* Image featured sur la page détail d'actualité */
.featured-image {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(11,79,138,0.3);
    background: #1e293b;
    aspect-ratio: 16/7;
    max-height: 480px;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card .news-body { padding: 1.25rem; }
.news-card h5 { color: var(--lntpb-primary-dark); font-weight: 600; }

/* ====== Footer ====== */
.site-footer {
    background: var(--lntpb-dark);
    color: rgba(255,255,255,0.75);
}
.site-footer .footer-title { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--lntpb-accent); }

/* ====== Admin shell ====== */
:root {
    --admin-sidebar-w: 258px;
    --admin-bg: #eef2f7;
    --admin-border: #e5eaf1;
}
.admin-body {
    background: var(--admin-bg);
    color: #1f2937;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    background: linear-gradient(180deg, #0d1b2a 0%, #0a1522 100%);
    color: rgba(255,255,255,0.85);
    width: var(--admin-sidebar-w);
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1030;
        border-right: 1px solid rgba(255,255,255,0.06);
    }
    .admin-content { margin-left: var(--admin-sidebar-w); }
}
.admin-sidebar .sidebar-brand {
    display: flex; align-items: center; gap: .7rem;
    color: #fff; font-weight: 700;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand-title { font-size: 1rem; font-weight: 700; }
.sidebar-brand-sub { font-size: .7rem; font-weight: 400; color: rgba(255,255,255,0.5); letter-spacing: .03em; }

.admin-nav { flex: 1; padding: 1rem .75rem; overflow-y: auto; }
.admin-nav .nav-section {
    display: block;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
    color: rgba(255,255,255,0.38);
    font-weight: 600;
    padding: .5rem .75rem .35rem;
    margin-top: .35rem;
}
.admin-sidebar .nav-link {
    display: flex; align-items: center; gap: .8rem;
    color: rgba(255,255,255,0.72);
    padding: .62rem .8rem;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 500;
    margin-bottom: 1px;
    transition: background .15s ease, color .15s ease;
}
.admin-sidebar .nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .9; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(243,156,18,0.22), rgba(243,156,18,0.05));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--lntpb-accent);
}
.admin-sidebar .nav-badge {
    margin-left: auto;
    background: var(--lntpb-accent);
    color: #1a1205;
    font-size: .7rem; font-weight: 700;
    min-width: 20px; height: 20px;
    padding: 0 .35rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-footer {
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .nav-link {
    display: flex; align-items: center; gap: .8rem;
    color: rgba(255,255,255,0.7);
    padding: .55rem .8rem;
    border-radius: 9px;
    font-size: .9rem;
    width: 100%;
    background: transparent; border: 0; text-align: left;
}
.sidebar-footer .nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-footer .btn-logout:hover { background: rgba(220,38,38,0.18); color: #fecaca; }

/* ---- Topbar ---- */
.admin-content { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--admin-border);
    padding: .7rem 1.5rem;
    min-height: 62px;
}
.topbar-title { font-size: 1.15rem; font-weight: 700; color: var(--lntpb-primary-dark); margin: 0; }
.topbar-toggle { border-radius: 9px; }
.btn-user {
    display: inline-flex; align-items: center; gap: .55rem;
    background: #f1f5f9; border: 1px solid var(--admin-border);
    border-radius: 999px; padding: .3rem .75rem .3rem .35rem;
    font-size: .88rem; font-weight: 500; color: #334155;
}
.btn-user:hover { background: #e6edf5; }
.btn-user::after { margin-left: .1rem; }

.admin-main { flex: 1; padding: 1.75rem; }
@media (max-width: 575.98px) { .admin-main { padding: 1.1rem; } }

.admin-alert {
    border: 0; border-radius: 12px;
    box-shadow: 0 6px 20px -10px rgba(0,0,0,0.2);
    display: flex; align-items: center;
}
.admin-alert.alert-success { background: #dcfce7; color: #166534; }
.admin-alert.alert-danger { background: #fee2e2; color: #991b1b; }

/* ---- Cards ---- */
.admin-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--lntpb-primary);
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.stat-card.accent { border-left-color: var(--lntpb-accent); }
.stat-card.success { border-left-color: #16a34a; }
.stat-card.danger { border-left-color: #dc2626; }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--lntpb-primary-dark); }
.stat-card .stat-label { color: #64748b; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* ====== Page header ====== */
.page-hero {
    background: linear-gradient(135deg, var(--lntpb-primary-dark), var(--lntpb-primary));
    color: #fff;
    padding: 3.5rem 0 3rem;
}
.page-hero h1 { font-weight: 700; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb-item.active { color: var(--lntpb-accent); }

/* ====== Forms ====== */
.form-control:focus, .form-select:focus {
    border-color: var(--lntpb-primary);
    box-shadow: 0 0 0 .2rem rgba(11,79,138,0.15);
}
.form-label { font-weight: 500; color: #374151; }

/* ====== Table ====== */
.table thead { background: #f1f5f9; }
.table thead th { font-weight: 600; color: #334155; border-bottom: 1px solid #e2e8f0; }

/* ====== Utilities ====== */
.status-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
}
.status-pill.nouvelle { background: #dbeafe; color: #1e40af; }
.status-pill.encours { background: #fef3c7; color: #92400e; }
.status-pill.traitee { background: #dcfce7; color: #166534; }
.status-pill.rejetee { background: #fee2e2; color: #991b1b; }

/* ====== Dashboard welcome ====== */
.dashboard-welcome {
    background: linear-gradient(135deg, #fff 0%, #f1f7fd 100%);
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}
.dashboard-welcome h2 { color: var(--lntpb-primary-dark); font-weight: 700; }

/* ====== Stat card improvements ====== */
.stat-card { transition: all .2s ease; position: relative; overflow: hidden; }
.stat-link { color: inherit; text-decoration: none; cursor: pointer; }
.stat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -12px rgba(11,79,138,0.25);
    color: inherit;
}

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.bg-primary-subtle { background: #dbeafe !important; }

/* ====== Avatar ====== */
.avatar-circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ====== Empty state ====== */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}
.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: .75rem;
}
.empty-state h6 { color: #475569; margin-bottom: .25rem; }

/* ====== Message item ====== */
.message-item {
    padding: .75rem;
    border-radius: 8px;
    margin-bottom: .25rem;
    transition: background .15s ease;
    cursor: pointer;
}
.message-item:hover { background: #f8fafc; }
.message-item.unread { background: #eff6ff; border-left: 3px solid var(--lntpb-primary); }
.message-item.unread .fw-semibold { color: var(--lntpb-primary-dark); }

/* ====== Category bar ====== */
.category-bar {
    background: #f8fafc;
    padding: .75rem 1rem;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

/* ====== Info card ====== */
.info-card {
    background: linear-gradient(135deg, #f0f7ff, #fff);
    border-color: #dbeafe;
}

/* ====== Table hover in admin ====== */
.admin-card .table-hover tbody tr:hover { background: #f8fafc; }

/* ====== Buttons light variant ====== */
.btn-light {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
    padding: .6rem .9rem;
    transition: all .15s ease;
}
.btn-light:hover {
    background: #eef4fc;
    border-color: #bfdbfe;
    color: var(--lntpb-primary-dark);
}

/* ====== Admin page header ====== */
.admin-page-header {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-page-header .page-title { font-size: 1.5rem; font-weight: 700; color: var(--lntpb-primary-dark); margin: .15rem 0 0; }
.admin-page-header .page-subtitle { color: #64748b; font-size: .88rem; margin: .15rem 0 0; }

/* Constrain form cards for readability */
.admin-form-card { max-width: 860px; }

/* Segmented filter pills */
.admin-filters { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.admin-filters .filter-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--admin-border);
    background: #fff;
    color: #475569;
    font-size: .85rem; font-weight: 500;
    transition: all .15s ease;
}
.admin-filters .filter-pill:hover { border-color: #bfdbfe; color: var(--lntpb-primary-dark); }
.admin-filters .filter-pill.active {
    background: var(--lntpb-primary); border-color: var(--lntpb-primary); color: #fff;
}
.admin-filters .filter-pill .count {
    background: rgba(0,0,0,0.08); border-radius: 999px; padding: 0 .4rem; font-size: .75rem;
}
.admin-filters .filter-pill.active .count { background: rgba(255,255,255,0.25); }

/* ====== Admin tables ====== */
.admin-card .table { margin-bottom: 0; }
.admin-card .table thead th {
    background: #f8fafc;
    text-transform: uppercase; letter-spacing: .04em;
    font-size: .72rem; font-weight: 600; color: #64748b;
    border-bottom: 1px solid var(--admin-border);
    padding: .7rem .85rem;
}
.admin-card .table tbody td { padding: .8rem .85rem; border-color: #f1f5f9; }
.admin-card .table tbody tr:last-child td { border-bottom: 0; }
.admin-card .table-hover tbody tr:hover { background: #f8fafc; }

/* Row action buttons */
.row-actions { display: inline-flex; gap: .35rem; justify-content: flex-end; }
.row-actions .btn {
    --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .5rem;
    border-radius: 8px; line-height: 1;
}

/* Category badge (admin) */
.badge-cat {
    display: inline-block;
    background: #eff6ff; color: #1d4ed8;
    border: 1px solid #dbeafe;
    padding: .2rem .6rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}

/* Status pill extra states */
.status-pill.nouvelle,
.status-pill.encours { text-transform: capitalize; }

/* Unread message row */
.admin-card .table tbody tr.row-unread { background: #f5f9ff; }
.admin-card .table tbody tr.row-unread:hover { background: #eef4fd; }
.unread-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lntpb-primary); flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(11,79,138,0.12);
}

/* ====== Utility ====== */
.min-width-0 { min-width: 0; }

/* ========================================================
   6 POLES D'EXPERTISE
   ======================================================== */
.pole-card {
    position: relative;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    height: 100%;
    transition: all .25s ease;
    overflow: hidden;
}
.pole-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--lntpb-primary), var(--lntpb-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.pole-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(11,79,138,0.25);
    border-color: transparent;
}
.pole-card:hover::before { transform: scaleX(1); }

.pole-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(11,79,138,0.12);
    letter-spacing: -.02em;
}
.pole-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--lntpb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    transition: transform .3s ease;
}
.pole-card:hover .pole-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    color: #fff;
}
.pole-card h5 {
    color: var(--lntpb-primary-dark);
    font-weight: 700;
    margin-bottom: .5rem;
}

/* ========================================================
   GOUVERNANCE
   ======================================================== */
.governance-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: all .25s ease;
}
.governance-card:hover {
    box-shadow: 0 15px 35px -20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}
.governance-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.governance-card h5 {
    color: var(--lntpb-primary-dark);
    font-weight: 700;
}
.governance-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border-top: 1px dashed #e7ecf3;
    padding-top: 1rem;
}
.governance-list li {
    padding: .25rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.25rem;
}
.governance-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .75em;
    width: 5px; height: 5px;
    background: var(--lntpb-accent);
    border-radius: 50%;
}

/* ========================================================
   TELECHARGEMENTS
   ======================================================== */
.download-card {
    display: flex;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all .25s ease;
}
.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -15px rgba(11,79,138,0.2);
    border-color: transparent;
}
.download-icon {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}
.download-icon.pdf { background: linear-gradient(135deg, #dc2626, #991b1b); }
.download-icon.doc { background: linear-gradient(135deg, #2563eb, #1e40af); }
.download-icon.xls { background: linear-gradient(135deg, #16a34a, #15803d); }
.download-meta {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.download-meta h5 {
    color: var(--lntpb-primary-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ========================================================
   GALERIE DEFILANTE (gallery strip)
   ======================================================== */
.gallery-strip {
    overflow: hidden;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
    border-bottom: 1px solid #e7ecf3;
}
.gallery-track {
    display: flex;
    gap: 1rem;
    animation: scrollGallery 40s linear infinite;
    width: max-content;
}
.gallery-strip:hover .gallery-track { animation-play-state: paused; }

.gallery-item {
    position: relative;
    width: 300px; height: 180px;
    border-radius: 14px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 20px -10px rgba(0,0,0,0.2);
}
.gallery-item i { font-size: 3rem; margin-bottom: .5rem; opacity: .9; }
.gallery-item figcaption {
    font-size: 1rem;
    letter-spacing: .02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.gallery-item i, .gallery-item figcaption { position: relative; z-index: 1; }

.gallery-item.has-photo { background: #1e293b; }
.gallery-item.has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.gallery-item.has-photo::before {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
    z-index: 0;
}
.gallery-item.has-photo figcaption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-size: .9rem;
    text-align: left;
}

.bg-essais   { background: linear-gradient(135deg, #0b4f8a, #1e88e5); }
.bg-geotech  { background: linear-gradient(135deg, #6b4423, #a0522d); }
.bg-chantier { background: linear-gradient(135deg, #f39c12, #d35400); }
.bg-route    { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.bg-batiment { background: linear-gradient(135deg, #16a085, #2ecc71); }
.bg-beton    { background: linear-gradient(135deg, #7f8c8d, #95a5a6); }

@keyframes scrollGallery {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - .5rem)); }
}

/* ========================================================
   DIRECTEUR - section accueil
   ======================================================== */
.director-block {
    padding: 5rem 0;
    background:
        linear-gradient(135deg, rgba(11,79,138,0.03), rgba(243,156,18,0.03)),
        #fff;
    position: relative;
}

.director-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.director-avatar {
    width: 280px; height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem;
    color: rgba(255,255,255,0.6);
    box-shadow: 0 20px 50px -20px rgba(11,79,138,0.5);
    border: 6px solid #fff;
    position: relative;
    overflow: hidden;
}
.director-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.director-avatar::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px dashed rgba(11,79,138,0.2);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.director-caption {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lntpb-accent);
    color: #fff;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px -8px rgba(243,156,18,0.5);
    white-space: nowrap;
    text-align: center;
}
.director-caption strong { display: block; font-size: 1rem; }
.director-caption span { font-size: .75rem; opacity: .9; }

.director-quote {
    position: relative;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--lntpb-primary-dark);
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--lntpb-accent);
    background: #f8fafc;
    border-radius: 0 14px 14px 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.director-quote.big {
    font-size: 1.6rem;
    padding: 2rem 2.5rem;
}
.director-quote .quote-mark {
    position: absolute;
    top: -8px; left: 12px;
    font-size: 2.5rem;
    color: var(--lntpb-accent);
    opacity: .4;
}

/* Page Direction */
.director-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px -15px rgba(11,79,138,0.15);
}
.director-photo-lg {
    height: 320px;
    background: linear-gradient(135deg, var(--lntpb-primary), var(--lntpb-primary-dark));
    color: rgba(255,255,255,0.6);
    font-size: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.director-photo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.director-info { padding: 1.5rem; }
.signature { line-height: 1.3; }

.value-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e7ecf3;
    height: 100%;
    transition: all .25s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -15px rgba(11,79,138,0.2);
    border-color: var(--lntpb-accent);
}
.value-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11,79,138,0.1), rgba(243,156,18,0.1));
    color: var(--lntpb-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.value-card h5 { color: var(--lntpb-primary-dark); font-weight: 600; }

/* ========================================================
   PARTENAIRES (marquee)
   ======================================================== */
.partners-block {
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, #fff, #f4f7fb);
}
.partners-marquee {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.partners-track {
    display: flex;
    gap: 2rem;
    animation: scrollPartners 50s linear infinite;
    width: max-content;
    align-items: center;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }

.partner-logo {
    flex-shrink: 0;
    width: 240px; height: 100px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    padding: .85rem 1rem;
    filter: grayscale(40%);
    opacity: .85;
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.partner-logo:hover {
    transform: translateY(-3px);
    border-color: var(--lntpb-accent);
    box-shadow: 0 12px 30px -12px rgba(11,79,138,0.25);
    filter: grayscale(0);
    opacity: 1;
}
a.partner-logo { text-decoration: none; }

.partner-thumb {
    width: 100px; height: 48px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    padding: 4px 8px;
}
.partner-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes scrollPartners {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1rem)); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-item { width: 220px; height: 140px; }
    .gallery-item i { font-size: 2.2rem; }
    .director-avatar { width: 200px; height: 200px; font-size: 6rem; }
    .director-quote { font-size: 1.1rem; padding: 1.25rem 1.5rem; }
    .director-quote.big { font-size: 1.3rem; padding: 1.5rem 1.75rem; }
    .partner-logo { width: 180px; height: 85px; padding: .5rem .75rem; }
}
