/* Navigation Cooppère — Charte Crème, Vert Forêt profond (#0d2118), Vert Cooppère (#1b4332) & Argenté (#cbd4dc) */
:root {
    --cpn-forest: #0d2118;
    --cpn-green: #1b4332;
    --cpn-dk: #112a1e;
    --cpn-silver: #cbd4dc;
    --cpn-silver-dark: #8b99a6;
    --cpn-bg: rgba(250, 248, 242, 0.96);
    --cpn-border: #cbd4dc;
}

.cpn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--cpn-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--cpn-border);
    box-shadow: 0 2px 14px rgba(13, 33, 24, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.cpn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    min-height: 56px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.cpn-wrap::-webkit-scrollbar {
    display: none;
}

.cpn-logo {
    flex-shrink: 0;
    margin-right: 6px;
}

.cpn-logo img {
    height: 34px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.cpn-logo img:hover {
    transform: scale(1.05);
}

.cpn-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cpn-green);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.cpn-logo-text:hover {
    color: var(--cpn-forest);
}

.cpn-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cpn-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    color: #1f2933;
    border: 1.5px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}

.cpn-btn:hover {
    background: #eef2f6;
    color: var(--cpn-green);
    border-color: var(--cpn-silver);
}

/* Bouton de la page active : Vert forêt presque noir + liseré argenté (remplace le jaune moutarde) */
.cpn-btn.cpn-active {
    background: linear-gradient(135deg, #0f261c 0%, #1b4332 100%);
    color: #ffffff;
    border-color: #9aa8b5;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(226, 232, 238, 0.25), 0 2px 6px rgba(13, 33, 24, 0.15);
}

.cpn-btn.cpn-active:hover {
    background: var(--cpn-forest);
    border-color: #cbd4dc;
    color: #ffffff;
}

.cpn-btn.cpn-primary {
    background: var(--cpn-green);
    color: #fff;
    border-color: #8b99a6;
    font-weight: 600;
}

.cpn-btn.cpn-primary:hover {
    background: var(--cpn-forest);
    border-color: var(--cpn-forest);
    color: #fff;
}

.cpn-drop {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.cpn-arrow {
    font-size: 0.58rem;
    margin-left: 2px;
    opacity: 0.65;
    transition: transform 0.18s;
}

.cpn-drop.cpn-open .cpn-arrow {
    transform: rotate(180deg);
}

.cpn-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 220px;
    background: #faf8f2;
    border: 1px solid var(--cpn-silver);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(13, 33, 24, 0.14);
    padding: 6px;
    z-index: 9999;
    animation: cpnDropIn 0.15s ease;
}

.cpn-drop.cpn-open .cpn-menu {
    display: block;
}

@keyframes cpnDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpn-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #1f2933;
    text-decoration: none;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.14s, color 0.14s;
}

.cpn-item i {
    width: 14px;
    text-align: center;
    color: #52606d;
}

.cpn-item:hover {
    background: var(--cpn-green);
    color: #fff;
}

.cpn-item:hover i {
    color: #dce4ec;
}

.cpn-item.cpn-active {
    background: #e9f2ec;
    color: var(--cpn-green);
    font-weight: 700;
}

.cpn-sep {
    height: 1px;
    background: var(--cpn-silver);
    margin: 4px 6px;
}

.cpn-burger {
    display: none;
    flex-shrink: 0;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border: 1.5px solid var(--cpn-silver);
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    color: var(--cpn-green);
    font-size: 1rem;
    transition: background 0.18s, color 0.18s;
}

.cpn-burger:hover {
    background: var(--cpn-green);
    color: #fff;
    border-color: var(--cpn-green);
}

@media (max-width: 1100px) {
    .cpn-btn {
        padding: 6px 9px;
        font-size: 0.78rem;
    }

    .cpn-wrap {
        gap: 3px;
    }
}

@media (max-width: 900px) {
    .cpn-btn .cpn-lbl {
        display: none;
    }

    .cpn-btn {
        padding: 7px 9px;
    }

    .cpn-btn.cpn-primary .cpn-lbl {
        display: inline;
    }
}

@media (max-width: 680px) {
    .cpn-wrap {
        justify-content: space-between;
    }

    .cpn-nav {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #faf8f2;
        border-top: 1px solid var(--cpn-silver);
        box-shadow: 0 8px 24px rgba(13, 33, 24, 0.12);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 14px;
        gap: 3px;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        z-index: 8999;
    }

    .cpn-nav.cpn-open {
        display: flex;
    }

    .cpn-btn {
        justify-content: flex-start;
        border-radius: 8px;
        padding: 10px 13px;
        border-color: var(--cpn-silver);
        font-size: 0.9rem;
    }

    .cpn-btn .cpn-lbl {
        display: inline !important;
    }

    .cpn-drop {
        width: 100%;
        flex-direction: column;
    }

    .cpn-drop.cpn-open .cpn-menu {
        display: flex !important;
        flex-direction: column;
        position: static !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 18px;
        animation: none;
        min-width: 0;
    }

    .cpn-drop .cpn-btn {
        width: 100%;
        justify-content: space-between;
    }

    .cpn-burger {
        display: flex;
    }
}
