/* ==========================================================
   PETSCOMPARE — Duo-Pistes (nav principale par animal + cat)
   ==========================================================
   Option C : animaux en texte-seul + underline colore par animal.
   Deux barres sticky sous le logo. Bar 2 filtre dynamique par
   l'animal selectionne dans la Bar 1 (aucune navigation entre
   les deux barres, juste toggle CSS).
   ========================================================== */

.duonav {
    position: sticky;
    top: 0;
    z-index: 85;
    background: #fff;
    border-bottom: 1px solid #f3e8d0;
}

.duonav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}
.duonav-inner::-webkit-scrollbar { display: none; }

/* ---------- Barre 1 : animaux (texte seul + underline colore) ---------- */
.duonav-animals {
    background: #fff;
    border-bottom: 1px solid #f3e8d0;
}

.duonav-animal {
    position: relative;
    display: inline-block;
    border: 0;
    background: transparent;
    padding: 12px 20px 14px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: color .15s;
    flex-shrink: 0;
}

.duonav-animal:hover {
    color: #1f2937;
}

.duonav-animal.is-active {
    color: var(--animal-color, #047857);
    font-weight: 600;
}

.duonav-animal.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 3px;
    background: var(--animal-color, #047857);
    border-radius: 2px 2px 0 0;
    animation: duonav-underline .25s ease-out;
}

@keyframes duonav-underline {
    from { transform: scaleX(0.4); opacity: 0; }
    to   { transform: scaleX(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .duonav-animal.is-active::after { animation: none; }
}

/* ---------- Barre 2 : categories chips ---------- */
.duonav-cats {
    background: #fefaf2;
    border-top: 0;
}

.duonav-cats .duonav-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: .4rem;
}

.duonav-cats-row {
    display: none;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
    width: 100%;
}

.duonav-cats-row.is-active {
    display: flex;
    animation: duonav-fade .22s ease-out;
}

@keyframes duonav-fade {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .duonav-cats-row.is-active { animation: none; }
}

.duonav-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #f3e8d0;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
    flex-shrink: 0;
}

.duonav-chip:hover {
    border-color: var(--animal-color, #047857);
    color: var(--animal-color, #047857);
    text-decoration: none;
    background: #fff;
}

.duonav-chip.is-active {
    background: var(--animal-color, #047857);
    border-color: var(--animal-color, #047857);
    color: #fff;
}

.duonav-chip.is-active:hover {
    color: #fff;
    opacity: .9;
}

.duonav-chip-all {
    background: #fff;
    border-style: dashed;
    color: #6b7280;
    margin-left: auto;
    font-weight: 500;
}
.duonav-chip-all:hover {
    border-style: solid;
}

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 768px) {
    .duonav {
        top: 0;
    }
    .duonav-inner {
        padding: 0 .85rem;
    }
    .duonav-animal {
        padding: 11px 14px 13px;
        font-size: .9rem;
    }
    .duonav-animal.is-active::after {
        left: 12px;
        right: 12px;
    }
    .duonav-cats .duonav-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .duonav-chip {
        padding: 6px 12px;
        font-size: .82rem;
    }
    .duonav-chip-all {
        margin-left: .4rem;  /* pas auto sur mobile, sinon coince en fin de scroll */
    }
}
