/* =====================================================================
   Carexplorer Pro — styles communs à toutes les pages pros (fiche, catégories, villes).
   Modifier ce fichier change toutes les pages de l'annuaire.
   ===================================================================== */
:root {
    --px-bg: #0a0a0f;
    --px-surface: rgba(255, 255, 255, 0.035);
    --px-surface-2: rgba(255, 255, 255, 0.06);
    --px-border: rgba(255, 255, 255, 0.08);
    --px-border-strong: rgba(255, 255, 255, 0.14);
    --px-text: #f5f5f7;
    --px-muted: #a1a1aa;
    --px-dim: #71717a;
    --px-accent: #a78bfa;
    --px-accent-strong: #8b5cf6;
    --px-accent-soft: rgba(167, 139, 250, 0.12);
    --px-green: #34d399;
    --px-green-soft: rgba(52, 211, 153, 0.12);
    --px-amber: #fbbf24;
    --px-red: #f87171;
    --px-radius: 20px;
    --px-radius-s: 12px;
}

.px-page { position: relative; min-height: 100vh; background: var(--px-bg); color: var(--px-text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.px-page::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
    background: radial-gradient(60% 70% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%); }
.px-wrap { position: relative; max-width: 1140px; margin: 0 auto; padding: 120px 24px 80px; }
.px-wrap a { color: inherit; }
.px-ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fil d'Ariane */
.px-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--px-dim); margin-bottom: 22px; }
.px-crumbs a { color: var(--px-muted); text-decoration: none; }
.px-crumbs a:hover { color: var(--px-text); }
.px-crumbs span[aria-current] { color: var(--px-text); }
.px-crumbs .sep { opacity: .5; }

/* En-tête */
.px-hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 32px;
    border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--px-border); }
.px-logo { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
    color: #fff; background: var(--px-logo-bg, linear-gradient(135deg, #7c3aed, #4f46e5)); box-shadow: 0 12px 40px -12px var(--px-logo-glow, rgba(124, 58, 237, .6)), inset 0 1px 0 rgba(255,255,255,.25); }
.px-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; color: #fff; }
.px-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--px-muted); }
.px-meta .px-ico { width: 16px; height: 16px; }
.px-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.px-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: var(--px-accent-soft); color: #d8ccff; border: 1px solid rgba(167, 139, 250, .22); text-decoration: none; }
.px-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.px-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--px-dim); }
.px-status.open { color: var(--px-green); } .px-status.open i { background: var(--px-green); box-shadow: 0 0 0 4px var(--px-green-soft); }
.px-status.closed { color: var(--px-red); } .px-status.closed i { background: var(--px-red); }
.px-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.px-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--px-muted); padding: 5px 10px; border-radius: 8px; background: var(--px-surface); border: 1px solid var(--px-border); }
.px-badge .px-ico { width: 15px; height: 15px; color: var(--px-green); }
.px-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.px-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
    text-decoration: none; border: 1px solid var(--px-border-strong); background: var(--px-surface); color: var(--px-text); cursor: pointer; transition: background .15s, transform .15s, border-color .15s; font-family: inherit; }
