/* ============================================================
   TROTANNONCES — Espaces de vente pro (annuaire + vitrines)
   Tokens : trot-design-system-2026.css. Sélecteurs préfixés .trot-pro-*
   (feuille chargée sur toutes les pages, sans effet ailleurs).
   ============================================================ */

.trot-pro-2026 {
    color: var(--ink);
    font-family: var(--font);
    line-height: var(--trot-lh-copy);
    -webkit-font-smoothing: antialiased;
}

.trot-pro-2026 *,
.trot-pro-2026 *::before,
.trot-pro-2026 *::after {
    box-sizing: border-box;
}

.trot-pro-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 24px 72px;
}

.trot-pro-2026 .trot-pro-wrap a,
.trot-pro-home a.trot-pro-home-item {
    text-decoration: none;
}

/* Spécificité (0,2,1) : passe devant les titres du kit Elementor (.elementor-kit-N h1). */
.trot-pro-2026 .trot-pro-wrap :is(h1, h2, h3):not(.card-title) {
    font-family: var(--font-cond);
    color: var(--prune-ink);
    letter-spacing: var(--trot-tracking-display);
    margin: 0;
}

.trot-pro-kicker {
    display: inline-block;
    font-size: 12.5px;
    font-weight: var(--trot-fw-semibold);
    letter-spacing: var(--trot-tracking-kicker);
    text-transform: uppercase;
    color: var(--violine);
}

.trot-pro-logo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-cond);
    font-weight: var(--trot-fw-bold);
    font-size: 30px;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--prune) 0%, var(--violine) 100%);
}

/* ---------- Fil d'Ariane ---------- */
.trot-pro-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: var(--trot-fs-caption);
    color: var(--ink-soft);
}

.trot-pro-2026 .trot-pro-crumbs a {
    color: var(--ink-muted);
}

.trot-pro-2026 .trot-pro-crumbs a:hover {
    color: var(--violine);
}

/* ============================================================
   Vitrine
   ============================================================ */
.trot-pro-hero {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.trot-pro-banner {
    height: 140px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(201, 139, 196, .35) 0%, transparent 55%),
        linear-gradient(120deg, var(--prune-deep) 0%, var(--prune) 55%, var(--violine) 100%);
    background-size: cover;
    background-position: center;
}

.trot-pro-hero.has-banner .trot-pro-banner {
    height: auto;
    aspect-ratio: 1280 / 250;
    max-height: 250px;
}

.trot-pro-identity {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 22px;
    padding: 0 28px 26px;
    margin-top: -52px;
}

.trot-pro-logo {
    width: 128px;
    height: 128px;
    border-radius: 22px;
    border: 4px solid #fff;
    background: #fff;
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    position: relative;
}

/* Logo toujours entier : contain + marge intérieure, jamais recadré. */
.trot-pro-2026 .trot-pro-logo img,
.trot-pro-tile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #fff;
    display: block;
}

.trot-pro-heading {
    padding-top: 60px;
    min-width: 0;
}

.trot-pro-2026 .trot-pro-heading h1 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: var(--trot-lh-title);
    font-weight: var(--trot-fw-bold);
    text-transform: uppercase;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.trot-pro-company {
    margin: 4px 0 0;
    font-size: var(--trot-fs-body-sm);
    color: var(--ink-muted);
}

.trot-pro-tagline {
    margin: 8px 0 0;
    font-size: var(--trot-fs-body);
    color: var(--ink);
}

.trot-pro-hero-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: var(--radius-card);
    background: var(--bg-tint);
    min-width: 120px;
}

.trot-pro-hero-stats .num {
    font-family: var(--font-cond);
    font-size: 34px;
    font-weight: var(--trot-fw-bold);
    color: var(--prune);
    line-height: 1;
}

.trot-pro-hero-stats .lab {
    font-size: var(--trot-fs-caption);
    color: var(--ink-muted);
    text-align: center;
}

.trot-pro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}

.trot-pro-block + .trot-pro-block {
    margin-top: 32px;
}

