/* =========================================================
   ARCHIVE PROFESSIONNELS
   Version harmonisée avec l'univers Caniguide
   Couvre :
   .professionnels-hub-wrapper   -> /professionnels/
   .professionnels-type-wrapper  -> /professionnels/{type}/
========================================================= */

/* =========================================================
   WRAPPERS GLOBAUX
========================================================= */

.professionnels-hub-wrapper,
.professionnels-type-wrapper {
    width: 100%;
    background: #fff;
    padding-bottom: 32px;
}

/* =========================================================
   HERO
========================================================= */

.professionnels-hub-hero,
.professionnels-type-hero {
    padding: clamp(38px, 6vw, 64px) 20px clamp(26px, 4vw, 30px);
    text-align: center;
    background: linear-gradient(180deg, #f7f5f1 0%, #ffffff 100%);
    margin-bottom: 0;
}

.professionnels-hub-hero .hero-inner,
.professionnels-type-hero .hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.professionnels-hub-title,
.professionnels-type-title {
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--cg-primary);
    text-wrap: balance;
}

.professionnels-hub-subtitle,
.professionnels-type-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--cg-text-soft);
}

.professionnels-type-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

/* =========================================================
   CONTENU GLOBAL
========================================================= */

.professionnels-type-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 24px;
}

/* =========================================================
   SECTIONS HUB
========================================================= */

.professionnels-hub-types,
.professionnels-hub-featured {
    padding: 30px 0;
}

.professionnels-hub-featured {
    border-top: 1px solid #eeeeee;
}

.professionnels-hub-section-title {
    margin: 0 0 18px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cg-primary);
}

/* =========================================================
   TYPES GRID
========================================================= */

.professionnels-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.professionnels-type-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    box-shadow: var(--cg-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.professionnels-type-card:hover {
    border-color: rgba(69, 45, 22, 0.18);
    box-shadow: var(--cg-shadow-md);
    background: #fffdfb;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.professionnels-type-card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--cg-primary);
}

.professionnels-type-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--cg-text-soft);
}

.professionnels-type-card-cta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--cg-accent);
}

/* =========================================================
   LAYOUT ARCHIVE TYPE
========================================================= */

.professionnels-archive-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.professionnels-results-column {
    min-width: 0;
}

/* =========================================================
   BOUTON FILTRES MOBILE
========================================================= */

.professionnels-filters-toggle {
    display: none;
}

/* =========================================================
   SIDEBAR FILTRES
========================================================= */

.professionnels-sidebar {
    position: sticky;
    top: calc(var(--header-height, 0px) + 20px);
    max-height: calc(100vh - var(--header-height, 0px) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-self: start;
}

.professionnels-filters-wrapper {
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    padding: 18px;
    box-shadow: var(--cg-shadow-sm);
}

/* =========================================================
   HEADER FILTRES
========================================================= */

.professionnels-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--cg-border);
}

.professionnels-filters-header-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--cg-primary);
}

.professionnels-filters-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.professionnels-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-pill);
    background: #fff;
    color: var(--cg-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.professionnels-btn-reset:hover {
    background: #fffaf5;
    border-color: rgba(234, 125, 31, 0.28);
    color: var(--cg-accent);
}

.professionnels-btn-reset.active-reset {
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    color: #fff;
    box-shadow: 0 8px 16px rgba(234, 125, 31, 0.18);
}

.professionnels-btn-reset.active-reset:hover {
    background: var(--cg-accent-hover);
    border-color: var(--cg-accent-hover);
}

.professionnels-filters-close {
    display: none;
    border: none;
    border-radius: var(--cg-radius-pill);
    background: var(--cg-primary);
    color: #fff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   GROUPES DE FILTRES
========================================================= */

.pro-filter-group {
    margin-bottom: 14px;
}

.professionnels-filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cg-primary);
}

.pro-filter-group details {
    overflow: hidden;
    border: 1px solid var(--cg-border);
    border-radius: 12px;
    background: #fff;
}

.pro-filter-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    background: #fafafa;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cg-text);
}

.pro-filter-group summary::-webkit-details-marker {
    display: none;
}

.pro-filter-group summary::after {
    content: "▾";
    font-size: 0.78rem;
    color: var(--cg-text-muted);
    transition: transform 0.2s ease;
}

.pro-filter-group details[open] summary::after {
    transform: rotate(180deg);
}

.pro-filter-group details > div,
.pro-filter-group details > label,
.pro-filter-group details > select {
    padding: 10px 14px;
}

.pro-filter-group label {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--cg-text);
}

.pro-filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    flex: 0 0 16px;
}

.pro-filter-group select,
.pro-filter-group input[type="text"],
.pro-filter-group input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    appearance: none;
    background: #fff;
    font-size: 0.9rem;
    color: var(--cg-text);
    line-height: 1.2;
}

/* =========================================================
   TOOLBAR
========================================================= */

.professionnels-archive-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-md);
    box-shadow: var(--cg-shadow-sm);
}

.professionnels-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cg-text);
}

