/* ============================================================
   NAJAC PROGRAMME — v1.2
   Charte : rouge #da442b / vert #9fcf69
   Fonts : Roboto + Roboto Slab
   Design : angles vifs, SVG, zéro emoji, zéro border-radius
============================================================ */

:root {
    --np-rouge: #da442b;
    --np-rouge-dark: #b5351f;
    --np-rouge-light: #fdf0ee;
    --np-vert: #9fcf69;
    --np-vert-dark: #7aad4e;
    --np-vert-light: #f4fae9;
    --np-texte: #1a1a1a;
    --np-texte-light: #555;
    --np-gris: #999;
    --np-border: #e8e6e2;
    --np-bg: #fafaf8;
    --np-white: #fff;
    --np-font-display: 'Roboto Slab', Georgia, serif;
    --np-font-body: 'Roboto', -apple-system, system-ui, sans-serif;
}

.np-wrap {
    font-family: var(--np-font-body);
    color: var(--np-texte);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    background: var(--np-bg);
    line-height: 1.6;
}
.np-wrap *, .np-wrap *::before, .np-wrap *::after { box-sizing: border-box; }
.np-wrap img { max-width: 100%; height: auto; }
.np-wrap svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   HERO
============================================================ */
.np-hero {
    background: linear-gradient(145deg, var(--np-rouge) 0%, #c23820 60%, #a82d18 100%);
    color: white; padding: 3.5rem 1.5rem 3rem; text-align: center;
    position: relative; overflow: hidden;
}
.np-hero::before {
    content: ''; position: absolute; top: -50%; left: -30%; width: 160%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(159,207,105,.15) 0%, transparent 60%);
    pointer-events: none;
}
.np-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 5px; background: var(--np-vert); }
.np-hero-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.np-hero-badge {
    display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25); padding: .35rem 1rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 1rem; animation: npFadeDown .6s ease-out;
}
.np-hero-title {
    font-family: var(--np-font-display); font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700; line-height: 1.1; margin: 0 0 .4rem; animation: npFadeDown .6s ease-out .1s both;
    color:#FFF;
}
.np-hero-sub {
    font-size: clamp(.95rem, 2.5vw, 1.15rem); font-weight: 300; opacity: .9;
    margin: 0 0 1.5rem; animation: npFadeDown .6s ease-out .2s both; font-style: italic;
}
.np-hero-dates { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; animation: npFadeUp .6s ease-out .3s both; }
.np-hero-date {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
    padding: .6rem 1.2rem; font-size: .85rem; display: flex; align-items: center; gap: .5rem;
}

/* ============================================================
   NAV
============================================================ */
.np-nav {
    display: flex; justify-content: center; background: var(--np-white);
    border-bottom: 2px solid var(--np-border); position: sticky; top: 0;
    z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.np-nav-btn {
    flex: 1; max-width: 220px; padding: 1rem .5rem; background: none; border: none;
    font-family: var(--np-font-body); font-size: .88rem; font-weight: 500;
    color: var(--np-texte-light); cursor: pointer; position: relative;
    transition: color .2s; display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.np-nav-icon { display: flex; align-items: center; justify-content: center; }
.np-nav-btn:hover { color: var(--np-rouge); }
.np-nav-btn.active { color: var(--np-rouge); font-weight: 700; }
.np-nav-btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 20%; right: 20%;
    height: 3px; background: var(--np-rouge);
}
.np-nav-download {
    text-decoration: none !important; color: var(--np-white) !important;
    background: var(--np-rouge) !important; font-weight: 600 !important;
    border-radius: 0; transition: background .2s, transform .15s;
}
.np-nav-download:hover {
    background: var(--np-rouge-dark) !important; color: var(--np-white) !important;
    transform: translateY(-1px);
}
.np-nav-download .np-nav-icon svg { stroke: var(--np-white); }

/* ============================================================
   MAIN
============================================================ */
.np-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
.np-tab { display: none; }
.np-tab-active { display: block; animation: npFadeUp .4s ease-out; }

.np-section-title {
    font-family: var(--np-font-display); font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: var(--np-texte); text-align: center; margin: 0 0 .4rem; font-weight: 700;
}
.np-section-desc {
    text-align: center; color: var(--np-texte-light); font-size: .92rem;
    margin: 0 auto 1.5rem; max-width: 600px; line-height: 1.5;
}

/* ============================================================
   STATS
============================================================ */
.np-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2rem; }
.np-stat { background: var(--np-white); border: 1.5px solid var(--np-border); padding: 1rem .5rem; text-align: center; animation: npFadeUp .5s ease-out both; }
.np-stat:nth-child(2) { animation-delay: .1s; }
.np-stat:nth-child(3) { animation-delay: .2s; }
.np-stat-num { font-family: var(--np-font-display); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--np-rouge); font-weight: 700; }
.np-stat-lbl { font-size: .75rem; color: var(--np-gris); margin-top: .1rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }

