/*!
 * Fixalis — Design Refresh v2 (pro & sobre)
 * ---------------------------------------------------------------------------
 * Philosophie : MOINS = MIEUX
 *   • Max 2 trust chips par contexte (avant : 4-6)
 *   • Max 3 couleurs sémantiques (vert/orange/bleu) — plus de violet/cyan/jaune
 *   • Metadata inline avec séparateurs "·" plutôt qu'en chips (pattern TrustUp)
 *   • Photo ring blanc + shadow sophistiquée (plus le cerclage jaune cartoon)
 *   • Hiérarchie typographique claire : H1 → slogan → meta → trust
 *
 * Inspirations :
 *   - TrustUp  → trust chip jaune unique + sobriété
 *   - Yoojo    → card aérée, metadata inline, 3 skill tags max
 *   - RingTwice→ photo organique, gradient radial, pas de pill redondantes
 *
 * Auteur : Claude × Dennys — 2026-04-15 v2
 * ========================================================================== */

/* =========================================================================
   1. DESIGN TOKENS — palette réduite à 3 couleurs sémantiques
   ========================================================================= */
:root {
    /* Elevation system */
    --apb-elev-1: 0 1px 2px rgba(16,24,40,.05);
    --apb-elev-2: 0 4px 6px -1px rgba(16,24,40,.07), 0 2px 4px -2px rgba(16,24,40,.04);
    --apb-elev-3: 0 10px 15px -3px rgba(16,24,40,.08), 0 4px 6px -4px rgba(16,24,40,.04);
    --apb-elev-4: 0 20px 25px -5px rgba(16,24,40,.10), 0 8px 10px -6px rgba(16,24,40,.04);
    --apb-elev-focus: 0 0 0 4px rgba(24,95,165,.14);

    /* Transitions */
    --apb-ease:   cubic-bezier(.4,0,.2,1);
    --apb-t-fast: .14s var(--apb-ease);
    --apb-t-base: .2s  var(--apb-ease);

    /* Palette chip SOBRE — couleurs business, pas d'orange/beige enfantin.
       TVA = vert security (GitHub-like).  Multi = bleu brand Fixalis.
       Neutre = gris froid.  Verbiage minimal, pas de jaune/rose/violet. */
    --apb-chip-vies-bg:    #ECFDF5;  --apb-chip-vies-fg:    #065F46;  --apb-chip-vies-bd:    #6EE7B7;
    --apb-chip-multi-bg:   #EBF3FB;  --apb-chip-multi-fg:   #0C447C;  --apb-chip-multi-bd:   #93C5FD;
    --apb-chip-nouveau-bg: #F1F5F9;  --apb-chip-nouveau-fg: #334155;  --apb-chip-nouveau-bd: #CBD5E1;
    --apb-chip-neutral-bg: #F8FAFC;  --apb-chip-neutral-fg: #475569;  --apb-chip-neutral-bd: #E2E8F0;
}

/* =========================================================================
   2. BADGES / CHIPS — unified system
   Padding 5/12, radius 999px, weight 600, hover subtle lift
   ========================================================================= */
.apb-badges { gap: 6px; margin: 4px 0 0; }
.apb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    background: var(--apb-chip-neutral-bg);
    color: var(--apb-chip-neutral-fg);
    border: 1px solid var(--apb-chip-neutral-bd);
    white-space: nowrap;
    transition: transform var(--apb-t-fast), box-shadow var(--apb-t-fast);
}
.apb-badge:hover { transform: translateY(-1px); box-shadow: var(--apb-elev-1); }
.apb-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* 3 variantes seulement — double-classe pour battre la spécificité du color-mix legacy.
   Les !important sont nécessaires car frontend.css original utilise
   `background: color-mix(in srgb, var(--apb-badge-color) 14%, white)` qui overrride. */
.apb-badge.apb-badge--vies,
.apb-badge.apb-badge--complet {
    background: var(--apb-chip-vies-bg) !important;
    color: var(--apb-chip-vies-fg) !important;
    border-color: var(--apb-chip-vies-bd) !important;
}
.apb-badge.apb-badge--multi,
.apb-badge.apb-badge--super {
    background: var(--apb-chip-multi-bg) !important;
    color: var(--apb-chip-multi-fg) !important;
    border-color: var(--apb-chip-multi-bd) !important;
}
.apb-badge.apb-badge--nouveau,
.apb-badge.apb-badge--cat,
.apb-badge.apb-badge--exp {
    background: var(--apb-chip-nouveau-bg) !important;
    color: var(--apb-chip-nouveau-fg) !important;
    border-color: var(--apb-chip-nouveau-bd) !important;
}
/* BCE active = trust signal business fort → bleu brand (pas neutre).
   Distingue l'enregistrement officiel BCE du simple badge "nouveau". */