.professionnels-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.professionnels-desktop-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.professionnels-sort-label {
    font-weight: 700;
    color: var(--cg-text);
    white-space: nowrap;
}

.professionnels-sort-btn {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-pill);
    background: #fff;
    color: var(--cg-primary);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.professionnels-sort-btn:hover {
    background: #fffaf5;
    border-color: rgba(234, 125, 31, 0.28);
    color: var(--cg-accent);
}

.professionnels-sort-btn.active {
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    color: #fff;
}

#sort-professionnels {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    background: #fff;
    font-size: 0.88rem;
    color: var(--cg-text);
}

.professionnels-btn-reset-toolbar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--cg-border);
    border-radius: 50%;
    background: #fff;
    color: var(--cg-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.professionnels-btn-reset-toolbar:hover {
    background: #fffaf5;
    border-color: rgba(234, 125, 31, 0.28);
    color: var(--cg-accent);
}

.professionnels-btn-reset-toolbar.active-reset {
    display: inline-flex;
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    color: #fff;
    box-shadow: 0 8px 16px rgba(234, 125, 31, 0.18);
}

/* =========================================================
   RESULTS COUNT RESPONSIVE
========================================================= */

.results-count-compact {
    display: none;
}

/* =========================================================
   GRID PROFESSIONNELS
========================================================= */

.professionnels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

/* =========================================================
   CARD PROFESSIONNEL
========================================================= */

.professionnel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    box-shadow: var(--cg-shadow-sm);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.professionnel-card:hover {
    border-color: rgba(69, 45, 22, 0.18);
    box-shadow: var(--cg-shadow-md);
    background: #fffdfb;
}

.professionnel-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.professionnel-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.professionnel-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--cg-border);
}

.professionnel-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professionnel-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f3f4f6 0%, var(--cg-border) 100%);
}

.professionnel-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: var(--cg-radius-pill);
    background: rgba(28, 28, 28, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.professionnel-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 16px;
}

.professionnel-card-header {
    display: flex;
    align-items: flex-start;
    min-height: 2.7em;
    margin-bottom: 10px;
}

.professionnel-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--cg-primary);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.professionnel-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 32px;
    align-content: flex-start;
}

.professionnel-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--cg-radius-pill);
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.professionnel-tag.tag-primary {
    background: #fffaf5;
    color: var(--cg-accent);
    border-color: rgba(234, 125, 31, 0.18);
}

.professionnel-tag.tag-secondary {
    background: #f8f9fa;
    color: var(--cg-text-soft);
    border-color: #eceff2;
}

.professionnel-tag.tag-sous-type {
    background: #f0f4ff;
    color: #2d5be3;
    border-color: rgba(45, 91, 227, 0.2);
    font-weight: 500;
}

.professionnel-card-excerpt {
    margin-bottom: 12px;
}

.professionnel-card-excerpt p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--cg-text-soft);
}

.professionnel-card-infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}

.professionnel-info-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--cg-text);
}

.professionnel-info-item span:first-child {
    flex: 0 0 auto;
    font-size: 0.98rem;
    line-height: 1.1;
}

.professionnel-info-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.professionnel-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: auto;
    padding: 9px 12px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-pill);
    background: #fff;
    color: var(--cg-primary);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.professionnel-card:hover .professionnel-card-cta {
    background: #fffaf5;
    border-color: rgba(234, 125, 31, 0.28);
    color: var(--cg-accent);
}

/* =========================================================
   LOADING / EMPTY / ERROR
========================================================= */

.professionnels-loading,
.professionnels-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--cg-text-soft);
}

.professionnels-empty p,
.professionnels-loading p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid var(--cg-border);
    border-top-color: var(--cg-primary);
    border-radius: 50%;
    animation: professionnels-spin 0.8s linear infinite;
}

@keyframes professionnels-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   PAGINATION / LOAD MORE
   Repris sur la logique de page-races-liste.css
========================================================= */

.professionnels-pagination-row {
    position: relative;
    display: flex;
    align-items: center;
    margin: 38px 0;
}

.professionnels-pagination-seo {
    display: flex;
    gap: 8px;
    max-width: calc(50% - 170px);
    min-width: 0;
    overflow: hidden;
}

.professionnels-pagination-seo .page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    flex-wrap: nowrap;
}

.professionnels-pagination-seo .page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.professionnels-pagination-seo .page-numbers a,
.professionnels-pagination-seo .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    background: #fff;
    color: var(--cg-primary);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.professionnels-pagination-seo .page-numbers a:hover {
    background: #fffaf5;
    border-color: rgba(234, 125, 31, 0.28);
    color: var(--cg-accent);
    text-decoration: none;
}

.professionnels-pagination-seo .page-numbers .current {
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    color: #fff;
}

.professionnels-pagination-seo .page-numbers .dots {
    min-width: auto;
    padding-left: 2px;
    padding-right: 2px;
    border: none;
    background: transparent;
    color: var(--cg-text-soft);
}

