/*
 * Pharmao — nouveau design de l'annuaire /pharmacies (octobre 2026).
 * Complète pharmao-v2.css (variables et composants .pv2-*).
 */
.pv2-ann { padding-bottom: 56px; }
.pv2-ann h1, .pv2-ann h2, .pv2-ann h3, .pv2-ann h5 { margin: 0; color: var(--navy); text-wrap: balance; }

/* ---------- En-tête ---------- */
.pv2-ann-hero { background: linear-gradient(180deg, var(--mint), #fff); border-bottom: 1px solid var(--line); }
.pv2-ann-hero-in { display: flex; flex-direction: column; gap: 14px; padding-block: 20px 28px; }
.pv2-ann-titles { display: flex; flex-direction: column; gap: 6px; }
.pv2-ann-titles h1 { order: 2; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.pv2-ann-eyebrow { order: 1; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text) !important; }
.pv2-ann-lede { max-width: 66ch; font-size: 16px; color: var(--ink-2); }
.pv2-ann-search { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pv2-ann-find { font-weight: 700; font-size: 15px; }
.pv2-ann-search form { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pv2-ann-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pv2-ann-searchbox { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 22, 58, .06); }
.pv2-ann-searchbox input[type=text] { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 10px; font: inherit; font-size: 16px; color: var(--navy); background: transparent; }
.pv2-ann-searchbox input[type=text], .pv2-ann-searchbox input[type=text]:focus { border: 0 !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000; }
.pv2-ann-searchbox:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(98, 191, 68, .2); }
.pv2-ann-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 22, 58, .12); overflow: hidden; }
.pv2-ann-suggest td { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.pv2-ann-suggest tr:hover td { background: var(--soft); }

/* ---------- Sections ---------- */
.pv2-ann-main { display: flex; flex-direction: column; }
.pv2-ann-sec { display: flex; flex-direction: column; gap: 14px; padding-block: 28px; }
.pv2-ann-sec + .pv2-ann-sec { border-top: 1px solid var(--line); }
.pv2-ann-h { font-size: 22px; font-weight: 800; color: var(--navy); }
.pv2-ann-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pv2-ann-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy) !important; }
.pv2-ann-tile:hover { border-color: #B9E2AB; box-shadow: 0 4px 24px rgba(98, 191, 68, .16); text-decoration: none !important; }
.pv2-ann-tile h2 { font-size: 15px; font-weight: 700; }
.pv2-ann-tile span, .pv2-ann-region-h span { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.pv2-ann-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pv2-ann-region { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pv2-ann-region-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pv2-ann-region-h h3 { font-size: 16px; font-weight: 800; }
.pv2-ann-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.pv2-ann-links a { color: var(--ink-2) !important; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pv2-ann-links a:hover { color: var(--green-text) !important; }
.pv2-ann-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 22px; }
.pv2-ann-az a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px dashed var(--line); color: var(--navy) !important; }
.pv2-ann-az a:hover { color: var(--green-text) !important; text-decoration: none !important; }
.pv2-ann-az h2 { font-size: 14px; font-weight: 600; }
.pv2-ann-az span { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.pv2-ann-empty { padding: 24px; border: 1px solid var(--line); border-radius: 14px; text-align: center; font-size: 18px; font-weight: 700; margin-block: 28px; }

/* ---------- Liste des pharmacies (ville, autres pharmacies) ---------- */
.pv2-ann-listbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pv2-ann-listbar .pv2-chip { cursor: pointer; font-family: inherit; }
.pv2-ann-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pv2-ann-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--navy) !important; }
.pv2-ann-card:hover { border-color: #B9E2AB; box-shadow: 0 4px 30px rgba(98, 191, 68, .16); text-decoration: none !important; }
.pv2-ann-card[hidden] { display: none !important; }
.pv2-ann-photo { display: block; aspect-ratio: 16 / 10; background: var(--mint); }
.pv2-ann-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv2-ann-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex-grow: 1; }
.pv2-ann-card h2 { font-size: 16px; line-height: 1.3; font-weight: 800; }
.pv2-ann-addr { font-size: 13px; color: var(--ink-3); }
.pv2-ann-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--ink-3); }
.pv2-ann-open { font-weight: 700; color: var(--green-text); }
.pv2-ann-open.is-closed { color: var(--red); }
.pv2-ann-status { font-size: 13px; font-weight: 700; }
.pv2-ann-badge { align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--green-text); background: var(--mint); border: 1px solid #CDEBC1; border-radius: 6px; padding: 2px 8px; }
.pv2-ann-badge::before { content: "Livraison en "; }
.pv2-ann-cta { margin-top: auto; min-height: 38px; font-size: 13px; }
.pv2-ann-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--green-text); }
.pv2-ann-cities { max-height: 220px; overflow: auto; }

/* ---------- Fiche pharmacie ---------- */
.pv2-ann-crumbs { padding-block: 16px 6px; }
.pv2-ann-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 12px; }
.pv2-ann-head { display: flex; flex-direction: column; gap: 12px; }
.pv2-ann-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; background: var(--mint); }
.pv2-ann-head h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.pv2-ann-headmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.pv2-ann-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv2-ann-titulaire { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.pv2-ann-block { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pv2-ann-block > h2 { font-size: 20px; font-weight: 800; }
.pv2-ann-block .pv2-prose { color: var(--ink-2); line-height: 1.7; max-width: 75ch; }
.pv2-ann-clamp { max-height: 7.2em; overflow: hidden; position: relative; }
.pv2-ann-clamp:not(.is-open)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2.4em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.pv2-ann-clamp.is-open { max-height: none; }
.pv2-ann-readmore { align-self: flex-start; border: 0; background: none; padding: 0; font-weight: 800; font-size: 14px; color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
.pv2-ann-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pv2-ann-team li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.pv2-ann-team li > span:last-child { display: flex; flex-direction: column; }
.pv2-ann-team strong { font-size: 14px; }
.pv2-ann-team li > span:last-child > span { font-size: 12px; color: var(--ink-4); }
.pv2-ann-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green-text); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.pv2-ann-aside { display: flex; flex-direction: column; gap: 12px; }
.pv2-ann-info { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 14px; }
.pv2-ann-label-h { font-size: 15px; font-weight: 800; }
.pv2-ann-kv span { color: var(--ink-4); margin-right: 4px; }
.pv2-ann-hours { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.pv2-ann-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pv2-ann-hours li:last-child { border-bottom: 0; }
.pv2-ann-hours li span:first-child { font-weight: 600; }
.pv2-ann-hours li span:last-child { text-align: right; }
.pv2-ann-hours .is-unknown { color: var(--ink-4); }
.pv2-ann-hours li.is-today span { font-weight: 800; color: var(--navy); }
.pv2-ann-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.pv2-ann-dl dt { color: var(--ink-4); }
.pv2-ann-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.pv2-ann .pv2-faq summary { padding-block: 6px; }
.pv2-ann .pv2-answer ul { margin: 6px 0 0; padding-left: 18px; }
.pv2-ann-regionchips .pv2-chip h2 { font-size: 13px; font-weight: 500; }

@media (min-width: 1024px) {
  .pv2-ann-fiche { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; }
  .pv2-ann-col { grid-column: 1; }
  .pv2-ann-aside { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 12px; }
}