.apb-badge.apb-badge--bce {
    background: #F0F7FF !important;
    color: #0C447C !important;
    border-color: #93C5FD !important;
}
.apb-badge.apb-badge--bce svg { color: #185FA5; }
.apb-badge.apb-badge--super::before { content: "★"; margin-right: 1px; font-size: 11px; }

/* =========================================================================
   3. CARDS PRO (archive) — refactor radical
   Hiérarchie : [photo] → [2 trust + fav] → [nom + BCE icon] → [cat sous-titre]
                → [commune + rating ligne unique] → [desc] → [3 tags] → [CTA]
   ========================================================================= */
/* Card : background propre + shadow multi-layer cinématique (pattern Stripe/Linear) */
.apb-pro-card {
    position: relative;
    isolation: isolate;
    background: #fff;
    border: 1px solid #EEF2F7;
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        0 4px 14px rgba(16,24,40,.05);
    transition: box-shadow .35s var(--apb-ease), transform .35s var(--apb-ease), border-color .35s var(--apb-ease);
    overflow: hidden;
}

/* Gradient-border au hover via ::before masqué (effet glow bleu brand) */
.apb-pro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, #185FA5 0%, #60A5FA 50%, #185FA5 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s var(--apb-ease);
    pointer-events: none;
    z-index: 2;
}

.apb-pro-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow:
        0 24px 48px -12px rgba(24, 95, 165, .22),
        0 8px 16px -4px rgba(24, 95, 165, .08);
}
.apb-pro-card:hover::before { opacity: 1; }

/* PREMIUM : ring bleu brand permanent + ribbon en coin (plus d'orange) */
.apb-pro-card--premium::before {
    opacity: 1;
    background: linear-gradient(135deg, #0C447C 0%, #3B82F6 40%, #0C447C 80%);
}
.apb-pro-card--premium::after {
    content: "PREMIUM";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 5px 11px;
    border-radius: 7px;
    background: linear-gradient(135deg, #185FA5 0%, #0C447C 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    box-shadow: 0 4px 12px rgba(12, 68, 124, .35), 0 0 0 1px rgba(255,255,255,.12) inset;
    pointer-events: none;
}
.apb-pro-card--premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 56px -12px rgba(24, 95, 165, .30),
        0 12px 20px -4px rgba(24, 95, 165, .12);
}

.apb-pro-card__photo,
.apb-pro-card__photo--placeholder {
    aspect-ratio: 4 / 3;
}
@media (max-width: 600px) {
    .apb-pro-card__photo,
    .apb-pro-card__photo--placeholder { aspect-ratio: 16 / 10; }
}

.apb-pro-card__body {
    padding: 18px 20px 12px;
    gap: 6px;
}

/* Top-row : trust badges gauche + favori droite */
.apb-pro-card__top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.apb-pro-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Nom : title hierarchy bleu brand foncé (cohérence avec popup AI)
   !important pour battre frontend.css legacy (.apb-pro-card__titre { font-size: 16px }) */
.apb-pro-card__titre {
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin: 4px 0 0;
    color: #0C447C !important;
}
.apb-pro-card__titre a { color: inherit; text-decoration: none; transition: color var(--apb-t-fast); }
.apb-pro-card__titre a:hover { color: #185FA5; }

/* Sous-titre (catégorie si mono-service) — metadata léger */
.apb-pro-card__subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 4px;
}

/* Meta row : commune + rating en une ligne */
.apb-pro-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 6px;
    font-size: 13px;
    color: #4B5563;
    flex-wrap: wrap;
}
.apb-pro-card__commune {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #1A1A2E;
}
.apb-pro-card__commune svg { color: #185FA5; flex-shrink: 0; }
.apb-pro-card__rayon-mini {
    font-weight: 500;
    color: #4B5563;
}
.apb-pro-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}
.apb-pro-card__rating .apb-stars { font-size: 13px; }
.apb-pro-card__rating .apb-pro-card__nb-avis {
    color: #4B5563;
    font-weight: 500;
    font-size: 12px;
}
.apb-pro-card__rating-empty {
    font-size: 12px;
    color: #4B5563;
    font-style: italic;
    font-weight: 500;
}