/* ============================================================
   FILTERS
============================================================ */
.np-filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.np-pill {
    padding: .45rem 1rem; border: 1.5px solid var(--np-border); background: var(--np-white);
    font-family: var(--np-font-body); font-size: .82rem; font-weight: 500;
    color: var(--np-texte-light); cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: .35rem;
}
.np-pill:hover { border-color: var(--np-rouge); color: var(--np-rouge); }
.np-pill.active { background: var(--np-rouge); color: white; border-color: var(--np-rouge); }
.np-pill.active svg { stroke: white; }
.np-expand-bar { display: flex; justify-content: flex-end; gap: .75rem; margin-bottom: .75rem; }
.np-expand-btn {
    background: none; border: none; font-family: var(--np-font-body); font-size: .8rem;
    color: var(--np-gris); cursor: pointer; padding: .3rem 0; transition: color .2s;
    text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
}
.np-expand-btn:hover { color: var(--np-rouge); }

/* ============================================================
   ACCORDION
============================================================ */
.np-accordion {
    background: var(--np-white); margin-bottom: .75rem; border: 1.5px solid var(--np-border);
    overflow: hidden; transition: border-color .25s, box-shadow .25s; animation: npFadeUp .5s ease-out both;
}
.np-accordion:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.np-accordion.np-hidden { display: none; }

.np-acc-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; background: none; border: none; cursor: pointer;
    font-family: var(--np-font-body); transition: background .2s;
}
.np-acc-header:hover { background: rgba(0,0,0,.015); }
.np-acc-header.open { border-bottom: 1px solid var(--np-border); }
.np-acc-left { display: flex; align-items: center; gap: .75rem; }
.np-acc-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--accent); color: white; flex-shrink: 0;
}
.np-acc-icon svg { stroke: white; }
.np-acc-label { font-size: 1.02rem; font-weight: 600; color: var(--np-texte); text-align: left; }
.np-acc-right { display: flex; align-items: center; gap: .75rem; }
.np-acc-badge { font-size: .68rem; font-weight: 700; color: white; padding: .2rem .6rem; background: var(--accent); white-space: nowrap; }
.np-chevron { color: var(--np-gris); transition: transform .3s ease; display: flex; }
.np-acc-header.open .np-chevron { transform: rotate(180deg); }
.np-acc-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.np-acc-content { padding: 1.25rem; }
.np-acc-intro { font-size: .9rem; color: var(--np-texte-light); line-height: 1.55; margin: 0 0 1rem; font-style: italic; padding-left: .75rem; border-left: 3px solid var(--accent); }

/* INNER TABS */
.np-tabs-inner { display: flex; gap: .5rem; margin-bottom: 1rem; }
.np-tab-btn {
    flex: 1; padding: .6rem .75rem; border: 1.5px solid var(--np-border); background: var(--np-white);
    font-family: var(--np-font-body); font-size: .82rem; font-weight: 500; color: var(--np-texte-light);
    cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.np-tab-btn:hover { border-color: var(--accent); color: var(--np-texte); }
.np-tab-btn.active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
.np-tab-btn.active svg { stroke: white; }
.np-inner-panel { display: none; animation: npFadeLeft .3s ease-out; }
.np-inner-active { display: block; }

/* LISTS */
.np-list ul, .np-list ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.np-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; line-height: 1.55; color: var(--np-texte); animation: npFadeLeft .3s ease-out both; }
.np-list-props li::before { content: ''; display: inline-block; width: 8px; height: 8px; min-width: 8px; background: var(--accent); margin-top: .45rem; flex-shrink: 0; }
.np-list-bilan li::before { content: '✓'; color: var(--np-vert); font-weight: 700; font-size: 1rem; min-width: 16px; flex-shrink: 0; }
.np-list p { font-size: .9rem; line-height: 1.55; margin: 0 0 .5rem; }
.np-empty-hint { font-size: .85rem; color: var(--np-gris); font-style: italic; }

