/* ══════════════════════════════════════════════════════════════════════════
   LES CV — /cv (27/11/2026)
   views/vitrine/cv_publics.ejs. Aucun style en ligne (CSP) : tout est ici.
   3 cartes par ligne, 2 sous 1 100 px, 1 sous 700 px.
   ══════════════════════════════════════════════════════════════════════════ */
.section:has(> .cvp) { padding: 0; }
.container.cvp { max-width: none; width: 100%; padding: 0 0 40px; display: flex; flex-direction: column; gap: 20px; }

/* ── La recherche (et son verrou) ─────────────────────────────────────── */
.cvp-cherche { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #F5E7F3; }
.cvp-cherche__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cvp-cherche__ico { display: inline-flex; color: #8B7F98; }
.cvp-cherche__ico svg { width: 20px; height: 20px; }
.cvp-cherche input { flex: 1 1 280px; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #E8D6E5; font: inherit; font-size: 15.5px; background: #fff; color: #1E1B2E; }
.cvp-cherche input:focus { outline: 0; border-color: var(--wh-violet, #7A2C6E); box-shadow: 0 0 0 3px rgba(122, 44, 110, .15); }
.cvp-cherche.est-verrouille .cvp-cherche__barre { opacity: .45; pointer-events: none; user-select: none; }
.cvp-cherche.est-verrouille input { background: #F7F5F8; }

.cvp-verrou { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 16px; background: #FBF5FA; border: 1px dashed #E7C0E1; }
.cvp-verrou__ico { display: inline-flex; color: var(--wh-violet-f, #5E1F55); }
.cvp-verrou__ico svg { width: 18px; height: 18px; }
.cvp-verrou p { flex: 1 1 260px; margin: 0; font-size: 14px; color: #4B3A4A; line-height: 1.5; }
.cvp-verrou p strong { color: #1E1B2E; }
.cvp-verrou__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.cvp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--wh-violet, #7A2C6E); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cvp-btn:hover { background: var(--wh-violet-f, #5E1F55); color: #fff; }
.cvp-btn--petit { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.cvp-btn--doux { background: #fff; color: var(--wh-violet-f, #5E1F55); border: 1px solid #EDCEE8; }
.cvp-btn--doux:hover { background: #FBF5FA; color: #4A1844; }

.cvp-compte { margin: 0; font-size: 14px; color: #6B7280; }
.cvp-vide { margin: 0; padding: 28px; border-radius: 18px; background: #FDFBFD; border: 1px dashed #EED2EA; text-align: center; color: #6B7280; }

/* ── La grille : 3 par ligne ──────────────────────────────────────────── */
.cvp-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .cvp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cvp-grille { grid-template-columns: 1fr; } }

.cvp-carte { display: flex; flex-direction: column; gap: 12px; height: 100%; box-sizing: border-box; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #F5E7F3; text-decoration: none; color: inherit; }
.cvp-carte:hover { border-color: #E7C0E1; box-shadow: 0 8px 22px rgba(42, 27, 71, .08); }
/* 29/11/2026 — la carte entière est un lien : la règle générale `a:hover`
   (app.css) soulignait et recolorait tous ses textes au survol. */
.cvp-carte:hover, .cvp-carte:focus-visible { text-decoration: none; color: inherit; }
.cvp-carte:hover .cvp-carte__voir { text-decoration: underline; text-underline-offset: 3px; }
.cvp-carte--anonyme { background: #FCFCFD; border-color: #ECEEF2; }
.cvp-carte__tete { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.cvp-carte__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cvp-carte__id strong { font-size: 16px; color: #1E1B2E; overflow-wrap: anywhere; }
.cvp-carte__poste { font-size: 13.5px; color: #4B5563; overflow-wrap: anywhere; }

.cvp-ava { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #F4E3F2; color: var(--wh-violet-f, #5E1F55); font-weight: 800; font-size: 15px; }
.cvp-ava--anonyme { background: #EEF0F4; color: #6B7280; }
.cvp-ava svg { width: 22px; height: 22px; }

.cvp-badge { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #F4E3F2; color: var(--wh-violet-f, #5E1F55); white-space: nowrap; }
.cvp-badge--anonyme { background: #EEF0F4; color: #4B5563; }

.cvp-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.cvp-puce { padding: 4px 10px; border-radius: 999px; background: #F6F1F5; color: #4B3A4A; font-size: 12.5px; font-weight: 600; }
.cvp-puce--dispo { background: #E8F6EE; color: #1E7A47; }

.cvp-carte__pres { font-size: 14px; line-height: 1.55; color: #4B5563; }
.cvp-comp { display: flex; flex-wrap: wrap; gap: 6px; }
.cvp-comp span { padding: 3px 9px; border-radius: 8px; border: 1px solid #EDE4EC; font-size: 12px; color: #5E5675; }
.cvp-carte__voir { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--wh-violet, #7A2C6E); }

/* ── La pagination (partials/esp_pages) ───────────────────────────────── */
.cvp .esp-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 6px; }
.cvp .esp-pages a, .cvp .esp-pages span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.cvp .esp-pages a { background: #fff; color: #5E1F55; border: 1px solid #EDCEE8; }
.cvp .esp-pages a:hover { background: #FBF5FA; color: #4A1844; }
.cvp .esp-pages .est-actif { background: #8A2A7C; color: #fff; border: 1px solid #8A2A7C; }
.cvp .esp-pages__points { color: #6B6478; min-width: 20px; padding: 0; }
@media (max-width: 700px) { .cvp-cherche__ico { display: none; } .cvp-cherche__barre .cvp-btn { flex: 1 1 100%; } }