/* Description : 2 lignes max, couleur text-secondary */
.apb-pro-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4B5563;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 8px;
}

/* Footer : fond neutre, padding confortable */
.apb-pro-card__footer {
    padding: 12px 20px;
    background: #FAFBFC;
    border-top: 1px solid #F1F3F5;
}
.apb-pro-card__tarif {
    font-style: normal;
    font-weight: 600;
    color: #1A1A2E;
    font-size: 13px;
}

/* =========================================================================
   4. TAGS SERVICES (pills verdes)
   ========================================================================= */
.apb-pro-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 4px;
}
/* Tags services : gris neutre (avant : vert fluo enfantin) — pattern Stripe/Linear.
   Inclut .apb-chip--tag (classe réellement utilisée dans class-archive.php)
   avec !important pour battre les styles legacy .apb-chip. */
.apb-pro-card__tags .apb-tag,
.apb-pro-card__tags .apb-chip--tag,
.apb-tag,
.apb-chip.apb-chip--tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    background: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: background var(--apb-t-fast), border-color var(--apb-t-fast);
}
.apb-pro-card__tags .apb-tag:hover,
.apb-pro-card__tags .apb-chip--tag:hover,
.apb-tag:hover,
.apb-chip.apb-chip--tag:hover {
    background: #EBF3FB !important;
    border-color: #93C5FD !important;
    color: #0C447C !important;
}
.apb-pro-card__tags-more,
.apb-tag--more,
.apb-chip.apb-chip--more {
    background: #F8FAFC !important;
    color: #64748B !important;
    border-color: #E2E8F0 !important;
}

/* =========================================================================
   5. BOUTON FAVORI card
   ========================================================================= */
.apb-pro-card .apb-fav-btn,
.apb-pro-card__fav-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--apb-elev-1);
    transition: transform var(--apb-t-fast), background var(--apb-t-fast);
}
.apb-pro-card .apb-fav-btn:hover,
.apb-pro-card__fav-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* =========================================================================
   6. HERO PROFIL PUBLIC — design v2 épuré
   ========================================================================= */
.apb-profil__hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 88% -20%, rgba(230,137,42,.16) 0%, transparent 55%),
        radial-gradient(900px 450px at -10% 120%, rgba(24,95,165,.5) 0%, transparent 55%),
        linear-gradient(135deg, #1E4D8F 0%, #0C3A72 100%);
    overflow: hidden;
}
.apb-profil__hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 56px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path fill='%23F7F8FA' d='M0,28 C240,56 480,0 720,28 C960,56 1200,0 1440,28 L1440,56 L0,56 Z'/></svg>") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

/* Avatar : ring blanc + shadow chaude, plus de jaune cartoon */
.apb-profil__avatar-col .apb-profil__avatar,
.apb-profil__avatar-col img {
    border: 4px solid rgba(255,255,255,.98) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08) !important;
    outline: none !important;
}

/* H1 profil — typography display */
.apb-profil__nom {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 4px;
}
.apb-profil__slogan {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,.78);
    font-style: italic;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Metadata hero : chip/pill nettement visibles sur fond sombre */
.apb-profil__meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0 14px;
}
.apb-profil__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.18) !important;
    color: rgba(255,255,255,.95) !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13px;
    line-height: 1.3;
}
.apb-profil__meta-item svg {
    color: rgba(255,255,255,.75);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Trust chips hero : même style pill que les metadata pour cohérence visuelle */
.apb-profil__hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.apb-profil__trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,.22) !important;
    color: rgba(255,255,255,.95) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    transition: background var(--apb-t-fast);
}
.apb-profil__trust-chip:hover { background: rgba(255,255,255,.30) !important; }
.apb-profil__trust-chip svg { color: rgba(255,255,255,.8); flex-shrink: 0; }

