/* Recherche générale de Penta Com : barre au milieu de l'en-tête noir et liste des résultats rangés par site puis par groupe.
   Couleurs du thème de Penta Com (variables --pc-… écrites par pmPentaComSiteStyles). */
.pcs-recherche { position: relative; flex: 1 1 16rem; max-width: 30rem; min-width: 0; display: flex; align-items: center; }
.pcs-recherche input {
    width: 100%; min-height: 40px; padding: 8px 40px 8px 40px; border: 1px solid #3a4049; border-radius: 999px;
    background: #262b33; color: #fff; font-size: 16px; line-height: 24px; font-family: inherit;
    transition: background-color .12s ease-out, border-color .12s ease-out;
}
.pcs-recherche input::placeholder { color: #9aa1ab; opacity: 1; }
.pcs-recherche input:hover { border-color: #5b616b; }
.pcs-recherche input:focus { outline: none; background: #fff; color: var(--pc-encre); border-color: #fff; }
.pcs-recherche input:focus::placeholder { color: #5b616b; }
.pcs-recherche input:focus-visible { box-shadow: 0 0 0 2px var(--pc-accent-sur-encre); }
.pcs-recherche input::-webkit-search-cancel-button { cursor: pointer; }
.pcs-recherche-loupe { position: absolute; left: 16px; font-size: 14px; color: #9aa1ab; pointer-events: none; }
.pcs-recherche:focus-within .pcs-recherche-loupe { color: #5b616b; }
.pcs-recherche-touche {
    position: absolute; right: 12px; min-width: 20px; height: 20px; padding: 0 4px; border: 1px solid #5b616b; border-radius: 4px;
    font-family: inherit; font-size: 12px; line-height: 18px; font-weight: 600; color: #9aa1ab; text-align: center; pointer-events: none;
}
.pcs-recherche:focus-within .pcs-recherche-touche { display: none; }

.pcs-recherche-liste {
    position: absolute; left: 0; top: calc(100% + 8px); width: max(100%, 34rem); max-width: calc(100vw - 32px);
    max-height: min(70vh, 40rem); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; color: var(--pc-encre); border: 1px solid var(--pc-filet); border-radius: 16px; padding: 8px 0;
    z-index: 30;
}
.pcs-recherche-liste[hidden] { display: none; }
.pcr-site { padding: 4px 0 8px; }
.pcr-site + .pcr-site { border-top: 1px solid var(--pc-filet); padding-top: 8px; }
.pcr-site-titre {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px 4px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em;
}
.pcr-site-titre::before { content: ""; width: 4px; height: 16px; background: var(--pc-encre); }
.pcr-site[data-site="magazine"] .pcr-site-titre::before { background: var(--pc-accent); }
.pcr-groupe-titre {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 16px 4px;
    font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #5b616b;
}
.pcr-groupe-titre a { text-transform: none; letter-spacing: 0; color: var(--pc-accent); font-weight: 600; }
.pcr-groupe-titre a:hover { text-decoration: underline; }
.pcr-ligne {
    display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px;
    color: inherit; text-decoration: none; transition: background-color .12s ease-out;
}
.pcr-ligne:hover, .pcr-ligne[aria-selected="true"] { background: #eef0f3; }
.pcr-ligne:active { transform: scale(.985); }
.pcr-vignette {
    width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
    background: #eef0f3; color: var(--pc-encre); font-weight: 700; font-size: 13px;
}
.pcr-vignette img { width: 100%; height: 100%; object-fit: cover; }
.pcr-vignette.pcr-carre { border-radius: 8px; color: #fff; font-size: 14px; }
.pcr-texte { min-width: 0; }
.pcr-titre { display: block; font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcr-titre i { color: var(--pc-accent); font-size: 12px; margin-left: 4px; }
.pcr-detail { display: block; font-size: 13px; line-height: 18px; color: #5b616b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcr-message { padding: 12px 16px; font-size: 15px; color: #5b616b; }

@media (max-width: 767px) {
    .pcs-recherche { order: 4; flex-basis: 100%; max-width: none; padding-bottom: 8px; }
    .pcs-recherche-touche { display: none; }
    .pcs-recherche-liste { width: 100%; max-width: none; top: calc(100% - 0px); }
}
@media (prefers-reduced-motion: reduce) {
    .pcs-recherche input, .pcr-ligne { transition: none; }
    .pcr-ligne:active { transform: none; }
}
