/* Navigation Cooppère — extrait de nav.php */
:root {
    --cpn-green: #4a6741;
    --cpn-dk: #3a5231;
    --cpn-gold: #d4af37;
    --cpn-bg: rgba(255, 255, 255, 0.97);
    --cpn-border: rgba(74, 103, 65, 0.15);
}

.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: 1px solid var(--cpn-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.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.06);
}

.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-dk);
}

.cpn-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    color: #3a3a3a;
    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, transform 0.12s;
    flex-shrink: 0;
}

.cpn-btn:hover {
    background: var(--cpn-green);
    color: #fff;
    border-color: var(--cpn-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 65, 0.22);
}

.cpn-btn.cpn-active {
    background: var(--cpn-gold);
    color: #fff;
    border-color: var(--cpn-gold);
    font-weight: 700;
}

.cpn-btn.cpn-active:hover {
    background: #c49e2d;
    border-color: #c49e2d;
}

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

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

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

.cpn-arrow {
    font-size: 0.58rem;
    margin-left: 2px;
    opacity: 0.6;
    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: 210px;
    background: #fff;
    border: 1px solid var(--cpn-border);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
    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: #3a3a3a;
    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;
}

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

.cpn-item.cpn-active {
    background: rgba(212, 175, 55, 0.13);
    color: var(--cpn-green);
    font-weight: 700;
}

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

.cpn-burger {
    display: none;
    flex-shrink: 0;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1.5px solid var(--cpn-border);
    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: #fff;
        border-top: 1px solid var(--cpn-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        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-border);
        font-size: 0.9rem;
    }

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

    .cpn-btn:hover {
        transform: none;
    }

    .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;
    }
}