/* Rating row hero — visible uniquement si avis réels */
.apb-profil__rating-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    background: rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.apb-profil__note-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.apb-profil__avis-link {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}
.apb-profil__avis-link:hover { color: #fff; text-decoration: underline; }

/* =========================================================================
   7. FILTRES archive — focus ring + typography
   ========================================================================= */
.apb-archive__filters,
.apb-filters {
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: var(--apb-elev-1);
}
.apb-archive__filters label,
.apb-filters label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #4B5563;
}
.apb-archive__filters input,
.apb-archive__filters select,
.apb-filters input,
.apb-filters select {
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    padding: 9px 12px;
    transition: border-color var(--apb-t-fast), box-shadow var(--apb-t-fast);
}
.apb-archive__filters input:focus,
.apb-archive__filters select:focus,
.apb-filters input:focus,
.apb-filters select:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: var(--apb-elev-focus);
}

.apb-filters__submit,
.apb-archive__filters [type="submit"] {
    background: #185FA5;
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background var(--apb-t-fast), transform var(--apb-t-fast);
}
.apb-filters__submit:hover {
    background: #0C447C;
    transform: translateY(-1px);
    box-shadow: var(--apb-elev-2);
}

/* =========================================================================
   8. TITRES SECTION profil — accent bar subtile
   ========================================================================= */
.apb-profil__card > h2,
.apb-profil__card-title {
    position: relative;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.015em;
    color: #1A1A2E;
}
.apb-profil__card > h2::before,
.apb-profil__card-title::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #185FA5 0%, #E6892A 100%);
}

/* =========================================================================
   9. RESULTS COUNT — texte simple en bleu, pas une pill (avant : tronquait)
   ========================================================================= */
.apb-archive__count,
.apb-archive__results-count {
    display: block;
    padding: 0;
    background: transparent;
    color: #185FA5;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    margin: 12px 0 6px;
    white-space: normal;
}

/* =========================================================================
   10. REDUCED-MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    .apb-pro-card,
    .apb-badge,
    .apb-profil__trust-chip,
    .apb-filters__submit { transition: none !important; }
    .apb-pro-card:hover,
    .apb-filters__submit:hover { transform: none; }
}

/* =========================================================================
   11. MOBILE tweaks
   ========================================================================= */
@media (max-width: 640px) {
    .apb-profil__nom { font-size: 26px; }
    .apb-profil__slogan { font-size: 14px; }
    .apb-profil__meta-line { font-size: 12px; gap: 6px; }
    .apb-profil__meta-item { padding: 4px 10px; }
    .apb-pro-card__body { padding: 16px 16px 10px; }
    .apb-pro-card__titre { font-size: 17px; }
    .apb-pro-card__meta-row { gap: 6px; }
}

/* =========================================================================
   12. ANIMATIONS SOBRES (style popup AI : subtil, pas infantile)
   ========================================================================= */

/* Photo : zoom imperceptible au hover card (profondeur) */
.apb-pro-card .apb-pro-card__photo-wrap {
    overflow: hidden;
    display: block;
}
.apb-pro-card .apb-pro-card__photo,
.apb-pro-card .apb-pro-card__photo--placeholder {
    transition: transform .5s var(--apb-ease);
    will-change: transform;
}
.apb-pro-card:hover .apb-pro-card__photo,
.apb-pro-card:hover .apb-pro-card__photo--placeholder {
    transform: scale(1.04);
}

/* Stagger fade-in au chargement — 6 premières cards uniquement (au-dessus du fold) */
@keyframes apb-card-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.apb-pro-card {
    animation: apb-card-rise .55s var(--apb-ease) both;
}
.apb-archive__grid .apb-pro-card:nth-child(1)  { animation-delay: .02s; }
.apb-archive__grid .apb-pro-card:nth-child(2)  { animation-delay: .08s; }
.apb-archive__grid .apb-pro-card:nth-child(3)  { animation-delay: .14s; }
.apb-archive__grid .apb-pro-card:nth-child(4)  { animation-delay: .20s; }
.apb-archive__grid .apb-pro-card:nth-child(5)  { animation-delay: .26s; }
.apb-archive__grid .apb-pro-card:nth-child(6)  { animation-delay: .32s; }
.apb-archive__grid .apb-pro-card:nth-child(n+7) { animation-delay: .38s; }

/* Badges : micro fade-in après la card (ordre de lecture naturel) */
@keyframes apb-chip-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.apb-pro-card__badges .apb-badge {
    animation: apb-chip-fade .4s var(--apb-ease) both;
    animation-delay: .35s;
}
.apb-pro-card__badges .apb-badge:nth-child(2) { animation-delay: .45s; }
.apb-pro-card__badges .apb-badge:nth-child(3) { animation-delay: .55s; }