.trot-pro-2026 .trot-pro-block h2 {
    font-size: var(--trot-fs-pro-title);
    font-weight: var(--trot-fw-semibold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.trot-pro-text {
    font-size: var(--trot-fs-body);
    color: var(--ink);
    max-width: 72ch;
}

.trot-pro-text p {
    margin: 0 0 12px;
}

.trot-pro-empty {
    color: var(--ink-muted);
}

/* Cartes d'annonces : mêmes titres que l'accueil (.trot-home-2026 .card-title), hors kit Elementor. */
.trot-pro-2026 .trot-pro-wrap h3.card-title {
    margin: 0;
    font-family: var(--font);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    line-height: var(--trot-lh-card);
    font-size: var(--trot-fs-card-title);
    color: var(--prune-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trot-pro-listings .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.trot-pro-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trot-pro-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.trot-pro-2026 .trot-pro-card h2 {
    font-size: 20px;
    font-weight: var(--trot-fw-semibold);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.trot-pro-contact {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trot-pro-2026 .trot-pro-contact a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: var(--trot-fw-medium);
    overflow-wrap: anywhere;
    transition: background-color .18s ease;
}

.trot-pro-2026 .trot-pro-contact a:hover {
    background: var(--violine-soft);
}

.trot-pro-contact svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--violine);
}

.trot-pro-contact small {
    display: block;
    font-size: 12px;
    font-weight: var(--trot-fw-regular);
    color: var(--ink-soft);
}

.trot-pro-contact-none {
    font-size: var(--trot-fs-body-sm);
    color: var(--ink-muted);
}

.trot-pro-cta {
    width: 100%;
}

.trot-pro-cta svg {
    width: 16px;
    height: 16px;
}

.trot-pro-since {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: var(--trot-fs-caption);
    color: var(--ink-soft);
}

.trot-pro-since svg {
    width: 15px;
    height: 15px;
}

.trot-pro-2026 .trot-pro-back {
    font-size: var(--trot-fs-body-sm);
    color: var(--prune);
    padding-left: 4px;
}

.trot-pro-2026 .trot-pro-back:hover {
    color: var(--violine);
}

/* ============================================================
   Annuaire
   ============================================================ */
.trot-pro-dir-head {
    max-width: 760px;
    margin: 8px 0 26px;
}

.trot-pro-2026 .trot-pro-dir-head h1 {
    font-size: var(--trot-fs-section-title);
    line-height: var(--trot-lh-title);
    font-weight: var(--trot-fw-bold);
    text-transform: uppercase;
    margin-top: 6px;
}

.trot-pro-dir-head p {
    margin: 10px 0 0;
    font-size: var(--trot-fs-body-lg);
    color: var(--ink-muted);
}

.trot-pro-dir-head .trot-pro-partners-link {
    display: inline-block;
    margin-top: 10px;
    font-size: var(--trot-fs-body-sm);
    font-weight: var(--trot-fw-semibold);
    color: var(--prune);
}

.trot-pro-2026 .trot-pro-dir-head .trot-pro-partners-link:hover {
    color: var(--violine);
}

.trot-pro-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.trot-pro-filter-group {
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 12px;
    font-weight: var(--trot-fw-semibold);
    letter-spacing: var(--trot-tracking-caps);
    text-transform: uppercase;
    color: var(--ink-soft);
}

.trot-pro-filters .chip {
    color: var(--ink-muted);
    font-size: 13.5px;
    padding: 7px 14px;
}

.trot-pro-filters .chip span {
    display: inline-flex;
    min-width: 20px;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--violine-soft);
    color: var(--violine-dark);
    font-size: 12px;
    font-weight: var(--trot-fw-semibold);
}

.trot-pro-filters .chip:hover {
    border-color: var(--violine-border);
    color: var(--prune);
}

.trot-pro-filters .chip.is-active {
    background: var(--prune);
    border-color: var(--prune);
    color: #fff;
}

.trot-pro-filters .chip.is-active span {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.trot-pro-filters .chip.is-empty:not(.is-active) {
    opacity: .6;
}

.trot-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.trot-pro-2026 .trot-pro-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.trot-pro-2026 .trot-pro-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pop);
    border-color: var(--violine-border);
}

.trot-pro-tile-banner {
    display: block;
    height: 72px;
    background: linear-gradient(120deg, var(--prune-deep) 0%, var(--prune) 60%, var(--violine) 100%);
    background-size: cover;
    background-position: center;
}

.trot-pro-tile-logo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    flex: none;
}

.trot-pro-tile > .trot-pro-tile-logo {
    margin: -36px 0 0 18px;
}


.trot-pro-tile-logo .trot-pro-logo-initials {
    font-size: 22px;
}

.trot-pro-tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px 18px;
    flex: 1;
}

.trot-pro-tile-rub {
    font-size: 12px;
    font-weight: var(--trot-fw-semibold);
    letter-spacing: var(--trot-tracking-caps);
    text-transform: uppercase;
    color: var(--violine);
}

.trot-pro-tile-name {
    font-family: var(--font-cond);
    font-size: 22px;
    font-weight: var(--trot-fw-bold);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--prune-ink);
}

.trot-pro-tile-title {
    font-size: var(--trot-fs-body-sm);
    color: var(--ink-muted);
}

.trot-pro-tile-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--trot-fs-caption);
    color: var(--ink-soft);
}

