/* FinPharma — public/css/theme.css
   Couche « look Findoctor » au-dessus de app.css : mêmes gabarits (barre de
   navigation blanche, hero en dégradé avec carte de recherche, liste de
   résultats à gauche + carte collante à droite, infobulle de carte), avec la
   charte FinPharma (#04BDAF / #015EAB, Poppins, dégradé de marque).
   Écrit pour FinPharma, aucun code du template n'est copié. */

:root {
    --gradient-brand: linear-gradient(115deg, #015EAB 0%, #04AFAF 65%, #04BDAF 100%);
    --header-h: 72px;
}

/* ---------- Header ---------- */
.site-header { box-shadow: 0 2px 14px rgba(1, 94, 171, 0.07); border-bottom: 0; }
.site-header__inner { min-height: var(--header-h); padding-top: 0; padding-bottom: 0; gap: 32px; }
.site-header__nav { gap: 6px; }
.site-header__nav a {
    position: relative; padding: 8px 12px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: var(--color-text);
}
.site-header__nav a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--gradient-brand); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.site-header__nav a:hover { color: var(--color-secondary); background: var(--color-surface-tint); }
.site-header__nav a:hover::after { transform: scaleX(1); }
.site-header__actions .btn--primary { background: var(--gradient-brand); border-radius: 999px; padding: 10px 20px; }
.site-header__pro { font-size: 13px; font-weight: 600; color: var(--color-secondary); }

/* ---------- Boutons ---------- */
.btn--white { background: #fff; color: var(--color-secondary); border-radius: 999px; padding: 14px 28px; font-weight: 600; }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(1, 49, 90, .3); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; padding: 13px 26px; font-weight: 600; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.14), transparent 40%),
        radial-gradient(circle at 88% 80%, rgba(255,255,255,.10), transparent 45%),
        var(--gradient-brand);
}
.hero__search-card { border-radius: 24px; }
.hero__search { border-radius: 16px; }
.hero__search .btn--primary { border-radius: 12px; background: var(--gradient-brand); }

/* ---------- Pages liste : barre de résultats + split liste/carte ---------- */
.listing-page { max-width: 1320px; }
.listing-page__header {
    margin: 18px 0 16px; padding: 20px 24px; border-radius: var(--radius-lg);
    background: var(--gradient-brand); color: #fff;
}
.listing-page__header h1 { font-size: 24px; color: #fff; }
.listing-page__count { color: rgba(255,255,255,.88); }
.listing-page__filters {
    background: #fff; padding: 10px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-card); position: sticky; top: var(--header-h); z-index: 15;
}
.search-bar { border: 0; background: var(--color-surface-tint); }
.listing-page__layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.listing-page__split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.listing-page__map {
    top: calc(var(--header-h) + 76px); height: calc(100vh - var(--header-h) - 96px); min-height: 420px;
    border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.filters-sidebar { background: #fff; border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-card); }
.filters-sidebar h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); margin-bottom: 10px; }
.filters-sidebar__group + .filters-sidebar__group { margin-top: 18px; }
.filters-sidebar__options a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--color-text); }
.filters-sidebar__options a:hover { background: var(--color-surface-tint); }
.filters-sidebar__options a.is-active { background: var(--color-surface-tint); color: var(--color-secondary); font-weight: 600; }

/* Cartes de résultat (ligne horizontale type Findoctor) */
.pharmacy-card { border: 1px solid transparent; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pharmacy-card:hover { transform: translateY(-2px); }
.pharmacy-card--active { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(4,189,175,.18), var(--shadow-card-hover); }
.pharmacy-card__actions { display: flex; gap: 8px; margin-top: 12px; }
.pharmacy-card__actions a {
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
    color: var(--color-secondary); background: var(--color-surface-tint);
}
.pharmacy-card__actions a:hover { background: var(--color-primary); color: #fff; }

/* ---------- Carte : conteneur, épingles, infobulle ---------- */
.map-empty { padding: 24px; text-align: center; color: var(--color-text-muted); font-size: 13px; }
.fp-pin { background: none; border: 0; }
.fp-pin svg { filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.fp-info { display: flex; gap: 12px; align-items: flex-start; min-width: 220px; font-family: var(--font-body); }
.fp-info__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fp-info__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-info__name { font-size: 14px; color: var(--color-text); line-height: 1.3; }
.fp-info__addr { font-size: 12px; color: var(--color-text-secondary); }
.fp-info__phone { font-size: 12px; font-weight: 600; color: var(--color-secondary); }
.fp-info__link { margin-top: 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--gradient-brand); padding: 6px 12px; border-radius: 999px; align-self: flex-start; }
.fp-popup .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 10px 28px rgba(1,49,90,.25); }
.fp-popup .leaflet-popup-content { margin: 14px; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(4,189,175,.35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--color-primary); color: #fff; font-family: var(--font-body); font-weight: 700; }

@media (max-width: 1100px) {
    .listing-page__layout { grid-template-columns: 1fr; }
    .filters-sidebar { display: none; }
}
@media (max-width: 900px) {
    .listing-page__split { grid-template-columns: 1fr; }
    .listing-page__map { position: static; height: 340px; min-height: 0; order: -1; }
    .listing-page__filters { top: 0; position: static; }
    .site-header__nav { display: none; }
}

/* ---------- Page Espace pro ---------- */
.pro-hero { background: var(--gradient-brand); color: #fff; padding: 88px 24px; text-align: center; }
.pro-hero__inner { max-width: 780px; margin: 0 auto; }
.pro-hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; opacity: .85; margin-bottom: 14px; }
.pro-hero h1 { font-size: 40px; line-height: 1.2; color: #fff; margin-bottom: 18px; }
.pro-hero__lead { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.pro-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pro-section { max-width: var(--container-width); margin: 0 auto; padding: 64px 24px; }
.pro-section--tint { max-width: none; background: var(--color-surface-tint); }
.pro-section--tint > * { max-width: var(--container-width); margin-left: auto; margin-right: auto; }
.pro-section h2 { font-size: 28px; text-align: center; margin-bottom: 36px; }
.pro-grid { display: grid; gap: 22px; }
.pro-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pro-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pro-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.pro-card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--color-surface-tint); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; }
.pro-card h3 { font-size: 18px; }
.pro-card p { font-size: 14px; color: var(--color-text-secondary); flex: 1; }
.pro-card__more { font-size: 14px; font-weight: 600; color: var(--color-secondary); }
.pro-benefit { background: #fff; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
.pro-benefit__num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.pro-benefit h3 { font-size: 16px; margin-bottom: 6px; }
.pro-benefit p { font-size: 13px; color: var(--color-text-secondary); }
.pro-steps { max-width: 720px; margin: 0 auto; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.pro-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px 20px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.pro-steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pro-steps strong { font-size: 15px; }
.pro-steps span { font-size: 13px; color: var(--color-text-secondary); }
.pro-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--color-text-secondary); }
.pro-faq { max-width: 820px; }
.pro-faq details { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 16px 20px; margin-bottom: 12px; }
.pro-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.pro-faq details p { margin-top: 10px; font-size: 14px; color: var(--color-text-secondary); }
@media (max-width: 900px) {
    .pro-grid--3, .pro-grid--4 { grid-template-columns: 1fr; }
    .pro-hero h1 { font-size: 30px; }
}

/* Leaflet impose sa couleur de lien : on la neutralise dans l'infobulle */
.leaflet-container .fp-info a.fp-info__link { color: #fff; }
.leaflet-container .fp-info a.fp-info__phone { color: var(--color-secondary); }