/* CTA card : flèche micro-slide au hover (signal actionnable) */
.apb-pro-card__footer .apb-btn--primary {
    position: relative;
    transition: background var(--apb-t-fast), box-shadow var(--apb-t-fast), transform var(--apb-t-fast);
}
.apb-pro-card__footer .apb-btn--primary::after {
    content: " →";
    display: inline-block;
    transition: transform .25s var(--apb-ease);
}
.apb-pro-card__footer .apb-btn--primary:hover::after {
    transform: translateX(3px);
}
.apb-pro-card__footer .apb-btn--primary:hover {
    box-shadow: 0 4px 12px rgba(24, 95, 165, .25);
}

/* Respect prefers-reduced-motion : désactive tout mouvement */
@media (prefers-reduced-motion: reduce) {
    .apb-pro-card,
    .apb-pro-card__badges .apb-badge,
    .apb-pro-card .apb-pro-card__photo,
    .apb-pro-card .apb-pro-card__photo--placeholder,
    .apb-pro-card__footer .apb-btn--primary,
    .apb-pro-card__footer .apb-btn--primary::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================================================
   13. ICONES SVG — stars, tarif, dispo (remplace emoji infantiles)
   ========================================================================= */

/* Étoiles : SVG gold rating (standard Google/Airbnb) — PAS orange brand */
.apb-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}
.apb-star {
    fill: none;
    stroke: #CBD5E1;
    stroke-width: 1.5;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.apb-star--filled {
    fill: #FBBF24;
    stroke: #F59E0B;
}

/* Tarif pill : fond bleu clair brand, icon + texte */
.apb-pro-card__tarif {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: #EBF3FB;
    color: #0C447C;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12.5px;
    border: 1px solid #DBEAFE;
    letter-spacing: -.005em;
}
.apb-pro-card__tarif svg {
    color: #185FA5;
    flex-shrink: 0;
}

/* Dispo : SVG + texte, couleurs sémantiques (vert/ambre soft, pas fluo) */
.apb-pro-card__dispo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    margin: 4px 0 6px;
    letter-spacing: -.005em;
}
.apb-pro-card__dispo--ok {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.apb-pro-card__dispo--ok svg { color: #10B981; }
.apb-pro-card__dispo--warn {
    background: #FEF3C7;
    color: #78350F;
    border: 1px solid #FDE68A;
}
.apb-pro-card__dispo--warn svg { color: #D97706; }
.apb-pro-card__dispo-ico { flex-shrink: 0; }

/* =========================================================================
   14. FAVORIS : glassmorphism spectaculaire
   ========================================================================= */
.apb-pro-card .apb-fav-btn,
.apb-pro-card__fav-btn {
    position: relative;
    z-index: 3;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
            backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .6) !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, .08),
        0 0 0 1px rgba(12, 68, 124, .05) !important;
    color: #4B5563;
    transition: transform .25s var(--apb-ease), color .25s var(--apb-ease), box-shadow .25s var(--apb-ease);
}
.apb-pro-card .apb-fav-btn:hover,
.apb-pro-card__fav-btn:hover {
    transform: scale(1.12);
    color: #DC2626;
    background: #fff !important;
    box-shadow:
        0 8px 22px rgba(220, 38, 38, .22),
        0 0 0 1px rgba(220, 38, 38, .15) !important;
}
.apb-pro-card .apb-fav-btn--active,
.apb-pro-card .apb-fav-btn.is-active {
    color: #DC2626;
}
.apb-pro-card .apb-fav-btn--active svg,
.apb-pro-card .apb-fav-btn.is-active svg {
    fill: #DC2626;
}

/* =========================================================================
   15. PHOTO : overlay gradient subtile au hover (profondeur cinema)
   ========================================================================= */
.apb-pro-card__photo-wrap {
    position: relative;
    overflow: hidden;
}
.apb-pro-card__photo-wrap::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 68, 124, .18) 100%);
    opacity: 0;
    transition: opacity .4s var(--apb-ease);
    pointer-events: none;
    z-index: 1;
}
.apb-pro-card:hover .apb-pro-card__photo-wrap::after { opacity: 1; }