.px-btn:hover { background: var(--px-surface-2); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.px-btn.primary { background: #fff; color: #0a0a0f; border-color: #fff; }
.px-btn.primary:hover { background: #ececf1; }

/* Grille principale */
.px-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 24px; align-items: start; }
.px-col { display: grid; gap: 24px; min-width: 0; }
.px-aside { position: sticky; top: 96px; display: grid; gap: 24px; }
.px-card { border-radius: var(--px-radius); background: var(--px-surface); border: 1px solid var(--px-border); padding: 26px 28px; }
.px-card h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 16px; color: #fff; display: flex; align-items: center; gap: 10px; }
.px-card h2 .px-ico { color: var(--px-accent); width: 20px; height: 20px; }
.px-card p { font-size: 15.5px; line-height: 1.7; color: #d4d4d8; margin: 0 0 10px; }
.px-card p:last-child { margin-bottom: 0; }

/* Contact (colonne droite) */
.px-map { height: 230px; margin: -26px -28px 20px; border-radius: var(--px-radius) var(--px-radius) 0 0; overflow: hidden; background: #15151c; position: relative; }
/* Carte vectorielle (MapLibre + OpenFreeMap) */
.px-map .maplibregl-ctrl-group { background: rgba(20,20,28,.85); border: 1px solid var(--px-border-strong); box-shadow: none; border-radius: 10px; overflow: hidden; }
.px-map .maplibregl-ctrl-group button { width: 30px; height: 30px; }
.px-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--px-border); }
.px-map .maplibregl-ctrl-icon { filter: invert(1) opacity(.8); }
.px-map .maplibregl-ctrl-attrib { background: rgba(10,10,15,.7) !important; font-size: 10px; }
.px-map .maplibregl-ctrl-attrib a { color: var(--px-muted) !important; }
.px-map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.px-map .maplibregl-cooperative-gesture-screen { font-size: 13px; }
.px-marker { width: 18px; height: 18px; border-radius: 50%; background: #8b5cf6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(139,92,246,.28), 0 6px 18px rgba(0,0,0,.5); }
.px-map-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--px-dim); font-size: 13px; }
.px-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.px-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--px-border); font-size: 14.5px; line-height: 1.45; }
.px-contact li:last-child { border-bottom: 0; }
.px-contact .px-ico { margin-top: 2px; color: var(--px-muted); }
.px-contact small { display: block; color: var(--px-dim); font-size: 12px; margin-bottom: 2px; }
.px-contact a { text-decoration: none; color: #fff; word-break: break-word; }
.px-contact a:hover { color: var(--px-accent); }

/* Horaires */
.px-hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.px-hours td { padding: 9px 0; border-bottom: 1px solid var(--px-border); color: #d4d4d8; vertical-align: top; }
.px-hours tr:last-child td { border-bottom: 0; }
.px-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-hours td:last-child span { display: block; }
.px-hours .closed-day td:last-child { color: var(--px-dim); }
.px-hours tr.today td { color: #fff; font-weight: 600; }
.px-hours tr.today td:first-child::after { content: "Aujourd'hui"; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--px-accent); background: var(--px-accent-soft); padding: 2px 7px; border-radius: 6px; }
.px-card .px-note, .px-note { font-size: 12.5px; color: var(--px-dim); margin-top: 12px; line-height: 1.5; }

/* Prestations */
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: var(--px-surface-2); border: 1px solid var(--px-border); font-size: 14px; color: #e4e4e7; }
.px-chip .px-ico { width: 15px; height: 15px; color: var(--px-green); }

/* FAQ */
.px-faq details { border-bottom: 1px solid var(--px-border); }
.px-faq details:last-child { border-bottom: 0; }
.px-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; font-size: 15.5px; font-weight: 550; color: #fff; }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary .px-ico { transition: transform .2s; color: var(--px-dim); }
.px-faq details[open] summary .px-ico { transform: rotate(45deg); }
.px-faq details p { padding: 0 0 16px; margin: 0; color: var(--px-muted); font-size: 15px; }

/* Informations légales */
.px-legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.px-legal dt { font-size: 12px; color: var(--px-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.px-legal dd { margin: 0; font-size: 15px; color: #e4e4e7; font-variant-numeric: tabular-nums; }

/* Vous êtes ce pro ? */
.px-owner { background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(79,70,229,.06)); border-color: rgba(167,139,250,.22); }
.px-owner details summary { list-style: none; }
.px-owner details summary::-webkit-details-marker { display: none; }
.px-form { display: grid; gap: 12px; margin-top: 18px; }
.px-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-form label { font-size: 13px; color: var(--px-muted); display: grid; gap: 6px; }
.px-form input[type=text], .px-form input[type=email], .px-form textarea, .px-form select {
    width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--px-border-strong); border-radius: 10px; color: #fff; padding: 11px 13px; font: inherit; font-size: 14.5px; }
.px-form textarea { min-height: 96px; resize: vertical; }
.px-form input:focus, .px-form textarea:focus { outline: none; border-color: var(--px-accent); box-shadow: 0 0 0 3px var(--px-accent-soft); }
.px-check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; font-size: 13.5px; color: #d4d4d8 !important; }
.px-check input { margin-top: 3px; accent-color: var(--px-accent-strong); }
.px-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.px-kinds label { display: inline-flex !important; align-items: center; gap: 8px !important; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--px-border-strong); cursor: pointer; color: #e4e4e7 !important; font-size: 14px !important; }
.px-kinds input { accent-color: var(--px-accent-strong); }
.px-hp { position: absolute !important; left: -9999px !important; }
.px-ok { padding: 12px 14px; border-radius: 10px; background: var(--px-green-soft); color: var(--px-green); font-size: 14px; margin-top: 14px; }
.px-err { padding: 12px 14px; border-radius: 10px; background: rgba(248,113,113,.12); color: var(--px-red); font-size: 14px; margin-top: 14px; }

/* Pros à proximité */
.px-section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 18px; color: #fff; }
.px-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.px-mini { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--px-surface); border: 1px solid var(--px-border); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.px-mini:hover { border-color: var(--px-border-strong); background: var(--px-surface-2); transform: translateY(-2px); }
.px-mini .px-logo { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; box-shadow: none; }
.px-mini strong { display: block; font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 3px; }
.px-mini span { font-size: 13px; color: var(--px-dim); }

.px-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--px-border); font-size: 12.5px; color: var(--px-dim); line-height: 1.6; }
.px-sources a { color: var(--px-muted); }

/* Barre d'actions mobile */
.px-mbar { display: none; }

@media (max-width: 960px) {
    .px-grid { grid-template-columns: 1fr; }
    .px-aside { position: static; }
}
@media (max-width: 640px) {
    .px-wrap { padding: 96px 16px 110px; }
    .px-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 22px; }
    .px-logo { width: 68px; height: 68px; border-radius: 20px; font-size: 24px; }
    .px-actions { display: none; }
    .px-card { padding: 22px 20px; }
    .px-map { margin: -22px -20px 18px; }
    .px-form .row { grid-template-columns: 1fr; }
    .px-mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,10,15,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--px-border); }
    .px-mbar .px-btn { height: 48px; padding: 0 10px; font-size: 14px; }
}