.trot-pro-tile-meta svg {
    width: 14px;
    height: 14px;
}

.trot-pro-tile-cta {
    margin-top: auto;
    padding-top: 10px;
    font-size: var(--trot-fs-body-sm);
    font-weight: var(--trot-fw-semibold);
    color: var(--prune);
}

.trot-pro-empty-state {
    padding: 40px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    text-align: center;
    color: var(--ink-muted);
}

.trot-pro-2026 .trot-pro-empty-state h1 {
    font-size: 28px;
    margin-bottom: 18px;
}

.trot-pro-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-tint);
    border: 1px solid var(--violine-border);
}

.trot-pro-join strong {
    font-family: var(--font-cond);
    font-size: 22px;
    text-transform: uppercase;
    color: var(--prune-ink);
}

.trot-pro-join p {
    margin: 4px 0 0;
    color: var(--ink-muted);
    max-width: 70ch;
}

.trot-pro-join .btn {
    flex: none;
}

/* ============================================================
   Accueil : « Espaces de vente à la une » (sous les pros à la une)
   ============================================================ */
.trot-home-2026 .section-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: flex-end;
}

.trot-pro-home {
    margin-top: 28px;
}

.trot-pro-home h3.trot-pro-home-title {
    margin: 0 0 14px;
    font-family: var(--font-cond);
    font-size: 20px;
    font-weight: var(--trot-fw-semibold);
    text-transform: uppercase;
    color: var(--prune-ink);
}

.trot-pro-home-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.trot-pro-home .trot-pro-home-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.trot-pro-home .trot-pro-home-item:hover {
    border-color: var(--violine-border);
    box-shadow: var(--shadow-card);
}

.trot-pro-home-item .trot-pro-tile-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border-width: 0;
    box-shadow: none;
    background: var(--bg-soft);
}

.trot-pro-home-item .trot-pro-logo-initials {
    font-size: 18px;
}

.trot-pro-home-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trot-pro-home-text strong {
    font-family: var(--font-cond);
    font-size: 17px;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--prune-ink);
    overflow-wrap: anywhere;
}

.trot-pro-home-text small {
    font-size: 12.5px;
    color: var(--ink-muted);
}

/* ============================================================
   Espace membre : « Mon espace de vente »
   ============================================================ */
.trot-pro-manage .trot-stats-overview {
    margin-bottom: 24px;
}

.trot-pro-stat-sub {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.trot-pro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.trot-pro-span-2 {
    grid-column: 1 / -1;
}

.trot-pro-form select,
.trot-pro-form textarea {
    width: 100%;
}

.trot-pro-manage .trot-pro-url a {
    font-weight: var(--trot-fw-semibold);
    color: var(--prune);
    overflow-wrap: anywhere;
}

.trot-pro-upload-preview {
    display: block;
    margin: 6px 0 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    object-fit: contain;
}

.trot-pro-upload-preview.is-logo {
    width: 110px;
    height: 110px;
}

.trot-pro-upload-preview.is-banner {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1280 / 250;
    object-fit: cover;
}

.trot-pro-remove {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: var(--trot-fw-regular) !important;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.trot-pro-error {
    background: #f8d7da;
    color: #721c24;
}

.trot-pro-error ul {
    margin: 6px 0 0 18px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .trot-pro-layout {
        grid-template-columns: 1fr;
    }

    .trot-pro-aside {
        position: static;
        order: -1;
    }

    .trot-pro-home-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .trot-pro-wrap {
        padding: 18px 16px 56px;
    }

    .trot-pro-banner {
        height: 96px;
    }

    .trot-pro-identity {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
        padding: 0 18px 20px;
        margin-top: -44px;
    }

    .trot-pro-logo {
        width: 92px;
        height: 92px;
        border-radius: 18px;
    }

    .trot-pro-heading {
        padding-top: 0;
    }

    .trot-pro-hero-stats {
        flex-direction: row;
        gap: 8px;
        justify-self: start;
        padding: 8px 14px;
    }

    .trot-pro-hero-stats .num {
        font-size: 24px;
    }

    .trot-pro-join {
        flex-direction: column;
        align-items: flex-start;
    }

    .trot-pro-form-grid {
        grid-template-columns: 1fr;
    }

    .trot-pro-home-list {
        grid-template-columns: 1fr;
    }

    .trot-home-2026 .section-ctas {
        justify-content: flex-start;
    }
}

.trot-pro-home-item .trot-pro-tile-logo img {
    padding: 4px;
}

/* Annuaire / vitrines : le thème insère son propre titre de page (invisible, ~100 px vides
   au-dessus du contenu). On le retire : le titre est déjà dans la page. */
main.site-main:has(.trot-pro-2026) > .page-header { display: none; }