/* Placeholder photo — dégradé bleu brand (plus la lettre sur fond gris triste) */
.apb-pro-card__photo--placeholder {
    background: linear-gradient(135deg, #EBF3FB 0%, #DBEAFE 50%, #BFDBFE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.apb-pro-card__photo--placeholder span {
    font-size: 68px;
    font-weight: 900;
    color: rgba(12, 68, 124, .35);
    letter-spacing: -.02em;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================================================================
   16. PROFIL PUBLIC cards (À propos, Tarifs, Avis, sidebar) — spectacular
   Override sur .apb-profil__card + sidebar (cohérence pop-up AI)
   ========================================================================= */
.apb-profil__card:not(.apb-profil__card--sticky) {
    background: #fff !important;
    border: 1px solid #EEF2F7 !important;
    border-radius: 20px !important;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, .04),
        0 4px 14px rgba(16, 24, 40, .05) !important;
    padding: 28px !important;
    transition: box-shadow .35s var(--apb-ease), transform .35s var(--apb-ease), border-color .35s var(--apb-ease) !important;
}
/* Card sticky contact : fond bleu brand (pas blanc) */
.apb-profil__card.apb-profil__card--sticky {
    background: var(--apbp-contact-bg, #185FA5) !important;
    border-color: var(--apbp-primary-dk, #0C447C) !important;
    color: #fff !important;
}
.apb-profil__card:hover {
    transform: translateY(-3px);
    border-color: #DBEAFE !important;
    box-shadow:
        0 16px 32px -8px rgba(24, 95, 165, .15),
        0 4px 12px -2px rgba(24, 95, 165, .06) !important;
}

/* Sidebar "Contacter" card sticky — ring bleu plus profond + garde le fond bleu brand */
.apb-profil__card--sticky {
    border-radius: 20px !important;
    box-shadow:
        0 12px 32px -6px rgba(12, 68, 124, .35),
        0 0 0 1px rgba(255, 255, 255, .08) inset !important;
}
/* Sidebar "Informations" (sans fond bleu) */
.apb-profil__sidebar .apb-profil__card:not(.apb-profil__card--sticky) {
    border-radius: 20px !important;
}

/* Titres des cartes : accent bar bleu gradient (déjà présent sec.8, renforcé ici) */
.apb-profil__card:not(.apb-profil__card--sticky) h2,
.apb-profil__card:not(.apb-profil__card--sticky) h3 {
    color: #0C447C !important;
    font-weight: 800 !important;
    letter-spacing: -.015em;
}
/* Titres dans la card contact bleue : blanc */
.apb-profil__card--sticky h2,
.apb-profil__card--sticky h3,
.apb-profil__card--sticky .apb-profil__card-title {
    color: #fff !important;
}

/* =========================================================================
   17. DASHBOARD — cards spectacular + via arancio
   ========================================================================= */
.apb-sidebar-card,
.apb-dashboard__card,
.apb-plan-card,
.apb-favoris__card,
.apb-dash-header {
    border-radius: 20px !important;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, .04),
        0 4px 14px rgba(16, 24, 40, .05) !important;
    border: 1px solid #EEF2F7 !important;
    transition: box-shadow .35s var(--apb-ease), transform .35s var(--apb-ease) !important;
}
.apb-sidebar-card:hover,
.apb-dashboard__card:hover,
.apb-plan-card:hover,
.apb-favoris__card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 32px -8px rgba(24, 95, 165, .15),
        0 4px 12px -2px rgba(24, 95, 165, .06) !important;
}

/* Dashboard : premium border-top arancio → bleu gradient ring */
.apb-favoris__card--premium {
    border-top: none !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.apb-favoris__card--premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, #0C447C 0%, #3B82F6 40%, #0C447C 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Dashboard : badge premium arancio → bleu gradient */
.apb-dash-header__badge-premium {
    background: linear-gradient(135deg, #185FA5 0%, #0C447C 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(12, 68, 124, .25);
}

/* Dashboard : prix promo + plan-card__periode arancio → bleu brand */
.apb-plan-card__prix--promo,
.apb-plan-card__periode {
    color: #185FA5 !important;
}

/* Status pending : arancio → gris neutre */
.apb-status--pending {
    background: #FEF3C7 !important;
    color: #78350F !important;
    border: 1px solid #FDE68A;
}

/* =========================================================================
   18. CATEGORIES GRID — fix "gap visuel" (dernière ligne incomplète)
   ========================================================================= */
.apb-catgrid__list {
    grid-auto-flow: dense !important;
    justify-content: start;
    /* auto-flow:dense fait remplir les trous automatiquement */
}
/* Les items gardent leur aspect : on évite qu'ils s'étirent anormalement */
.apb-catgrid__item {
    min-height: 88px;
}

/* =========================================================================
   19. KILL ARANCIO LEGACY — override frontend.css duplicates
   ========================================================================= */

/* frontend.css duplique .apb-pro-card--premium avec border-color #FED7AA et
   box-shadow #FDBA74 — les TUER explicitement (la règle suivante dans la
   cascade gagnait). Notre design v2 utilise le ::before bleu gradient. */
.apb-pro-card.apb-pro-card--premium {
    border-color: transparent !important;
    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        0 4px 14px rgba(16,24,40,.05) !important;
}
.apb-pro-card.apb-pro-card--premium:hover {
    border-color: transparent !important;
    box-shadow:
        0 28px 56px -12px rgba(24, 95, 165, .30),
        0 12px 20px -4px rgba(24, 95, 165, .12) !important;
}

/* frontend.css : badge TVA des cards premium = shimmer ARANCIO animato — KILL */
.apb-pro-card.apb-pro-card--premium .apb-badge.apb-badge--vies {
    background: var(--apb-chip-vies-bg) !important;
    color: var(--apb-chip-vies-fg) !important;
    border-color: var(--apb-chip-vies-bd) !important;
    animation: none !important;
    background-size: auto !important;
}

/* =========================================================================
   20. CHIPS COMPACTS — wrap autorisé pour éviter la troncature des langues
   longues (NL/EN : "BTW geverifieerd", "Multi-diensten", etc.)
   ========================================================================= */
.apb-pro-card__badges {
    flex-wrap: wrap !important;
    gap: 4px !important;
    min-width: 0;
}
.apb-pro-card__badges .apb-badge {
    padding: 4px 9px !important;
    font-size: 11px !important;
    gap: 4px !important;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}
.apb-pro-card__badges .apb-badge svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0;
}

/* Sur très petits écrans : autoriser le wrap si vraiment nécessaire */
@media (max-width: 380px) {
    .apb-pro-card__badges {
        flex-wrap: wrap !important;
    }
}

/* =========================================================================
   21. ICONES BAS DE CARD : alignement + spacing (icon-text)
   Tarif & dispo : SVG vertically aligné + gap propre
   ========================================================================= */
.apb-pro-card__tarif,
.apb-pro-card__dispo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    line-height: 1.3 !important;
    vertical-align: middle;
}
.apb-pro-card__tarif > svg,
.apb-pro-card__dispo > svg,
.apb-pro-card__dispo .apb-pro-card__dispo-ico {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: block; /* évite l'inline-baseline shift */
}
.apb-pro-card__tarif > span,
.apb-pro-card__dispo > span {
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

/* =========================================================================
   22. SPACING archive — padding bas du grid avant footer
   ========================================================================= */
.apb-pro-grid {
    padding-bottom: 64px !important;
    margin-bottom: 24px;
}
.apb-archive__toolbar {
    margin-bottom: 24px;
}

/* =========================================================================
   23. MOBILE — padding aéré + footer card stack vertical
   ========================================================================= */
@media (max-width: 640px) {
    /* Grid bottom padding réduit sur mobile */
    .apb-pro-grid {
        padding-bottom: 40px !important;
    }

    /* Card body : padding plus aéré mobile */
    .apb-pro-card__body {
        padding: 16px 16px 12px !important;
    }

    /* Card footer : stack vertical (tarif au-dessus, CTA full width dessous) */
    .apb-pro-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }
    .apb-pro-card__footer .apb-pro-card__tarif {
        align-self: flex-start;
    }
    .apb-pro-card__footer .apb-btn--primary {
        width: 100%;
        justify-content: center;
    }

    /* Premium ribbon : plus petit sur mobile */
    .apb-pro-card--premium::after {
        font-size: 9px;
        padding: 4px 9px;
        top: 10px;
        left: 10px;
    }

    /* Chips : autorisés à wrap sur mobile (lisibilité prioritaire) */
    .apb-pro-card__badges {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    .apb-pro-card__badges .apb-badge {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    /* Title MOBILE : reste largest element (battant le 13.5px desc) */
    .apb-pro-card__titre {
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    /* Tags : 2 max visibles + "more" */
    .apb-pro-card__tags {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .apb-pro-grid {
        padding-bottom: 32px !important;
        gap: 14px;
    }
    .apb-pro-card__body {
        padding: 14px 14px 10px !important;
    }
}