/* ============================================================
   CANDIDATS — TÊTE DE LISTE
============================================================ */
.np-lead {
    display: grid; grid-template-columns: 1fr 1.4fr;
    margin: 1.5rem 0 2.5rem; background: var(--np-white);
    border: 1.5px solid var(--np-border); border-left: 5px solid var(--np-vert);
    overflow: hidden; min-height: 380px;
    box-shadow: 0 8px 40px rgba(0,0,0,.07);
    animation: npFadeUp .6s ease-out both;
}
.np-lead-img { position: relative; overflow: hidden; }
.np-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.np-lead:hover .np-lead-img img { transform: scale(1.03); }
.np-lead-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30%;
    background: linear-gradient(transparent, rgba(0,0,0,.2)); pointer-events: none;
}
.np-lead-placeholder {
    width: 100%; height: 100%; min-height: 300px;
    background: linear-gradient(135deg, var(--np-rouge-light), var(--np-vert-light));
    display: flex; align-items: center; justify-content: center; color: var(--np-gris);
}
.np-lead-badge {
    position: absolute; top: 18px; left: 18px; background: var(--np-rouge); color: white;
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    padding: 8px 18px; z-index: 5; display: flex; align-items: center; gap: 6px;
}
.np-lead-badge svg { stroke: white; }
.np-lead-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.np-lead-role {
    font-size: .72rem; color: var(--np-vert-dark); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: .5rem;
}
.np-lead-name { font-family: var(--np-font-display); font-size: 1.8rem; color: var(--np-texte); margin: 0 0 .8rem; line-height: 1.15; font-weight: 700; }
.np-lead-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .85rem; color: var(--np-texte-light); margin-bottom: 1rem; }
.np-lead-meta span { display: flex; align-items: center; gap: 4px; }
.np-lead-bio { font-size: .92rem; color: var(--np-texte-light); line-height: 1.7; }
.np-lead-bio p { margin: 0 0 .6rem; }

/* ============================================================
   CANDIDATS — GRILLE ÉQUIPE
============================================================ */
.np-equipe-head { text-align: center; margin: 2rem 0 1.5rem; }
.np-equipe-head h3 {
    font-family: var(--np-font-display); font-size: 1.5rem; color: var(--np-texte);
    margin: 0 0 .5rem; font-weight: 700;
}
.np-equipe-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--np-rouge), var(--np-vert)); margin: 0 auto; }

.np-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.np-card {
    background: var(--np-white); border: 1.5px solid var(--np-border);
    overflow: hidden; cursor: pointer; position: relative;
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    animation: npFadeUp .5s ease-out both;
}
.np-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
    border-color: var(--np-vert);
}
.np-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--np-vert); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.np-card:hover::after { transform: scaleX(1); }

.np-card-img { position: relative; height: 280px; overflow: hidden; }
.np-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.np-card:hover .np-card-img img { transform: scale(1.05); }
.np-card-placeholder {
    width: 100%; height: 100%; background: linear-gradient(135deg, var(--np-rouge-light), var(--np-vert-light));
    display: flex; align-items: center; justify-content: center; color: var(--np-gris);
}

.np-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
    background: var(--np-white); padding: 12px 16px; border-top: 3px solid var(--np-vert);
}
.np-card-name { font-family: var(--np-font-display); font-size: 1.1rem; color: var(--np-texte); margin: 0; font-weight: 700; }
.np-card-role { font-size: .68rem; font-weight: 700; color: var(--np-vert-dark); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; display: block; }

.np-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.np-card-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .78rem; color: var(--np-texte-light); margin-bottom: .6rem; }
.np-card-meta span { display: flex; align-items: center; gap: 3px; }
.np-card-excerpt { font-size: .84rem; color: #6a6a6a; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

.np-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--np-border); }
.np-card-cta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--np-vert-dark); font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .5px; transition: gap .25s;
}
.np-card:hover .np-card-cta { gap: 10px; }

/* ============================================================
   MODAL
============================================================ */
.np-modal {
    display: none; position: fixed; z-index: 99999; inset: 0; overflow: auto;
    background: rgba(0,0,0,.82);
}
.np-modal.active {
    display: flex; align-items: center; justify-content: center;
    animation: npFade .25s ease;
}
@keyframes npFade { from { opacity: 0; } to { opacity: 1; } }

