:root {
    --brand: #3b7d3a;
    --ink: #1c231e;
    --muted: #6b6f72;
    --line: #dfe6e1;
    --bg: #f6f7f6;
    --card: #fff;
    --radius: 14px;
}

.rh-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.rh-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.rh-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.rh-logo__mark {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    background: #eaf3ea;
    color: var(--brand);
    border-radius: 8px;
    font-weight: 900;
}

.rh-logo__text {
    font-weight: 900;
    font-size: 28px;
    color: var(--brand);
}

/* Search group */
.rh-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 260px;
}

.rh-select select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
}

/* Style permanent */
.rh-search__field {
    position: relative;
    flex: 1;
    border-radius: 12px;
}

.rh-search__field input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--line);
    background: #f7f9f8;
    outline: none;
    border-radius: 12px;
    /* arrondi permanent */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rh-search__field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 125, 58, .15);
}

/* Centrage du bouton de recherche (loupe) */
.rh-btn.rh-btn--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* optionnel : enlève le petit décalage interne */
}

.rh-btn.rh-btn--icon svg {
    display: block;
    /* enlève l’espace inline */
    vertical-align: middle;
    /* sécurité */
}


.rh-btn--icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* Actions */
.rh-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.rh-btn--square,
.rh-ico {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    /* même border partout */
    border-radius: 8px;
    text-decoration: none;
    color: #1E3FFA7;
    font-size: 18px;
    /* utile pour le + */
    line-height: 1;
    cursor: pointer;
}

.rh-user:focus,
.rh-user:focus-visible {
    outline: none;
    /* enlève le contour */
    box-shadow: none !important;
    /* enlève l’encadrement vert/bleu */
    background: #F3FFD9;
    /* ou rien si tu veux juste garder le fond normal */
}


.rh-user:focus,
.rh-user:focus-visible {
    outline: none;
    /* enlève le contour */
    box-shadow: none !important;
    /* enlève l’encadrement vert/bleu */
    background: #F3FFD9;
    /* ou rien si tu veux juste garder le fond normal */
}

.rh-ico:hover,
.rh-btn--square:hover {
    filter: brightness(.98);
}

.rh-user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
}

.rh-avatar--dot {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: #e1e3e1;
    border-radius: 50%;
}

.rh-user__avatar img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

/* Variante : avatar cerclé, pas le bloc */
.rh-user__btn {
    border: none !important;
}

.rh-user__avatar img {
    border: 2px solid #ccc;
    /* ou ta couleur */
    border-radius: 50%;
}

.rh-user__name {
    font-size: 14px;
    color: black;
}

/* Rangées mobiles (masquées desktop) */
.rh-nav__mobile-row,
.rh-nav__mobile-search {
    display: none;
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .rh-logo__text {
        font-size: 26px;
    }

    .rh-actions {
        gap: 10px;
    }
}

/* Mobile (≤ 640px) : 2 rangées comme la maquette */
@media (max-width: 640px) {
    .rh-nav__inner {
        display: none;
    }

    /* cache la rangée desktop/tablet */
    .rh-nav__mobile-row,
    .rh-nav__mobile-search {
        display: block;
        max-width: 900px;
        margin: 0 auto;
        padding: 8px 12px;
    }

    .rh-nav__mobile-row {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        gap: 8px;
        justify-content: start;
    }

    .rh-nav__mobile-row .rh-ico {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .rh-nav__mobile-search .rh-search {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 8px;
        margin-top: 6px;
    }

    .rh-select select {
        width: 100%;
    }
}

/* Dark mode doux */
@media (prefers-color-scheme: dark) {
    .rh-nav {
        background: #0f1110;
        border-color: #1f2923;
    }

    .rh-logo__text {
        color: #bde0b9;
    }

    .rh-search__field input {
        background: #0f1311;
        color: #e6efe8;
        border-color: #213026;
    }

    .rh-select select,
    .rh-ico,
    .rh-user,
    .rh-btn--square {
        background: #131715;
        border-color: #213026;
        color: #e6efe8;
    }
}

.rh-logo--desktop {
    display: block;
}

.rh-logo--mobile {
    display: none;
}

@media (max-width: 768px) {
    .rh-logo--desktop {
        display: none;
    }

    .rh-logo--mobile {
        display: block;
    }
}

.rh-user--dropdown {
    position: relative;
    padding: 0px !important;
}

.rh-user__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
}

.rh-user__chev {
    font-size: 12px;
    opacity: .7;
}

.rh-user__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    z-index: 50;
}

.rh-user__item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
}

.rh-user__item:hover {
    background: #f3f6f4;
}

.rh-user__sep {
    height: 1px;
    background: #e6ece7;
    margin: 6px 0;
}

@media (prefers-color-scheme: dark) {
    .rh-user__menu {
        background: #131715;
        border-color: #213026;
    }

    .rh-user__item {
        color: #e6efe8;
    }

    .rh-user__item:hover {
        background: #0f1311;
    }
}


.v-fav.v-fav--pulse {
    transform: scale(1.1);
    transition: transform .15s;
}