.pzs-outer {
    display: flex;
    width: 100%;
}

.pzs {
    position: relative;
    width: 100%;
}

/* Liste des résultats */
.pzs-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #d6d6d6;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pzs-list[hidden] {
    display: none;
}

.pzs .pzs-list-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 18px;
    background: none;
    border: 0;
    border-bottom: 1px solid #d6d6d6;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pzs .pzs-list-item:last-child {
    border-bottom: 0;
}

.pzs .pzs-list-item:hover,
.pzs .pzs-list-item.is-current {
    background: #f4f4f4;
}

.pzs .pzs-list-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.pzs-list-title {
    display: block;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.pzs-list-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6B2D6B;
    line-height: 1.3;
}

.pzs-list-more {
    padding: 10px 18px;
    font-size: 0.85em;
    color: #6b6b6b;
    background: #fafafa;
}

.pzs-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 18px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d6d6d6;
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pzs-icon,
.pzs-clear,
.pzs-prev,
.pzs-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: inherit;
}

.pzs-icon svg,
.pzs-clear svg,
.pzs-prev svg,
.pzs-next svg {
    width: 20px;
    height: 20px;
}

.pzs .pzs-clear,
.pzs .pzs-prev,
.pzs .pzs-next {
    margin: 0;
    padding: 4px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.pzs .pzs-clear:hover,
.pzs .pzs-prev:hover,
.pzs .pzs-next:hover {
    opacity: 1;
    background: none;
}

.pzs .pzs-prev:focus-visible,
.pzs .pzs-next:focus-visible,
.pzs .pzs-clear:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.pzs-clear[hidden],
.pzs-nav[hidden] {
    display: none;
}

/* Compteur + flèches, à droite dans le champ */
.pzs-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    padding-left: 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    color: #111;
    white-space: nowrap;
}

.pzs-count {
    font-variant-numeric: tabular-nums;
    font-size: 0.9em;
    margin-right: 8px;
    min-width: 3.5em;
    text-align: right;
}

.pzs .pzs-go {
    flex: 0 0 auto;
    margin: 0 6px 0 0;
    padding: 6px 12px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pzs .pzs-go:hover {
    opacity: 0.85;
}

.pzs .pzs-go:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.pzs-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pzs .pzs-input {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    color: #111;
    font: inherit;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
}

.pzs .pzs-input::-webkit-search-decoration,
.pzs .pzs-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.pzs .pzs-input:focus {
    outline: none;
    box-shadow: none;
}

/* Texte indicatif : préfixe fixe + mot qui tourne + suffixe fixe */
.pzs-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #8a8a8a;
    overflow: hidden;
    white-space: nowrap;
}

.pzs-ph-fixed {
    flex: 0 0 auto;
}

.pzs-ph-rot {
    position: relative;
    display: inline-block;
    height: 1.4em;
    line-height: 1.4em;
    min-width: 1px;
    flex: 0 1 auto;
}

.pzs-ph-item {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.pzs-ph-item.is-active {
    position: relative;
    transform: none;
    opacity: 1;
}

.pzs-ph-item.is-leaving {
    transform: translateY(-100%);
    opacity: 0;
}

.pzs.has-value .pzs-ph {
    display: none;
}

.pzs-status {
    margin-top: 10px;
    min-height: 1.2em;
    color: #6b6b6b;
    font-size: 0.95em;
}

.pzs-status:empty {
    display: none;
}

/* Éléments filtrés et résultat actuel */
.pzs-hidden {
    display: none !important;
}

.pzs-current {
    outline: var(--pzs-current-w, 3px) solid var(--pzs-current, #6B2D6B);
    outline-offset: 2px;
    transition: outline-color 0.2s ease;
}

mark.pzs-mark {
    background: var(--pzs-mark-bg, #FFE86B);
    color: var(--pzs-mark-color, #111);
    padding: 0 0.05em;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .pzs-ph-item,
    .pzs-field,
    .pzs-current {
        transition: none;
    }
}