.np-modal-box {
    background: var(--np-white); margin: 20px; max-width: 900px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 10px 60px rgba(0,0,0,.35); animation: npSlideUp .3s ease;
}
@keyframes npSlideUp { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

.np-modal-close {
    position: absolute; right: 14px; top: 14px; z-index: 10;
    width: 40px; height: 40px; background: rgba(0,0,0,.45);
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .25s; color: white;
}
.np-modal-close svg { stroke: white; }
.np-modal-close:hover { background: rgba(0,0,0,.75); }

.np-modal-top { position: relative; height: 340px; overflow: hidden; }
.np-modal-top img { width: 100%; height: 100%; object-fit: cover; }
.np-modal-placeholder {
    width: 100%; height: 100%; background: linear-gradient(135deg, #eee, #ddd);
    display: flex; align-items: center; justify-content: center; color: var(--np-gris);
}
.np-modal-top-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    padding: 2rem; color: white;
}
.np-modal-top-info h2 { font-family: var(--np-font-display); font-size: 1.8rem; margin: 0 0 4px; font-weight: 700; }
.np-modal-role { font-size: .78rem; color: var(--np-vert); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.np-modal-meta { font-size: .85rem; opacity: .85; margin-top: 8px; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.np-modal-meta span { display: flex; align-items: center; gap: 4px; }

.np-modal-body { padding: 2rem; }
.np-modal-body h3 {
    font-family: var(--np-font-display); font-size: 1.15rem; color: var(--np-texte);
    margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 3px solid var(--np-vert); font-weight: 700;
}
.np-modal-bio { font-size: .95rem; line-height: 1.75; color: #444; }
.np-modal-bio p { margin: 0 0 .8rem; }

/* ============================================================
   INFOBOX
============================================================ */
.np-infobox { padding: 1.25rem; margin-top: 2rem; animation: npFadeUp .5s ease-out .2s both; }
.np-infobox h3 {
    font-family: var(--np-font-display); font-size: 1.05rem; margin: 0 0 .5rem;
    display: flex; align-items: center; gap: .5rem; font-weight: 700;
}
.np-infobox p, .np-infobox div { font-size: .88rem; line-height: 1.6; }
.np-infobox-red { background: var(--np-rouge-light); border: 1.5px solid var(--np-rouge); }
.np-infobox-red h3 { color: var(--np-rouge); }
.np-infobox-green { background: var(--np-vert-light); border: 1.5px solid var(--np-vert); }
.np-infobox-green h3 { color: var(--np-vert-dark); }

/* ============================================================
   PROJET
============================================================ */
.np-projet-text { font-size: .95rem; line-height: 1.7; max-width: 700px; margin: 1.5rem auto 0; animation: npFadeUp .5s ease-out both; }
.np-projet-text p { margin: 0 0 1rem; }
.np-projet-sig { text-align: center; font-family: var(--np-font-display); font-style: italic; font-size: 1.1rem; color: var(--np-rouge); margin: 1.5rem 0 0; font-weight: 700; }



/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes npFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes npFadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes npFadeLeft { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 860px) {
    .np-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .np-lead { grid-template-columns: 1fr; border-left: none; border-top: 4px solid var(--np-vert); }
    .np-lead-img { height: 300px; }
    .np-lead-info { padding: 1.8rem; }
    .np-lead-name { font-size: 1.5rem; }
    .np-modal-top { height: 260px; }
    .np-modal-body { padding: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 640px) {
    .np-hero { padding: 2.5rem 1rem 2rem; }
    .np-hero-dates { flex-direction: column; align-items: center; }
    .np-hero-date { width: 100%; max-width: 260px; justify-content: center; }

    .np-nav-btn { padding: .7rem .25rem; font-size: .72rem; }
    .np-nav-download { font-size: .68rem !important; padding: .7rem .35rem !important; }
    .np-main { padding: 1rem .75rem 2.5rem; }

    .np-filters { gap: .35rem; }
    .np-pill { font-size: .72rem; padding: .35rem .7rem; }

    .np-acc-header { padding: .85rem 1rem; }
    .np-acc-label { font-size: .92rem; }
    .np-acc-icon { width: 30px; height: 30px; }
    .np-acc-badge { font-size: .6rem; padding: .15rem .5rem; }
    .np-acc-content { padding: 1rem; }
    .np-tab-btn { font-size: .75rem; padding: .5rem .4rem; }

    .np-stats { gap: .5rem; }
    .np-stat { padding: .75rem .25rem; }
    .np-stat-num { font-size: 1.3rem; }
    .np-stat-lbl { font-size: .65rem; }

    /* Candidats mobile — 1 col compact */
    .np-grid { grid-template-columns: 1fr; gap: 1rem; }
    .np-card-img { height: 220px; }

    .np-lead-img { height: 240px; }
    .np-lead-info { padding: 1.5rem; }
    .np-lead-name { font-size: 1.3rem; }
    .np-lead-bio { font-size: .85rem; }

    .np-modal-top { height: 200px; }
    .np-modal-top-info { padding: 1.2rem; }
    .np-modal-top-info h2 { font-size: 1.3rem; }
}

@media (max-width: 380px) {
    .np-acc-right .np-acc-badge { display: none; }
}