/* ---------- Annuaire : accueil, catégorie, ville ---------- */
.px-hub-hero { text-align: center; padding: 28px 0 8px; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #d8ccff; padding: 6px 14px; border-radius: 999px;
    background: var(--px-accent-soft); border: 1px solid rgba(167, 139, 250, .22); margin-bottom: 18px; }
.px-hub-hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.04; font-weight: 750; letter-spacing: -0.035em; margin: 0 auto 16px; max-width: 820px;
    background: linear-gradient(180deg, #fff 30%, #c9c9d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-lead { font-size: 17px; line-height: 1.6; color: var(--px-muted); max-width: 680px; margin: 0 auto; }
.px-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; font-size: 14px; color: var(--px-muted); }
.px-stats b { color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.px-group { margin-top: 48px; }
.px-group h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--px-dim); margin: 0 0 14px; }
.px-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.px-cat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--px-surface); border: 1px solid var(--px-border);
    text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
a.px-cat:hover { border-color: var(--px-border-strong); background: var(--px-surface-2); transform: translateY(-2px); }
.px-cat.empty { opacity: .45; }
.px-cat-dot { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; }
.px-cat-dot .px-ico { width: 18px; height: 18px; }
.px-cat strong { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.px-cat span.n { font-size: 13px; color: var(--px-dim); }
.px-cityrow { display: flex; flex-wrap: wrap; gap: 8px; }
.px-city { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--px-surface); border: 1px solid var(--px-border);
    font-size: 14px; color: #e4e4e7; text-decoration: none; transition: border-color .15s, background .15s; }
.px-city:hover { border-color: var(--px-border-strong); background: var(--px-surface-2); }
.px-city em { font-style: normal; font-size: 12px; color: var(--px-dim); font-variant-numeric: tabular-nums; }
.px-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.px-pcard { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--px-surface); border: 1px solid var(--px-border);
    text-decoration: none; transition: border-color .15s, background .15s, transform .15s; min-width: 0; }
.px-pcard:hover { border-color: var(--px-border-strong); background: var(--px-surface-2); transform: translateY(-2px); }
.px-pcard .px-logo { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; box-shadow: none; flex: none; }
.px-pcard-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.px-pcard strong { font-size: 15.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-pcard-meta { font-size: 13px; color: var(--px-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-pcard-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--px-muted); }
.px-pcard-facts span { display: inline-flex; align-items: center; gap: 5px; }
.px-pcard-facts .px-ico { width: 13px; height: 13px; }
.px-pcard-facts .ok { color: var(--px-green); }
.px-pcard-go { color: var(--px-dim); flex: none; }
.px-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.px-step { padding: 22px; border-radius: 18px; background: var(--px-surface); border: 1px solid var(--px-border); }
.px-step b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--px-accent-soft); color: #d8ccff; font-size: 13px; margin-bottom: 12px; }
.px-step h3 { font-size: 15.5px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.px-step p { font-size: 14px; line-height: 1.6; color: var(--px-muted); margin: 0; }
.px-empty { padding: 28px; border-radius: 18px; border: 1px dashed var(--px-border-strong); color: var(--px-muted); font-size: 15px; text-align: center; }
@media (max-width: 760px) { .px-steps { grid-template-columns: 1fr; } .px-plist { grid-template-columns: 1fr; } .px-hub-hero { text-align: left; } .px-lead, .px-hub-hero h1 { margin-left: 0; } .px-stats { justify-content: flex-start; } }
