/* En-tête de l'annuaire : fil d'Ariane et bloc titre.
   Les couleurs passent toutes par des variables portées par .vendor-directory, et le thème
   sombre ne redéfinit que ces variables. Écrire les règles sombres en doublon de sélecteur
   obligeait à gagner une bataille de spécificité contre les règles claires — et la perdre
   se voyait uniquement à l'œil, sur un seul mot du fil d'Ariane. */

.vendor-directory {
    --vendor-primary: #1b1b1b;
    --vendor-secondary: #c9a45b;

    /* Rose de marque : réservé aux aplats et aux icônes. Sur du texte fin il tombe à 3,4:1,
       sous le seuil AA — d'où une encre dédiée, plus foncée, comme sur la fiche gin. */
    --vendor-accent: #BC70A4;
    --vendor-ink: #7a2e57;
    --vendor-on-ink: #fff;

    --vendor-crumb-bg: rgba(255, 255, 255, 0.6);
    --vendor-crumb-border: rgba(0, 0, 0, 0.06);
    --vendor-crumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    --vendor-crumb-sep: rgba(0, 0, 0, 0.35);
    --vendor-crumb-active: #2c2c34;

    --vendor-hero-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(248, 236, 234, 0.78));
    --vendor-hero-border: rgba(188, 112, 164, 0.22);
    --vendor-kicker: #7a4a66;
    --vendor-title: #181824;
    --vendor-body: #3d4450;

    --vendor-chip-bg: rgba(255, 255, 255, 0.75);
    --vendor-chip-border: rgba(188, 112, 164, 0.28);
    --vendor-chip-text: #4a3244;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .vendor-directory {
    --vendor-accent: #e8b8d8;
    --vendor-ink: #e8b8d8;
    --vendor-on-ink: #1f1a1e;

    --vendor-crumb-bg: rgba(24, 26, 32, 0.65);
    --vendor-crumb-border: rgba(255, 255, 255, 0.08);
    --vendor-crumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    --vendor-crumb-sep: rgba(255, 255, 255, 0.35);
    --vendor-crumb-active: #f0f1f4;

    --vendor-hero-bg: linear-gradient(150deg, rgba(29, 31, 43, 0.96), rgba(22, 24, 34, 0.96));
    --vendor-hero-border: rgba(255, 255, 255, 0.13);
    --vendor-kicker: #d5a8ca;
    --vendor-title: #f3eefb;
    --vendor-body: #ccd3e0;

    --vendor-chip-bg: rgba(255, 255, 255, 0.06);
    --vendor-chip-border: rgba(255, 255, 255, 0.14);
    --vendor-chip-text: #e6e2ee;
}

/* ---------- Fil d'Ariane ----------
   Même traitement en pilule que .gin-breadcrumb sur la fiche gin : les deux pages sont des
   entrées de catalogue, elles doivent se reconnaître au premier coup d'œil. */

.vendor-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider: '';
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
    background: var(--vendor-crumb-bg);
    border: 1px solid var(--vendor-crumb-border);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--vendor-crumb-shadow);
    width: fit-content;
    max-width: 100%;
}

.vendor-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    padding-left: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.vendor-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* chevron, comme le fil d'Ariane de la fiche gin */
    padding: 0 0.4rem;
    color: var(--vendor-crumb-sep);
    float: none;
}

.vendor-breadcrumb .breadcrumb-item a {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    color: var(--vendor-ink);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vendor-breadcrumb .breadcrumb-item a:hover,
.vendor-breadcrumb .breadcrumb-item a:focus-visible {
    background: var(--vendor-ink);
    color: var(--vendor-on-ink);
    text-decoration: none;
}

.vendor-breadcrumb .breadcrumb-item.active {
    padding: 0.15rem 0.55rem;
    font-weight: 600;
    color: var(--vendor-crumb-active);
}

/* ---------- En-tête ---------- */

.vendor-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--vendor-hero-border);
    background: var(--vendor-hero-bg);
    box-shadow: 0 14px 34px -24px rgba(20, 20, 28, 0.32);
}

.vendor-hero__titles {
    min-width: 0;
    flex: 1 1 22rem;
}

.vendor-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vendor-kicker);
}

.vendor-hero__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.4rem, 2.15vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--vendor-title);
}

.vendor-hero__subtitle {
    margin: 0;
    max-width: 42rem;
    color: var(--vendor-body);
}

/* Repères chiffrés : ils remplacent le « 1 revendeur partenaire. » en gris sous le titre,
   qui portait un seul chiffre et se lisait comme une note de bas de page. */
.vendor-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vendor-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--vendor-chip-bg);
    border: 1px solid var(--vendor-chip-border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vendor-chip-text);
    white-space: nowrap;
}

.vendor-hero__chip i {
    font-size: 0.78rem;
    color: var(--vendor-accent);
}

@media (max-width: 576px) {
    .vendor-hero {
        padding: 1.1rem 1.15rem;
    }

    .vendor-breadcrumb .breadcrumb {
        padding: 0.35rem 0.65rem;
    }
}

.vendor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 340px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(20, 16, 30, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 16, 30, 0.16);
    color: inherit;
}

.vendor-card__accent {
    height: 10px;
    background: linear-gradient(90deg, var(--vendor-primary), var(--vendor-secondary));
}

.vendor-card__media {
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(180px 90px at 20% 20%, color-mix(in oklab, var(--vendor-primary) 22%, transparent), transparent 70%),
        radial-gradient(180px 90px at 90% 80%, color-mix(in oklab, var(--vendor-secondary) 24%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in oklab, var(--vendor-primary) 10%, #fff) 0%, #fff 100%);
}

.vendor-card__logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
    border: 2px solid color-mix(in oklab, var(--vendor-primary) 35%, #fff);
}

.vendor-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.vendor-card__logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--vendor-primary), var(--vendor-secondary));
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

.vendor-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.35rem 1.2rem 1.25rem;
    min-width: 0;
}

.vendor-card__name {
    font-weight: 800;
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
    line-height: 1.25;
}

.vendor-card__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.vendor-card__meta {
    color: #6b6570;
    font-size: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.vendor-card__meta i {
    color: var(--vendor-secondary);
    width: 0.9rem;
}

.vendor-card__desc {
    margin: 0.7rem 0 0;
    color: #5a5560;
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 6.5em;
}

.vendor-card__more {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: color-mix(in oklab, var(--vendor-primary) 72%, #1b1f2a);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