.load-more-container-pros {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.professionnels-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 26px;
    border: none;
    border-radius: var(--cg-radius-pill);
    background: var(--cg-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.professionnels-btn-load-more:hover {
    background: var(--cg-primary-2);
    transform: translateY(-1px);
}

/* =========================================================
   PAGINATION SEO – COMPACT DESKTOP
========================================================= */

@media (min-width: 769px) {
    .professionnels-pagination-seo .page-numbers li:not(:first-child):not(:last-child) .prev,
    .professionnels-pagination-seo .page-numbers li:not(:first-child):not(:last-child) .next {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 1024px) {
    .professionnels-archive-layout {
        grid-template-columns: 1fr;
        align-items: unset;
    }

    .professionnels-filters-toggle {
        display: block;
        width: 100vw;
        margin: 0 -20px 18px -20px;
        padding: 14px 20px;
        border: none;
        background: var(--cg-primary);
        color: #fff;
        font-size: 0.96rem;
        font-weight: 800;
        line-height: 1.3 !important;
        position: sticky;
        top: var(--header-height, 0px);
        z-index: 9999;
        height: auto !important;
        cursor: pointer;
    }

    .professionnels-sidebar {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(17, 24, 39, 0.38);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10000;
        align-self: unset;
    }

    .professionnels-sidebar.open {
        transform: translateX(0);
    }

    .professionnels-filters-wrapper {
        width: min(420px, 100%);
        min-height: 100%;
        height: 100%;
        padding: 18px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .professionnels-filters-header {
        position: sticky;
        top: 0;
        z-index: 10001;
        margin: 0 -18px 16px;
        padding: 14px 18px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .professionnels-filters-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1023px) {
    .professionnels-hub-title,
    .professionnels-type-title {
        font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    }

    .professionnels-hub-subtitle,
    .professionnels-type-subtitle {
        font-size: 1rem;
    }

    .professionnels-types-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .professionnels-archive-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px 14px !important;
    }

    .professionnels-results-count {
        font-size: 0.9rem;
    }

    .professionnels-toolbar-right {
        gap: 6px !important;
        max-width: 220px !important;
    }

    #sort-professionnels {
        display: inline-block !important;
        width: 160px !important;
        min-width: 120px !important;
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
    }

    .professionnels-desktop-sort .professionnels-sort-btn {
        display: none !important;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 768px) {
    .professionnels-type-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .professionnels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .professionnel-card-image {
        aspect-ratio: 3 / 2;
    }

    .professionnel-card-content {
        padding: 12px 10px 14px;
    }

    .professionnel-card-header {
        min-height: 2.75em;
        margin-bottom: 8px;
    }

    .professionnel-card-title {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .professionnel-tag {
        width: 100%;
        justify-content: center;
        font-size: 0.72rem;
        padding: 5px 8px;
    }

    .professionnel-card-tags {
        min-height: 0;
        margin-bottom: 10px;
    }

    .professionnel-card-excerpt p {
        font-size: 0.78rem;
    }

    .professionnel-info-item {
        font-size: 0.78rem;
        gap: 4px;
    }

    .professionnel-info-item span:first-child {
        font-size: 0.92rem;
    }

    .professionnel-card-cta {
        font-size: 0.75rem;
        padding: 7px 10px;
        min-height: 34px;
    }

        .professionnels-pagination-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 22px 0 16px;
    }

    .load-more-container-pros {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        order: -1;
    }

    .professionnels-btn-load-more {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .professionnels-pagination-seo,
    .navigation.pagination,
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .professionnels-pagination-seo .page-numbers {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .results-count-full {
        display: none;
    }

    .results-count-compact {
        display: inline;
        font-weight: 700;
    }
}

@media (max-width: 640px) {
    .professionnels-hub-hero,
    .professionnels-type-hero {
        padding: 34px 16px 20px;
    }

    .professionnels-hub-title,
    .professionnels-type-title {
        font-size: 1.78rem;
    }

    .professionnels-hub-subtitle,
    .professionnels-type-subtitle {
        font-size: 0.97rem;
        line-height: 1.65;
    }

    .professionnels-hub-types,
    .professionnels-hub-featured {
        padding: 24px 0;
    }

    .professionnels-types-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .professionnels-type-card {
        padding: 14px;
        border-radius: var(--cg-radius-md);
    }

    .professionnels-archive-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .professionnels-toolbar-right {
        width: 100%;
        max-width: none !important;
        justify-content: space-between;
    }

    #sort-professionnels {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .professionnels-grid {
        gap: 12px;
    }

    .professionnel-card-content {
        padding: 10px 9px 12px;
    }

    .professionnel-card-header {
        min-height: 2.9em;
    }

    .professionnel-card-title {
        font-size: 0.88rem;
    }

    .professionnel-card-cta {
        font-size: 0.72rem;
    }
}

@media (min-width: 769px) {
    #sort-professionnels {
        display: none;
    }
}

@media (max-width: 768px) {
    .professionnels-desktop-sort {
        display: none;
    }
}