/*
 * Site public modernisé (inspiré de GoLoisir). Feuille de style seule : aucune fonction,
 * aucun élément n'est retiré. Retirer son chargement rend l'apparence d'origine.
 * Deux thèmes : jour (:root) et bleu nuit (html.dark), via les variables --bks-*.
 */

:root {
    --bks-coral: #e0443f;
    --bks-coral-2: #c93a36;
    --bks-accent: #1d568e;
    --bks-accent-soft: rgba(29, 86, 142, .1);

    --bks-page: #eef2f9;
    --bks-panel: #ffffff;
    --bks-panel-line: #e4e8f2;
    --bks-topbar: #0f3a69;
    --bks-topbar-text: #eaf1fb;
    --bks-header: #ffffff;
    --bks-header-line: #e7e9f2;
    --bks-header-text: #27304d;
    --bks-header-hover: rgba(29, 86, 142, .08);
    --bks-logo-filter: none;

    --bks-hero: linear-gradient(115deg, #0f3a69 0%, #1d568e 48%, #2b7fd4 100%);
    --bks-hero-shape: rgba(255, 255, 255, .09);
    --bks-hero-shape-2: rgba(255, 98, 93, .26);
    --bks-hero-img-opacity: .1;
    --bks-hero-title: #ffffff;
    --bks-hero-text: #dbe8f7;
    --bks-chip-text: #1b2a4a;
    --bks-field: #ffffff;
    --bks-field-line: #dfe3f0;
    --bks-field-text: #27304d;
    --bks-field-hint: #6d7595;
    --bks-field-shadow: 0 24px 48px -28px rgba(16, 43, 102, .4);

    --bks-card: #ffffff;
    --bks-card-line: #e9ebf3;
    --bks-card-title: #161c36;
    --bks-card-text: #6d7595;
    --bks-card-shadow: 0 1px 2px rgba(16, 43, 102, .04), 0 10px 26px -16px rgba(16, 43, 102, .2);
    --bks-card-shadow-hover: 0 2px 4px rgba(16, 43, 102, .05), 0 24px 40px -18px rgba(16, 43, 102, .32);
    --bks-fav: rgba(255, 255, 255, .92);
    --bks-fav-icon: #1d568e;
}

html.dark {
    /* Palette bleu nuit de GoLoisir */
    --color-feAchromatic-900: 15 18 36 !important;
    --color-feSecondary-900: 15 18 36 !important;
    --color-feSecondary-800: 23 27 51 !important;
    --color-feSecondary-700: 48 56 88 !important;

    --bks-accent: #7fdad0;
    --bks-accent-soft: rgba(127, 218, 208, .12);

    --bks-page: #0f1224;
    --bks-panel: #141831;
    --bks-panel-line: #262c4c;
    --bks-topbar: #0f1224;
    --bks-topbar-text: #dfe3f2;
    --bks-header: #171b33;
    --bks-header-line: #303858;
    --bks-header-text: #dfe3f2;
    --bks-header-hover: rgba(255, 255, 255, .08);
    --bks-logo-filter: brightness(0) invert(1);

    --bks-hero: #0f1224;
    --bks-hero-shape: #1b2350;
    --bks-hero-shape-2: rgba(224, 68, 63, .22);
    --bks-chip-text: #ffffff;
    --bks-hero-img-opacity: .16;
    --bks-hero-title: #ffffff;
    --bks-hero-text: #c6cbe0;
    --bks-field: #171b33;
    --bks-field-line: #303858;
    --bks-field-text: #e4e7f4;
    --bks-field-hint: #aab1cc;
    --bks-field-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);

    --bks-card: #171b33;
    --bks-card-line: #303858;
    --bks-card-title: #f2f4fa;
    --bks-card-text: #aab1cc;
    --bks-card-shadow: 0 10px 26px -16px rgba(0, 0, 0, .7);
    --bks-card-shadow-hover: 0 24px 40px -18px rgba(0, 0, 0, .9);
    --bks-fav: rgba(15, 18, 36, .78);
    --bks-fav-icon: #ffffff;
}

main.flex-grow {
    background: var(--bks-page) !important;
}

/* ========== Barre du haut et navigation ========== */

/* Le conteneur fixe de la barre doit passer devant tout le contenu de la page */
div.fixed.top-0:has(> nav.fixed.z-40),
div.fixed.top-0:has(> nav.fixed.z-50) {
    z-index: 60;
}

nav.fixed.z-50.h-10 {
    background: var(--bks-topbar) !important;
    border-bottom: 1px solid var(--bks-header-line);
}

nav.fixed.z-50.h-10 p:not(.absolute *),
nav.fixed.z-50.h-10 span:not(.absolute *),
nav.fixed.z-50.h-10 button:not(.absolute *),
nav.fixed.z-50.h-10 svg:not(.absolute *) {
    color: var(--bks-topbar-text) !important;
}

nav.fixed.z-40.h-16 {
    background: var(--bks-header) !important;
    border-bottom: 1px solid var(--bks-header-line);
    box-shadow: 0 10px 30px -22px rgba(16, 23, 58, .55) !important;
}

/* Logo d'origine en jour, en blanc sur le bleu nuit */
nav.fixed.z-40.h-16 img.object-contain {
    filter: var(--bks-logo-filter);
}

nav.fixed.z-40.h-16 > div > div > div.cursor-pointer.font-medium {
    color: var(--bks-header-text) !important;
    font-weight: 700 !important;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

nav.fixed.z-40.h-16 > div > div > div.cursor-pointer.font-medium:hover {
    background: var(--bks-header-hover);
}

nav.fixed.z-40.h-16 > div > div > div.cursor-pointer.font-medium.text-fePrimary-500 {
    background: var(--bks-accent-soft);
    color: var(--bks-accent) !important;
}

/* Icônes de la barre (les menus déroulants ouverts gardent leurs couleurs) */
nav.fixed.z-40.h-16 svg:not(.absolute *) {
    color: var(--bks-header-text) !important;
    stroke: currentColor;
}

/* Déposer une annonce : l'action principale, en corail */
nav.fixed.z-40.h-16 button.bg-fePrimary-500 {
    background: var(--bks-coral) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px -8px rgba(224, 68, 63, .75);
    transition: transform .15s ease, background-color .15s ease;
}

nav.fixed.z-40.h-16 button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
    transform: translateY(-1px);
}

nav.fixed.z-40.h-16 button.bg-fePrimary-500 svg {
    color: #ffffff !important;
}

/* ========== Bandeau d'accueil ========== */

main .mt-24 > .bg-feAchromatic-900.relative {
    background: var(--bks-hero) !important;
}

/* Les formes restent dans le fond : les listes de la recherche peuvent déborder du bandeau */
main .mt-24 > .bg-feAchromatic-900.relative > div:first-child {
    overflow: hidden;
}

/* L'image choisie dans l'admin reste en fond, très atténuée */
main .mt-24 > .bg-feAchromatic-900.relative img {
    opacity: var(--bks-hero-img-opacity) !important;
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::before,
main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::after {
    content: "";
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    background: var(--bks-hero-shape);
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::before {
    width: 520px;
    height: 520px;
    top: -260px;
    right: -60px;
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::after {
    width: 420px;
    height: 420px;
    bottom: -300px;
    left: -100px;
    background: var(--bks-hero-shape-2);
}

/* Au-dessus des annonces (listes ouvertes), sous la navigation (z-40) */
main .mt-24 > .bg-feAchromatic-900.relative > .absolute {
    z-index: 30;
}

/* Titre */
main .mt-24 p.text-fePrimary-50.font-semibold {
    color: var(--bks-hero-title) !important;
    font-weight: 800 !important;
    letter-spacing: -.035em;
}

main .mt-24 .text-center > p.font-normal {
    color: var(--bks-hero-text) !important;
}

/* Recherche */
main .mt-24 .bg-feAchromatic-50.rounded-lg.mx-auto {
    background: var(--bks-field) !important;
    border: 1px solid var(--bks-field-line);
    border-radius: 22px !important;
    box-shadow: var(--bks-field-shadow);
}

main .mt-24 .rounded-lg.mx-auto input {
    background: transparent !important;
    border: 1px solid var(--bks-field-line) !important;
    border-radius: 12px !important;
    color: var(--bks-field-text) !important;
    box-shadow: none !important;
}

main .mt-24 .rounded-lg.mx-auto input::placeholder { color: var(--bks-field-hint) !important; }
main .mt-24 .rounded-lg.mx-auto svg { color: var(--bks-field-hint) !important; }

main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div > p > button,
main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div > button {
    background: transparent !important;
    border: 1px solid var(--bks-field-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bks-field-text) !important;
}

/* Le champ fermé seulement : la liste ouverte garde les couleurs de son thème */
main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div:first-child p,
main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div:first-child span {
    color: var(--bks-field-text) !important;
}

main .mt-24 .rounded-lg.mx-auto button.bg-fePrimary-500 {
    background: var(--bks-coral) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: background-color .15s ease;
}

main .mt-24 .rounded-lg.mx-auto button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

main .mt-24 .rounded-lg.mx-auto button.bg-fePrimary-500,
main .mt-24 .rounded-lg.mx-auto button.bg-fePrimary-500 * {
    color: #ffffff !important;
}

/* Catégories populaires */
main .mt-24 .h-20 > p {
    color: var(--bks-hero-text) !important;
}

main .mt-24 .h-20 button {
    background: var(--bks-field) !important;
    border: 1px solid var(--bks-field-line) !important;
    border-radius: 999px !important;
    color: var(--bks-field-text) !important;
    font-weight: 700 !important;
    transition: transform .15s ease, border-color .15s ease;
}

main .mt-24 .h-20 button,
main .mt-24 .h-20 button * { color: var(--bks-chip-text) !important; }

/* Pastille de couleur devant chaque catégorie, comme sur GoLoisir */
main .mt-24 .h-20 button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 18px -12px rgba(9, 25, 56, .7);
}

main .mt-24 .h-20 button::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #e0443f;
}

main .mt-24 .h-20 .flex > div:nth-child(6n+2) button::before { background: #7c5ce0; }
main .mt-24 .h-20 .flex > div:nth-child(6n+3) button::before { background: #2f9e6e; }
main .mt-24 .h-20 .flex > div:nth-child(6n+4) button::before { background: #e8962e; }
main .mt-24 .h-20 .flex > div:nth-child(6n+5) button::before { background: #3a78e0; }
main .mt-24 .h-20 .flex > div:nth-child(6n+6) button::before { background: #0fa3a3; }

main .mt-24 .h-20 button:hover {
    border-color: var(--bks-accent) !important;
    transform: translateY(-2px);
}

/* ========== Sections ========== */

main p.text-lg.lg\:text-2xl.font-semibold {
    color: var(--bks-card-title) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

/* Trait de couleur devant les titres de section */
main p.text-lg.lg\:text-2xl.font-semibold {
    display: flex;
    align-items: center;
    gap: 12px;
}

main p.text-lg.lg\:text-2xl.font-semibold::before {
    content: "";
    width: 6px;
    height: 1.1em;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff625d, #e0443f);
}

/* Chaque section de l'accueil dans son propre panneau */
main .xl\:w-feLarge > .mt-5.mb-10 {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
    padding: 26px 24px 18px;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 28px;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45);
}

@media (max-width: 640px) {
    main .xl\:w-feLarge > .mt-5.mb-10 {
        padding: 18px 12px 60px;
        border-radius: 22px;
    }

    /* Catégories compactes : elles doivent tenir dans le bandeau */
    main .mt-24 .h-20 .flex {
        gap: 6px !important;
    }

    main .mt-24 .h-20 button {
        gap: 5px;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    main .mt-24 .h-20 button * {
        font-size: 12px !important;
    }

    main .mt-24 .h-20 button::before {
        width: 11px;
        height: 11px;
        border-radius: 4px;
    }
}

/* Voir tout */
main .flex.items-center.justify-between > div > button.rounded {
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700;
}

main .flex.items-center.justify-between > div > button.rounded,
main .flex.items-center.justify-between > div > button.rounded * {
    color: var(--bks-accent) !important;
}

main .flex.items-center.justify-between > div > button.rounded:hover {
    background: var(--bks-accent-soft) !important;
}

/* ========== Cartes d'annonces ========== */

main .bk-item-card.bk-item-card {
    background: var(--bks-card) !important;
    border: 1px solid var(--bks-card-line);
    border-radius: 22px !important;
    box-shadow: var(--bks-card-shadow) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

main .bk-item-card.bk-item-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--bks-card-shadow-hover) !important;
}

/* Photo : carrée, arrondie et en retrait dans la carte */
main .bk-item-card.bk-item-card .h-44.relative {
    width: calc(100% - 16px);
    margin: 8px 8px 0;
    padding-bottom: calc(100% - 16px) !important;
    border-radius: 16px !important;
}

main .bk-item-card .bk-img-link img {
    border-radius: 0 !important;
}

/* Favori */
main .bk-item-card.bk-item-card .w-10.h-10.flex.justify-center.items-center.right-2.top-2 {
    width: 36px !important;
    height: 36px !important;
    background: var(--bks-fav) !important;
    box-shadow: 0 4px 14px rgba(15, 18, 36, .28) !important;
}

main .bk-item-card .w-10.h-10.right-2.top-2 svg {
    color: var(--bks-fav-icon) !important;
}

/* Remise */
main .bk-item-card.bk-item-card .absolute.bg-fePrimary-500.rounded.left-2.top-2 {
    background: var(--bks-coral) !important;
    border-radius: 999px !important;
    padding: 4px 11px !important;
    box-shadow: 0 6px 14px -6px rgba(224, 68, 63, .8);
}

main .bk-item-card .absolute.bg-fePrimary-500.rounded.left-2.top-2 p {
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

/* Titre : deux lignes réservées pour que les cartes restent alignées */
main .bk-item-card.bk-item-card .ps-1.pt-1 {
    padding: 12px 14px 0 !important;
}

main .bk-item-card.bk-item-card .truncate-2-lines {
    min-height: 2.6em;
    max-height: 2.6em !important;
    margin-bottom: 4px !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3em !important;
    letter-spacing: -.01em;
}

/* Prix */
main .bk-item-card.bk-item-card .ps-1.flex.flex-row {
    padding: 0 14px !important;
    align-items: baseline;
    flex-wrap: wrap;
}

main .bk-item-card.bk-item-card p.text-fePrimary-500.font-semibold {
    color: var(--bks-accent) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.3 !important;
}

main .bk-item-card.bk-item-card p.line-through {
    color: var(--bks-card-text) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Une ancienne règle atténuait toute la ligne du prix */
main .bk-item-card.bk-item-card .ps-1.flex.flex-row p {
    opacity: 1 !important;
}

main .bk-item-card.bk-item-card .ps-1.flex.flex-row p.line-through {
    font-size: 12px !important;
}

/* Lieu */
main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center {
    padding: 2px 14px 12px !important;
    gap: 2px;
}

main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center p {
    color: var(--bks-card-text) !important;
    font-size: 12.5px !important;
    opacity: 1 !important;
}

main .bk-item-card .pb-0.ps-1.flex.items-center svg {
    color: var(--bks-card-text) !important;
}

/* Vendeur */
main .bk-item-card.bk-item-card .pt-1.pb-2.flex.items-center {
    margin: 0 14px;
    padding: 10px 0 12px !important;
    border-top: 1px solid var(--bks-card-line) !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center img {
    width: 30px !important;
    height: 30px !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center p p:first-child {
    color: var(--bks-card-title) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center p p:last-child {
    color: var(--bks-card-text) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
}

@media (max-width: 640px) {
    main .bk-item-card.bk-item-card {
        border-radius: 18px !important;
    }

    main .bk-item-card.bk-item-card .h-44.relative {
        width: calc(100% - 12px);
        margin: 6px 6px 0;
        padding-bottom: calc(100% - 12px) !important;
        border-radius: 13px !important;
    }

    main .bk-item-card.bk-item-card .ps-1.pt-1,
    main .bk-item-card.bk-item-card .ps-1.flex.flex-row,
    main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center {
        padding-inline: 10px !important;
    }

    main .bk-item-card.bk-item-card .pt-1.pb-2.flex.items-center {
        margin-inline: 10px;
    }

    main .bk-item-card.bk-item-card .truncate-2-lines {
        font-size: 13.5px !important;
    }

    main .bk-item-card.bk-item-card p.text-fePrimary-500.font-semibold {
        font-size: 16px !important;
    }
}

/* ========== Boutons et champs des autres pages ========== */

main button.rounded.bg-fePrimary-500 {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

main input:not([type=checkbox]):not([type=radio]),
main textarea {
    border-radius: 12px !important;
}

/* ========== Pied de page (bleu nuit dans les deux thèmes) ========== */

footer .bk-footer {
    background: #0f1224 !important;
    border-top: 1px solid #303858;
}

/* ========== Mode sombre : textes toujours lisibles sur le bleu nuit ========== */

/* Les textes foncés sans variante sombre passent en clair (sauf sur fond clair explicite) */
html.dark .text-feSecondary-900:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feSecondary-800:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feSecondary-700:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feSecondary-600:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feAchromatic-900:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feAchromatic-800:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feAchromatic-700:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]),
html.dark .text-feAchromatic-600:not([class*="dark:text-feSecondary-9"]):not([class*="dark:text-black"]) {
    color: #e4e7f4 !important;
}

/* Textes de marque en turquoise, comme les liens de GoLoisir */
html.dark .text-fePrimary-500,
html.dark .text-fePrimary-600,
html.dark .text-fePrimary-700 {
    color: var(--bks-accent) !important;
}

/* Étiquette orange : texte foncé pour rester lisible */
.bg-feWarning-500 {
    color: #1f1600 !important;
}

/* ========== Menus et listes déroulantes : carte bien distincte du fond ========== */

html.dark .relative.inline-block > .absolute.z-20,
html.dark .relative.inline-block > .absolute.z-30,
html.dark .relative.inline-block > .absolute.z-50 {
    background: #1f2545 !important;
    border: 1px solid #303858;
    border-radius: 14px !important;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .85) !important;
}

html.dark .relative.inline-block > .absolute hr {
    background: #303858 !important;
    border: 0;
}

html.dark .relative.inline-block > .absolute input {
    border: 0 !important;
}

/* Boutons gris sur carte sombre (« Visiter le vendeur »…) */
html.dark main button.bg-feSecondary-400,
html.dark main button.bg-feAchromatic-400,
html.dark main button.bg-feSecondary-500 {
    background: #1f2545 !important;
    border: 1px solid #303858 !important;
    color: #ffffff !important;
}

/* ========== Barre sur écrans moyens : tout tient sur une ligne ========== */

@media (min-width: 768px) and (max-width: 1180px) {
    nav.fixed.z-40.h-16 > div > div {
        gap: .5rem !important;
    }

    nav.fixed.z-40.h-16 > div > div > div.cursor-pointer.font-medium {
        padding-inline: .6rem !important;
    }

    /* Le bouton garde son icône et son action, comme sur téléphone */
    nav.fixed.z-40.h-16 button.bg-fePrimary-500 > span {
        display: none !important;
    }

    nav.fixed.z-40.h-16 button.bg-fePrimary-500 {
        padding: .5rem !important;
    }
}

/* =====================================================================
   Toutes les pages : panneaux, titres, listes, boutons et champs
   ===================================================================== */

/* Panneaux */
main .bg-feSecondary-50.rounded-lg,
main ps-card,
main .border-2.border-feSecondary-200.rounded-md,
main .w-64.me-7.shadow-md,
main .w-full.flex.flex-col.border.rounded-md,
main .flex.flex-col.p-4.gap-2.border,
main .bg-feAchromatic-50.rounded-lg.w-auto,
main .shadow-sm.relative.border.rounded-lg.flex.flex-col {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45) !important;
}

main ps-card > div {
    border: 0 !important;
}

/* La fiche vendeur ne doit pas être doublée par son conteneur */
main div:has(> .shadow-sm.relative.border.rounded-lg.flex.flex-col) {
    background: transparent !important;
    border-radius: 22px !important;
    box-shadow: none !important;
}

/* Titres de pages et de blocs */
main p.text-xl.font-semibold:not(.text-feAchromatic-50):not(.cursor-pointer *),
main p.text-2xl.font-semibold:not(.text-feAchromatic-50):not(.cursor-pointer *),
main p[class*="sm:text-2xl"]:not(.text-feAchromatic-50):not(.cursor-pointer *),
main p[class*="lg:text-xl"].font-semibold:not(.text-feAchromatic-50):not(.cursor-pointer *) {
    color: var(--bks-card-title) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

main p.text-xl.font-semibold:not(.text-center):not([class*="text-fe"][class*="Primary"]):not(.text-feAchromatic-50):not(.cursor-pointer *),
main p.text-2xl.font-semibold:not(.text-center):not([class*="text-fe"][class*="Primary"]):not(.text-feAchromatic-50):not(.cursor-pointer *) {
    display: flex;
    align-items: center;
    gap: 10px;
}

main p.text-xl.font-semibold:not(.text-center):not([class*="text-fe"][class*="Primary"]):not(.text-feAchromatic-50):not(.cursor-pointer *)::before,
main p.text-2xl.font-semibold:not(.text-center):not([class*="text-fe"][class*="Primary"]):not(.text-feAchromatic-50):not(.cursor-pointer *)::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 1.05em;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff625d, #e0443f);
}

/* Fil d'Ariane */
main nav.w-full.rounded-md ol {
    flex-wrap: wrap;
    width: fit-content;
    padding: 6px 16px;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 999px;
}

main nav.w-full.rounded-md a {
    color: var(--bks-card-text) !important;
    transition: color .15s ease;
}

main nav.w-full.rounded-md a:hover {
    color: var(--bks-accent) !important;
}

main nav.w-full.rounded-md li span.text-fePrimary-500 {
    color: var(--bks-accent) !important;
    font-size: 14px !important;
    font-weight: 700;
}

/* Boutons */
main button.rounded,
main a.rounded {
    border-radius: 12px !important;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

main button.rounded:hover {
    transform: translateY(-1px);
}

main button.parent {
    border-radius: 12px !important;
}

/* Champs */
main input:not([type=checkbox]):not([type=radio]):not(.mt-24 *),
main textarea {
    background: var(--bks-field) !important;
    border: 1px solid var(--bks-field-line) !important;
    color: var(--bks-field-text) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

main input:not([type=checkbox]):not([type=radio]):focus,
main textarea:focus {
    border-color: var(--bks-accent) !important;
    box-shadow: 0 0 0 4px var(--bks-accent-soft) !important;
    outline: none !important;
}

/* Tuiles : catégories, articles de blog, choix de catégorie au dépôt d'annonce */
main .text-center.cursor-pointer.overflow-hidden.border,
main .rounded-lg.cursor-pointer.overflow-hidden.shadow-sm {
    background: var(--bks-card) !important;
    border: 1px solid var(--bks-card-line) !important;
    border-radius: 22px !important;
    box-shadow: var(--bks-card-shadow) !important;
    transition: transform .22s ease, box-shadow .22s ease;
}

main .text-center.cursor-pointer.overflow-hidden.border:hover,
main .rounded-lg.cursor-pointer.overflow-hidden.shadow-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--bks-card-shadow-hover) !important;
}

main .h-62.bg-feSecondary-50 {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line);
    border-radius: 22px;
}

/* Grand article du blog : texte lisible sur l'image */
main .w-full.h-full.rounded-lg.bg-black.absolute.opacity-50 {
    opacity: 1 !important;
    background: linear-gradient(90deg, rgba(9, 14, 34, .86) 0%, rgba(9, 14, 34, .55) 55%, rgba(9, 14, 34, .15) 100%) !important;
}

main .rounded-lg.cursor-pointer.overflow-hidden.shadow-sm p {
    letter-spacing: -.01em;
}

/* Contact : l'illustration suit les coins arrondis du panneau */
main .bg-feAchromatic-50.rounded-lg.w-auto {
    overflow: hidden;
}

/* Listes : notifications */
main .w-full.cursor-pointer[class*="bg-feAchromatic"] {
    margin-bottom: 8px;
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 16px !important;
    transition: transform .15s ease, border-color .15s ease;
}

main .w-full.cursor-pointer[class*="bg-feAchromatic"]:hover {
    border-color: var(--bks-accent) !important;
    transform: translateY(-1px);
}

/* =====================================================================
   Fiche d'annonce
   ===================================================================== */

/* Galerie */
main .wrapper.relative.rounded-lg {
    border-radius: 24px !important;
    box-shadow: 0 24px 48px -32px rgba(16, 43, 102, .6);
}

main .wrapper .h-\[400px\].border {
    border: 0 !important;
    border-radius: 24px !important;
    overflow: hidden;
}

main .wrapper .absolute.bottom-4.left-4 img {
    border-radius: 10px !important;
}

/* Partager / Signaler */
main .flex.items-center.gap-7.self-end p {
    padding: 6px 14px;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

/* Bloc prix : le prix en très grand, Contacter en bouton principal */
main ps-card p.font-semibold[class*="text-fePrimary"] {
    color: var(--bks-accent) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
}

main ps-card button.bg-fePrimary-500 {
    min-height: 48px;
    background: var(--bks-coral) !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 22px -12px rgba(224, 68, 63, .85);
}

main ps-card button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

/* Détails : chaque information dans sa tuile */
main .grid.grid-cols-2.sm\:grid-cols-4 {
    margin-top: 14px;
    gap: 10px !important;
}

main .grid.grid-cols-2.sm\:grid-cols-4 > div {
    padding: 12px 14px;
    background: var(--bks-accent-soft);
    border-radius: 14px;
}

main .grid.grid-cols-2.sm\:grid-cols-4 > div p:first-child {
    color: var(--bks-card-text) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

main .grid.grid-cols-2.sm\:grid-cols-4 > div p:last-child {
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Conseils, conditions, FAQ */
main .border-2.border-feSecondary-200.rounded-md > div {
    margin: 4px;
    padding: 10px 12px !important;
    border-radius: 14px;
    transition: background-color .15s ease;
}

main .border-2.border-feSecondary-200.rounded-md > div:hover {
    background: var(--bks-accent-soft);
}

/* Carte */
main .mapContainer {
    border-radius: 16px;
    overflow: hidden;
}

/* Autre info : grille de tuiles, comme Détails */
main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 10px;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > p.text-xl {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div {
    padding: 12px 14px;
    background: var(--bks-accent-soft);
    border-radius: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div * {
    margin-top: 0 !important;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div p:first-child {
    color: var(--bks-card-text) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div p:last-child:not(:first-child) {
    color: var(--bks-card-title) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
}

/* Miniatures de la galerie */
main .wrapper .absolute.bottom-4.left-4 img {
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(15, 18, 36, .35);
}

/* Pages de texte : FAQ, confidentialité, conditions… */
main p:has(> .ck-content) {
    margin-top: 22px;
    padding: 30px 34px;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 24px;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45);
    line-height: 1.7;
}

@media (max-width: 640px) {
    main p:has(> .ck-content) {
        padding: 20px 16px;
    }
}

/* Dépôt d'annonce */
main .flex.flex-col.py-6.ps-5.pe-6,
main div.rounded-md:has(.custom-dropzone) {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45);
}

main .custom-dropzone {
    background: var(--bks-accent-soft) !important;
    border: 2px dashed var(--bks-accent) !important;
    border-radius: 18px !important;
    transition: background-color .15s ease;
}

main .custom-dropzone .dz-button {
    color: var(--bks-accent) !important;
    font-weight: 700;
}

/* Messages */
main p.text-xl.sm\:text-3xl.font-medium {
    color: var(--bks-card-title) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

main .col-span-4.sm\:col-span-2 .flex.flex-row {
    gap: 6px;
}

main .col-span-4.sm\:col-span-2 .flex.flex-row > button {
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 999px !important;
    background: var(--bks-panel) !important;
    white-space: nowrap;
}

main .col-span-4.sm\:col-span-2 .flex.flex-row > button.border-b-fePrimary-500 {
    background: var(--bks-accent-soft) !important;
    border-color: var(--bks-accent) !important;
}

main .col-span-4.sm\:col-span-6 .flex.flex-wrap.w-full {
    gap: 10px;
}

main .col-span-4.sm\:col-span-6 .flex.flex-wrap.w-full > * {
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 18px;
    transition: transform .15s ease, border-color .15s ease;
}

main .col-span-4.sm\:col-span-6 .flex.flex-wrap.w-full > *:hover {
    border-color: var(--bks-accent) !important;
    transform: translateY(-1px);
}

/* =====================================================================
   Conversation
   ===================================================================== */

main .lg\:mt-32.mt-28.h-48 {
    height: auto !important;
    flex-shrink: 0;
    gap: 8px;
}

/* En-tête : interlocuteur et annonce */
main .lg\:mt-32.mt-28.h-48 > .flex.flex-wrap.items-center,
main .lg\:mt-32.mt-28.h-48 > .flex.justify-between.p-2 {
    margin: 0 !important;
    padding: 10px 14px !important;
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line);
    border-radius: 18px !important;
}

main .lg\:mt-32.mt-28.h-48 .flex.flex-wrap.items-center p.font-medium {
    color: var(--bks-card-title) !important;
    font-weight: 700 !important;
}

main .lg\:mt-32.mt-28.h-48 .flex.flex-wrap.items-center .grow p:not(.font-medium) {
    color: var(--bks-card-text) !important;
    font-size: 13px;
}

main .lg\:mt-32.mt-28.h-48 button.bg-fePrimary-500 {
    background: var(--bks-coral) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 20px -12px rgba(224, 68, 63, .85);
}

main .lg\:mt-32.mt-28.h-48 button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

/* Annonce concernée */
main .lg\:mt-32.mt-28.h-48 img.rounded-md {
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px !important;
}

main .lg\:mt-32.mt-28.h-48 p.font-semibold.text-fePrimary-500 {
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

main .lg\:mt-32.mt-28.h-48 p.text-lg {
    color: var(--bks-card-text) !important;
    font-size: 13px !important;
}

main .lg\:mt-32.mt-28.h-48 p.text-feAchromatic-500 {
    color: var(--bks-accent) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Fil de messages */
main #messages {
    margin-top: 10px !important;
    padding: 14px 18px;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 22px;
    scrollbar-width: thin;
}

/* Message reçu */
main #messages span.bg-feSecondary-100 {
    padding: 10px 14px !important;
    background: var(--bks-accent-soft) !important;
    border-radius: 18px 18px 18px 6px !important;
    color: var(--bks-card-title);
}

main #messages span.bg-feSecondary-100 * {
    color: var(--bks-card-title) !important;
    font-size: 14.5px !important;
}

/* Message envoyé */
main #messages span.bg-fePrimary-500 {
    padding: 10px 14px !important;
    background: linear-gradient(135deg, #2b7fd4, #1d568e) !important;
    border-radius: 18px 18px 6px 18px !important;
    box-shadow: 0 10px 20px -14px rgba(29, 86, 142, .9);
}

main #messages span.bg-fePrimary-500 * {
    color: #ffffff !important;
    font-size: 14.5px !important;
}

/* Offres et messages de statut */
main #messages span.bg-feInfo-500,
main #messages span.bg-feError-500,
main #messages span.bg-feSuccess-500 {
    padding: 12px 16px !important;
    border-radius: 16px !important;
}

main #messages button {
    border-radius: 12px !important;
}

main #messages img.cursor-pointer {
    border-radius: 18px !important;
}

/* Saisie */
main .relative.flex.pt-1.w-full {
    align-items: center;
    gap: 8px;
}

main .relative.flex.pt-1.w-full input {
    height: 46px;
    padding-inline: 18px 48px !important;
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
    box-shadow: 0 14px 28px -22px rgba(16, 43, 102, .6) !important;
}

main .relative.flex.pt-1.w-full input::placeholder {
    color: var(--bks-card-text) !important;
}

main .relative.flex.pt-1.w-full > button,
main .relative.flex.pt-1.w-full > div > button.rounded-full {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
    background: var(--bks-accent-soft) !important;
    border-radius: 50% !important;
}

main .relative.flex.pt-1.w-full button svg {
    color: var(--bks-accent) !important;
}

main .relative.flex.pt-1.w-full .grow.relative > button.absolute {
    top: 8px !important;
    right: 12px !important;
}

/* =====================================================================
   Pages restantes
   ===================================================================== */

/* Le trait de titre ne s'affiche ni sur un titre vide, ni sur un grand titre d'article */
main p.text-xl.font-semibold:empty,
main p.text-2xl.font-semibold.truncate-3-lines {
    display: block !important;
}

main p.text-xl.font-semibold:empty::before,
main p.text-2xl.font-semibold.truncate-3-lines::before {
    display: none !important;
}

/* Blocs bordés : suppression de données, avis, commandes */
main .rounded.border.p-4.flex.flex-col.gap-3,
main .flex.flex-col.rounded-lg.border.p-8,
main .flex.flex-col.rounded-md.border[class*="h-[196px]"] {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45);
}

main .flex.flex-col.sm\:flex-row.bg-feAchromatic-50.gap-6 {
    background: transparent !important;
}

/* Bouton de suppression de données : action sensible, en corail */
main .rounded.border.p-4.flex.flex-col.gap-3 button.bg-fePrimary-500 {
    min-height: 44px;
    background: var(--bks-coral) !important;
}

/* Mes offres : onglets */
main .sm\:flex-col > button.rounded {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
}

main .sm\:flex-col > button.rounded * {
    color: var(--bks-card-title) !important;
}

main .sm\:flex-col > button.rounded.bg-fePrimary-500 {
    background: var(--bks-accent-soft) !important;
    border-color: var(--bks-accent) !important;
}

main .sm\:flex-col > button.rounded.bg-fePrimary-500,
main .sm\:flex-col > button.rounded.bg-fePrimary-500 * {
    color: var(--bks-accent) !important;
}

/* Mes offres : lignes */
main .w-full.flex.flex-col.bg-fePrimary-50.rounded-2xl {
    padding: 0 !important;
    background: transparent !important;
}

main .w-full.flex.flex-col.bg-fePrimary-50.rounded-2xl > .w-full.mt-2 {
    overflow: hidden;
    background: var(--bks-panel);
    border: 1px solid var(--bks-panel-line);
    border-radius: 18px;
    transition: transform .15s ease, border-color .15s ease;
}

main .w-full.flex.flex-col.bg-fePrimary-50.rounded-2xl > .w-full.mt-2:hover {
    border-color: var(--bks-accent);
    transform: translateY(-1px);
}

/* Commandes : onglets de statut */
main p.px-3.py-2.flex.gap-3.items-center.cursor-pointer.border-b-4 {
    border-bottom-width: 3px !important;
    font-weight: 600;
}

/* =====================================================================
   Connexion et inscription
   ===================================================================== */

.flex.flex-row.items-center.justify-center.min-h-screen.mb-6 {
    background: var(--bks-page) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md {
    border: 1px solid var(--bks-panel-line);
    border-radius: 26px !important;
    box-shadow: 0 30px 60px -36px rgba(16, 43, 102, .6) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md > .bg-feSecondary-900 {
    background: linear-gradient(150deg, #0f3a69 0%, #1d568e 55%, #2b7fd4 100%) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md > .bg-feAchromatic-50 {
    background: var(--bks-panel) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md input:not([type=checkbox]):not([type=radio]) {
    background: var(--bks-field) !important;
    border: 1px solid var(--bks-field-line) !important;
    border-radius: 12px !important;
    color: var(--bks-field-text) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md input:focus {
    border-color: var(--bks-accent) !important;
    box-shadow: 0 0 0 4px var(--bks-accent-soft) !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md button.bg-fePrimary-500 {
    min-height: 46px;
    background: var(--bks-coral) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

.flex.flex-row.h-auto.overflow-hidden.rounded-md.shadow-md button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

/* Commandes en panneaux */
main .w-full.rounded-lg.border.p-6 {
    background: var(--bks-panel) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 40px -30px rgba(16, 43, 102, .45);
}

/* Mes offres : la ligne non lue garde le fond de sa carte */
main .w-full.flex.flex-col.bg-fePrimary-50.rounded-2xl > .w-full.mt-2 [class*="bg-fe"]:not(.rounded-full) {
    background-color: transparent !important;
}

/* Boutons désactivés lisibles en bleu nuit */
html.dark main button:disabled,
html.dark main button[disabled] {
    color: #c6cbe0 !important;
}

html.dark main button:disabled *,
html.dark main button[disabled] * {
    color: #c6cbe0 !important;
}

/* Titre du bandeau d'accueil : prioritaire sur la règle générale des titres */
html body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
    display: block !important;
    color: var(--bks-hero-title) !important;
}

html body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold::before {
    display: none !important;
    content: none !important;
}

/* =====================================================================
   VERSION 3 — design plat inspiré de Leboncoin, Vinted et Beebs
   Les photos font les cartes, pas d'ombres, fond blanc, pilules pastel.
   Ce bloc vient en dernier et prend le pas sur les styles précédents.
   ===================================================================== */

:root {
    --bks-page: #ffffff;
    --bks-panel: #ffffff;
    --bks-panel-line: #e8eaef;
    --bks-card-title: #1a1d26;
    --bks-card-text: #6b7080;
    --bks-price: #1a1d26;
    --bks-soft: #f4f5f7;
    --bks-hero-card: #fff1e8;
    --bks-hero-card-2: #ffe2d1;
    --bks-hero-title: #1a1d26;
    --bks-hero-text: #4d5263;
    --bks-field: #ffffff;
    --bks-field-line: #dfe2e8;
    --bks-chip-text: #1a1d26;
}

html.dark {
    --bks-page: #0f1224;
    --bks-panel: #151a33;
    --bks-panel-line: #262c4c;
    --bks-card-title: #f2f4fa;
    --bks-card-text: #a3aac4;
    --bks-price: #ffffff;
    --bks-soft: #1b2142;
    --bks-hero-card: #1b2350;
    --bks-hero-card-2: #232c63;
    --bks-hero-title: #ffffff;
    --bks-hero-text: #c6cbe0;
    --bks-field: #151a33;
    --bks-field-line: #303858;
    --bks-chip-text: #ffffff;
}

main.flex-grow {
    background: var(--bks-page) !important;
}

/* ---------- Barres du haut : blanches et légères, comme Vinted ---------- */

nav.fixed.z-50.h-10 {
    background: var(--bks-page) !important;
    border-bottom: 1px solid var(--bks-panel-line);
}

nav.fixed.z-50.h-10 p:not(.absolute *),
nav.fixed.z-50.h-10 span:not(.absolute *),
nav.fixed.z-50.h-10 button:not(.absolute *),
nav.fixed.z-50.h-10 svg:not(.absolute *) {
    color: var(--bks-card-text) !important;
}

nav.fixed.z-40.h-16 {
    box-shadow: none !important;
    border-bottom: 1px solid var(--bks-panel-line);
}

/* ---------- Bandeau d'accueil : bloc arrondi aux couleurs douces (Leboncoin) ---------- */

main .mt-24 > .bg-feAchromatic-900.relative {
    width: auto;
    max-width: 1128px;
    margin: 24px auto 0;
    background: linear-gradient(120deg, var(--bks-hero-card) 0%, var(--bks-hero-card-2) 100%) !important;
    border-radius: 32px;
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child {
    border-radius: 32px;
}

@media (max-width: 1160px) {
    main .mt-24 > .bg-feAchromatic-900.relative {
        margin-inline: 16px;
    }
}

main .mt-24 > .bg-feAchromatic-900.relative img {
    opacity: 0 !important;
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::before {
    width: 420px;
    height: 420px;
    top: -200px;
    right: -120px;
    background: rgba(255, 98, 93, .18);
}

main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::after {
    width: 300px;
    height: 300px;
    bottom: -180px;
    left: -60px;
    background: rgba(255, 190, 80, .24);
}

html.dark main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::before { background: rgba(255, 98, 93, .14); }
html.dark main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::after { background: rgba(127, 218, 208, .12); }

html body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
    color: var(--bks-hero-title) !important;
    letter-spacing: -.04em;
}

main .mt-24 .text-center > p.font-normal {
    color: var(--bks-hero-text) !important;
}

/* Recherche : grande barre blanche en pilule */
main .mt-24 .bg-feAchromatic-50.rounded-lg.mx-auto {
    padding: 8px 10px !important;
    background: var(--bks-field) !important;
    border: 1px solid var(--bks-field-line);
    border-radius: 999px !important;
    box-shadow: 0 10px 30px -18px rgba(26, 29, 38, .35);
}

main .mt-24 .rounded-lg.mx-auto input,
main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div > p > button,
main .mt-24 .rounded-lg.mx-auto .relative.inline-block > div > button {
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 999px !important;
}

main .mt-24 .rounded-lg.mx-auto button.bg-fePrimary-500 {
    border-radius: 999px !important;
}

@media (max-width: 767px) {
    main .mt-24 .bg-feAchromatic-50.rounded-lg.mx-auto {
        border-radius: 24px !important;
    }
}

/* Catégories populaires : pilules pastel (Beebs) */
main .mt-24 .h-20 > p {
    color: var(--bks-hero-text) !important;
}

main .mt-24 .h-20 button {
    border: 0 !important;
    box-shadow: none !important;
}

main .mt-24 .h-20 button::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

main .mt-24 .h-20 .flex > div:nth-child(6n+1) button { background: #ffe4e3 !important; }
main .mt-24 .h-20 .flex > div:nth-child(6n+2) button { background: #ece6ff !important; }
main .mt-24 .h-20 .flex > div:nth-child(6n+3) button { background: #dff5ea !important; }
main .mt-24 .h-20 .flex > div:nth-child(6n+4) button { background: #fff0d9 !important; }
main .mt-24 .h-20 .flex > div:nth-child(6n+5) button { background: #e3edff !important; }
main .mt-24 .h-20 .flex > div:nth-child(6n+6) button { background: #dcf4f4 !important; }

html.dark main .mt-24 .h-20 .flex > div button { background: rgba(255, 255, 255, .08) !important; }

main .mt-24 .h-20 button,
main .mt-24 .h-20 button * {
    color: #1a1d26 !important;
}

html.dark main .mt-24 .h-20 button,
html.dark main .mt-24 .h-20 button * {
    color: #ffffff !important;
}

/* ---------- Sections : sobres, sans panneau (Leboncoin) ---------- */

main .xl\:w-feLarge > .mt-5.mb-10 {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

main p.text-lg.lg\:text-2xl.font-semibold {
    font-size: 22px !important;
    font-weight: 800 !important;
}

main p.text-lg.lg\:text-2xl.font-semibold::before {
    display: none !important;
}

/* ---------- Cartes d'annonces : la photo fait la carte (Vinted) ---------- */

main .bk-item-card.bk-item-card,
html.dark main .bk-item-card.bk-item-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

main .bk-item-card.bk-item-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

main .bk-item-card.bk-item-card .h-44.relative {
    width: 100%;
    margin: 0;
    padding-bottom: 100% !important;
    border-radius: 14px !important;
    background: var(--bks-soft);
}

main .bk-item-card .bk-img-link img {
    transition: transform .4s ease !important;
}

main .bk-item-card.bk-item-card:hover .bk-img-link img {
    transform: scale(1.04) !important;
}

/* Favori : petit rond blanc */
main .bk-item-card.bk-item-card .w-10.h-10.flex.justify-center.items-center.right-2.top-2 {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, .95) !important;
    box-shadow: 0 2px 8px rgba(26, 29, 38, .18) !important;
}

main .bk-item-card .w-10.h-10.right-2.top-2 svg {
    color: #1a1d26 !important;
}

/* Remise : pastille compacte */
main .bk-item-card.bk-item-card .absolute.bg-fePrimary-500.rounded.left-2.top-2 {
    padding: 3px 9px !important;
    box-shadow: none;
}

main .bk-item-card .absolute.bg-fePrimary-500.rounded.left-2.top-2 p {
    font-size: 11px !important;
}

/* Sous la photo : le prix d'abord, en noir (Vinted), puis le titre et le lieu */
main .bk-item-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base {
    display: flex;
    flex-direction: column;
}

main .bk-item-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div:nth-child(2) { order: 1; }
main .bk-item-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div:nth-child(1) { order: 2; }
main .bk-item-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div:nth-child(3) { order: 3; }

main .bk-item-card.bk-item-card .ps-1.flex.flex-row {
    padding: 10px 2px 0 !important;
}

main .bk-item-card.bk-item-card p.text-fePrimary-500.font-semibold {
    color: var(--bks-price) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

main .bk-item-card.bk-item-card p.line-through {
    color: var(--bks-card-text) !important;
}

main .bk-item-card.bk-item-card .ps-1.pt-1 {
    padding: 2px 2px 0 !important;
}

main .bk-item-card.bk-item-card .truncate-2-lines {
    min-height: 2.5em;
    max-height: 2.5em !important;
    margin-bottom: 0 !important;
    color: var(--bks-card-title) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25em !important;
}

main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center {
    padding: 2px 2px 6px !important;
}

main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center p {
    font-size: 12.5px !important;
}

/* Vendeur : discret, sans séparateur */
main .bk-item-card.bk-item-card .pt-1.pb-2.flex.items-center {
    margin: 0 !important;
    padding: 4px 2px 0 !important;
    border-top: 0 !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center img {
    width: 22px !important;
    height: 22px !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center p p:first-child {
    color: var(--bks-card-text) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

main .bk-item-card .pt-1.pb-2.flex.items-center p p:last-child {
    display: none;
}

@media (max-width: 640px) {
    main .bk-item-card.bk-item-card .h-44.relative {
        width: 100%;
        margin: 0;
        padding-bottom: 100% !important;
        border-radius: 12px !important;
    }

    main .bk-item-card.bk-item-card .ps-1.pt-1,
    main .bk-item-card.bk-item-card .ps-1.flex.flex-row,
    main .bk-item-card.bk-item-card .pb-0.ps-1.flex.items-center {
        padding-inline: 2px !important;
    }

    main .bk-item-card.bk-item-card .pt-1.pb-2.flex.items-center {
        margin-inline: 0 !important;
    }
}

/* ---------- Panneaux et tuiles des autres pages : plats, simple filet ---------- */

main .bg-feSecondary-50.rounded-lg,
main ps-card,
main .border-2.border-feSecondary-200.rounded-md,
main .w-64.me-7.shadow-md,
main .w-full.flex.flex-col.border.rounded-md,
main .flex.flex-col.p-4.gap-2.border,
main .bg-feAchromatic-50.rounded-lg.w-auto,
main .shadow-sm.relative.border.rounded-lg.flex.flex-col,
main .flex.flex-col.py-6.ps-5.pe-6,
main div.rounded-md:has(.custom-dropzone),
main .rounded.border.p-4.flex.flex-col.gap-3,
main .flex.flex-col.rounded-lg.border.p-8,
main .flex.flex-col.rounded-md.border[class*="h-[196px]"],
main .w-full.rounded-lg.border.p-6,
main p:has(> .ck-content),
main #messages,
main .h-62.bg-feSecondary-50 {
    border-radius: 18px !important;
    box-shadow: none !important;
}

main .text-center.cursor-pointer.overflow-hidden.border,
main .rounded-lg.cursor-pointer.overflow-hidden.shadow-sm {
    border-radius: 18px !important;
    box-shadow: none !important;
}

main .text-center.cursor-pointer.overflow-hidden.border:hover,
main .rounded-lg.cursor-pointer.overflow-hidden.shadow-sm:hover {
    transform: none;
    box-shadow: none !important;
    border-color: var(--bks-card-text) !important;
}

/* Titres de blocs : sans trait, plus sobres */
main p.text-xl.font-semibold::before,
main p.text-2xl.font-semibold::before {
    display: none !important;
}

main .wrapper.relative.rounded-lg {
    box-shadow: none;
}

/* Boutons principaux en pilules */
main button.rounded.bg-fePrimary-500,
main ps-card button.bg-fePrimary-500 {
    border-radius: 999px !important;
    box-shadow: none !important;
}

main button.rounded:hover {
    transform: none;
}

/* =====================================================================
   VERSION 4 — accueil enrichi (bande de confiance, encart vendre,
   sous-titres, bons plans, flèches et blog). Les éléments .bks-* sont
   ajoutés par public/js/site-modern.js.
   ===================================================================== */

/* Bande de confiance sous le bandeau */
.bks-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1128px;
    margin: 18px auto 6px;
}

@media (max-width: 1160px) {
    .bks-trust { margin-inline: 16px; }
}

.bks-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bks-soft);
    border-radius: 18px;
}

.bks-trust__item strong {
    display: block;
    color: var(--bks-card-title);
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.bks-trust__item small {
    display: block;
    margin-top: 1px;
    color: var(--bks-card-text);
    font-size: 12.5px;
}

.bks-trust__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.bks-trust__icon svg { width: 20px; height: 20px; }
.bks-trust__icon--0 { background: #ffe4e3; color: #d23b36; }
.bks-trust__icon--1 { background: #e3edff; color: #2f6fd6; }
.bks-trust__icon--2 { background: #dff5ea; color: #1f8a5b; }

html.dark .bks-trust__icon--0 { background: rgba(255, 98, 93, .16); color: #ff9a96; }
html.dark .bks-trust__icon--1 { background: rgba(96, 150, 255, .16); color: #9cc0ff; }
html.dark .bks-trust__icon--2 { background: rgba(70, 200, 140, .16); color: #7fe0b0; }

@media (max-width: 767px) {
    .bks-trust {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bks-trust__item { padding: 10px 14px; }
}

/* Encart « vendre » (Leboncoin : C'est le moment de vendre) */
.bks-sell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 8px 0 34px;
    padding: 26px 30px;
    background: linear-gradient(120deg, #1d568e 0%, #2b7fd4 100%);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}

.bks-sell::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    pointer-events: none;
}

.bks-sell__text strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bks-sell__text span {
    display: block;
    margin-top: 4px;
    color: #dbe8f7;
    font-size: 14.5px;
}

.bks-sell__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 13px 22px;
    background: var(--bks-coral);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, transform .15s ease;
}

.bks-sell__button:hover {
    background: var(--bks-coral-2);
    transform: translateY(-1px);
}

.bks-sell__button svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
    .bks-sell {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 30px;
        padding: 22px 20px;
    }

    .bks-sell__text strong { font-size: 19px; }
    .bks-sell__button { width: 100%; justify-content: center; }
}

/* Sous-titres de section */
main .bks-heading {
    flex-wrap: wrap;
    row-gap: 2px;
}

main .bks-heading > p.font-semibold {
    flex: 1 1 auto;
}

main .bks-heading > .bks-subtitle {
    order: 3;
    flex-basis: 100%;
    color: var(--bks-card-text);
    font-size: 14px;
}

/* Bons plans : bloc pastel */
main .xl\:w-feLarge > .mt-5.mb-10.bks-deals {
    padding: 26px 24px 20px !important;
    background: #fff3ec !important;
    border-radius: 28px !important;
}

html.dark main .xl\:w-feLarge > .mt-5.mb-10.bks-deals {
    background: #1b2142 !important;
}

@media (max-width: 640px) {
    main .xl\:w-feLarge > .mt-5.mb-10.bks-deals {
        padding: 18px 12px 56px !important;
        border-radius: 22px !important;
    }
}

/* Flèches des carrousels : ronds blancs */
main .splide__arrows .arrow {
    width: 44px !important;
    height: 44px !important;
    display: grid;
    place-items: center;
    background: #ffffff !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px -6px rgba(26, 29, 38, .35) !important;
    transition: transform .15s ease;
}

main .splide__arrows .arrow:hover {
    transform: scale(1.06);
}

main .splide__arrows .arrow svg {
    color: #1a1d26 !important;
}

html.dark main .splide__arrows .arrow {
    background: #232a4d !important;
}

html.dark main .splide__arrows .arrow svg {
    color: #ffffff !important;
}

main .splide__arrows .arrow:disabled {
    opacity: 0 !important;
}

/* Blog de l'accueil : cartes plates, photo arrondie */
main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .h-56 {
    border-radius: 18px;
}

main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .p-4 {
    padding: 12px 2px 0 !important;
}

main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .p-4 > p.font-semibold {
    height: auto !important;
    min-height: 2.6em;
    color: var(--bks-card-title) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .p-4 p:not(.font-semibold) {
    color: var(--bks-card-text) !important;
    font-size: 13px !important;
}

/* Bandeau d'accueil : de l'air sous l'en-tête fixe (deux barres = 104 px) */
html body main .mt-24.w-full:has(> .bg-feAchromatic-900.relative) {
    margin-top: 128px !important;
}

@media (max-width: 640px) {
    html body main .mt-24.w-full:has(> .bg-feAchromatic-900.relative) { margin-top: 116px !important; }
}

/* =====================================================================
   VERSION 5 — Déposer une annonce (/item-entry) : choix de la catégorie
   puis formulaire (ItemUpload1). Uniquement du style, rien n'est retiré.
   ===================================================================== */

/* Étape 1 : choix de la catégorie */
main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62) {
    max-width: 1128px;
}

main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62)::before {
    content: "Déposer une annonce";
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    background: #ffe9df;
    border-radius: 999px;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
}

html[lang^="en"] main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62)::before {
    content: "Post an ad";
}

html.dark main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62)::before {
    background: rgba(255, 140, 90, .16);
    color: #ffb08a;
}

main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62) > p.text-4xl {
    color: var(--bks-card-title) !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62) > p.text-xl {
    margin-top: 8px !important;
    color: var(--bks-card-text) !important;
    font-size: 16px !important;
}

main div.mt-8.grid:has(> div.p-3 > div.h-62) {
    gap: 14px !important;
    margin-top: 34px !important;
}

@media (min-width: 1024px) {
    main div.mt-8.grid:has(> div.p-3 > div.h-62) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

main div.mt-8.grid > div.p-3:has(> div.h-62) {
    padding: 0 !important;
}

main div.mt-8.grid > div.p-3 > div.h-62 {
    padding: 16px 18px !important;
    background: var(--bks-soft) !important;
    border: 2px solid transparent !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    text-align: left;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

main div.mt-8.grid > div.p-3 > div.h-62::after {
    content: "";
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    color: var(--bks-card-text);
    transform: rotate(45deg);
    opacity: .55;
    transition: transform .15s ease, opacity .15s ease;
}

main div.mt-8.grid > div.p-3 > div.h-62:hover {
    background: #fff1e8 !important;
    border-color: #ffc9ad !important;
    transform: translateY(-2px);
}

main div.mt-8.grid > div.p-3 > div.h-62:hover::after {
    opacity: 1;
    transform: translateX(3px) rotate(45deg);
}

html.dark main div.mt-8.grid > div.p-3 > div.h-62:hover {
    background: #26223f !important;
    border-color: rgba(255, 140, 90, .45) !important;
}

main div.mt-8.grid > div.p-3 > div.h-62 > div.rounded-full {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

main div.mt-8.grid > div.p-3 > div.h-62 > p {
    margin-left: 16px !important;
    color: var(--bks-card-title) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Étape 2 : formulaire */
main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 {
    max-width: 880px;
    padding: 10px 0 18px;
    background: #ffffff !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 40px -28px rgba(26, 29, 38, .35);
}

html.dark main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 {
    background: #171c38 !important;
}

main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 .font-medium.text-base.lg\:text-lg {
    color: var(--bks-card-title) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
}

main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 :is(input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input:not([type]), textarea) {
    min-height: 46px;
    padding-inline: 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    transition: border-color .15s ease, background-color .15s ease;
}

main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 textarea {
    padding-block: 12px !important;
}

main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 :is(input, textarea):focus {
    background: var(--bks-page) !important;
    border-color: var(--bks-coral) !important;
    box-shadow: 0 0 0 4px rgba(226, 76, 68, .14) !important;
    outline: none !important;
}

/* Listes déroulantes (PsDropdown : bouton d'ouverture) */
main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 button.border:not(.bg-fePrimary-500) {
    min-height: 46px;
    background: var(--bks-soft) !important;
    border-color: transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Bouton principal (Publier / Envoyer) */
main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 button.bg-fePrimary-500 {
    min-height: 48px;
    padding-inline: 26px !important;
    background: var(--bks-coral) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

/* Zone des photos */
main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 .h-68 {
    border-radius: 18px !important;
    overflow: hidden;
}

@media (max-width: 640px) {
    main > div.text-center.mx-auto:has(> div.mt-8.grid > div.p-3 > div.h-62) > p.text-4xl {
        font-size: 28px !important;
    }

    main div.mt-8.grid > div.p-3 > div.h-62 {
        height: auto !important;
        min-height: 76px;
        padding: 10px 16px 10px 10px !important;
    }

    main div.mt-8.grid:has(> div.p-3 > div.h-62) {
        gap: 10px !important;
        margin-top: 24px !important;
    }

    main div.flex.flex-col.mx-auto.border-2.rounded-md.mb-6 {
        border-radius: 20px !important;
    }
}

/* Déposer une annonce : bloc « profil » (même cadre, mais avec ses marges) */
main div.flex.flex-col.py-6.mx-auto.border-2.rounded-md.mb-6 {
    padding: 22px 28px !important;
    gap: 6px;
}

main div.flex.flex-col.py-6.mx-auto.border-2.rounded-md.mb-6 > p.text-base {
    color: var(--bks-card-title) !important;
    font-weight: 700;
}

/* Zone des photos (Dropzone) */
main #dropzone.custom-dropzone {
    min-height: 170px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #fff6f1 !important;
    border: 2px dashed #f3a98a !important;
    border-radius: 18px !important;
    transition: background-color .15s ease, border-color .15s ease;
}

main #dropzone.custom-dropzone:hover,
main #dropzone.custom-dropzone.dz-drag-hover {
    background: #ffece2 !important;
    border-color: var(--bks-coral) !important;
}

html.dark main #dropzone.custom-dropzone {
    background: rgba(255, 140, 90, .07) !important;
    border-color: rgba(255, 140, 90, .45) !important;
}

main #dropzone .dz-message .dz-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

main #dropzone .dz-message .dz-button::before {
    content: "";
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bks-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
}

main #dropzone .dz-message .dz-button small {
    color: var(--bks-card-text);
    font-size: 12.5px;
    font-weight: 500;
}

/* Astérisques des champs obligatoires lisibles en sombre */
html.dark main .text-feError-800 {
    color: #ff8a85 !important;
}

/* Titre « Déposer une annonce » : de l'air sous l'en-tête */
main > div.flex.flex-col.justify-center.items-center.mt-28:has(+ div.flex.flex-col.py-6, + div.flex.flex-col.border-2) {
    margin-top: 136px !important;
}

main > div.flex.flex-col.justify-center.items-center.mt-28 > .mb-10 > p.text-xl {
    color: var(--bks-card-title) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

@media (max-width: 640px) {
    main div.flex.flex-col.py-6.mx-auto.border-2.rounded-md.mb-6 {
        padding: 18px 20px !important;
    }

    main > div.flex.flex-col.justify-center.items-center.mt-28:has(+ div.flex.flex-col.py-6, + div.flex.flex-col.border-2) {
        margin-top: 124px !important;
    }

    main > div.flex.flex-col.justify-center.items-center.mt-28 > .mb-10 {
        margin-bottom: 22px !important;
    }
}

/* =====================================================================
   VERSION 6 — accueil sur téléphone : bandeau compact, recherche pleine
   largeur, catégories en ligne défilante, deux annonces par écran,
   blog en carrousel natif.
   ===================================================================== */
@media (max-width: 640px) {
    /* Bandeau : la hauteur suit le contenu au lieu des 530 px fixes */
    html body main .mt-24 > .bg-feAchromatic-900.relative > div.w-full.relative:first-child {
        position: absolute !important;
        inset: 0;
        height: 100% !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative > div.w-full.relative:first-child img {
        height: 100% !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative > div.absolute.top-0 {
        position: relative !important;
        height: auto !important;
        gap: 16px !important;
        padding: 26px 14px 20px;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
        margin-bottom: 6px !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative .text-center > p.text-xs {
        padding-inline: 8px !important;
        font-size: 13.5px !important;
    }

    /* Recherche : pleine largeur, champs empilés */
    html body main .mt-24 > .bg-feAchromatic-900.relative div.rounded-lg.px-4.py-4.mx-auto {
        width: 100% !important;
        max-width: none !important;
        padding: 10px !important;
        border-radius: 20px !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative div.rounded-lg.px-4.py-4.mx-auto > div {
        margin-top: 0 !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative div.rounded-lg.px-4.py-4.mx-auto .flex.flex-col {
        gap: 8px !important;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative div.rounded-lg.px-4.py-4.mx-auto :is(input, button) {
        min-height: 44px;
    }

    html body main .mt-24 > .bg-feAchromatic-900.relative div.rounded-lg.px-4.py-4.mx-auto .flex.justify-center > button {
        width: 100%;
    }

    /* Catégories populaires : une ligne qui défile au doigt */
    html body main .mt-24 .h-20 {
        height: auto !important;
    }

    html body main .mt-24 .h-20 > p {
        margin-bottom: 8px !important;
        text-align: left !important;
        padding-left: 2px;
        font-weight: 600;
    }

    html body main .mt-24 .h-20 > .flex {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-inline: -14px;
        padding: 2px 14px 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html body main .mt-24 .h-20 > .flex::-webkit-scrollbar { display: none; }
    html body main .mt-24 .h-20 > .flex > div { flex-shrink: 0; }
    html body main .mt-24 .h-20 button { white-space: nowrap; }

    /* Bande de confiance : trois petites colonnes */
    .bks-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 14px 16px 4px !important;
    }

    .bks-trust__item {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 6px !important;
        text-align: center;
        border-radius: 16px;
    }

    .bks-trust__item strong {
        font-size: 12.5px;
        line-height: 1.25;
    }

    .bks-trust__item small { display: none; }

    .bks-trust__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .bks-trust__icon svg { width: 17px; height: 17px; }

    /* Carrousels d'annonces : deux annonces par écran */
    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide {
        width: calc(50% - 6px) !important;
        margin-right: 12px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide .bk-item-card p.text-sm {
        font-size: 13px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide .bk-item-card p.text-xs {
        font-size: 12px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide .bk-item-card p.text-fePrimary-500 {
        font-size: 15px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide .bk-item-card div.ps-1:has(> p.text-fePrimary-500) {
        padding-inline: 2px !important;
    }

    /* Les flèches prennent leur place sous le carrousel */
    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__arrows {
        position: relative !important;
        height: 50px;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .splide__arrows .arrow {
        top: 6px !important;
        bottom: auto !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 {
        margin-bottom: 28px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading > p.font-semibold {
        font-size: 20px !important;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading > .bks-subtitle {
        font-size: 13px;
    }

    /* Flèches plus petites sous le carrousel */
    html body main .splide__arrows .arrow {
        width: 38px !important;
        height: 38px !important;
    }

    /* Blog : cartes côte à côte qui défilent au doigt */
    html body main .xl\:w-feLarge > .mt-5.mb-10 > .grid.grid-cols-1:has(.rounded-lg.cursor-pointer.shadow-sm) {
        display: grid !important;
        grid-auto-flow: column;
        grid-template-columns: none !important;
        grid-auto-columns: 78%;
        gap: 12px !important;
        margin-top: 16px !important;
        margin-inline: -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        scrollbar-width: none;
    }

    html body main .xl\:w-feLarge > .mt-5.mb-10 > .grid.grid-cols-1:has(.rounded-lg.cursor-pointer.shadow-sm)::-webkit-scrollbar { display: none; }

    html body main .xl\:w-feLarge > .mt-5.mb-10 > .grid.grid-cols-1:has(.rounded-lg.cursor-pointer.shadow-sm) > * {
        scroll-snap-align: start;
    }

    html body main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .h-56 {
        height: auto !important;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    html body main .rounded-lg.cursor-pointer.w-full.h-full.shadow-sm.overflow-hidden > .p-4 > p.font-semibold {
        font-size: 15px !important;
    }

    /* Encart vendre plus compact */
    .bks-sell {
        margin: 26px 0 28px !important;
        padding: 20px 18px !important;
        border-radius: 22px !important;
    }

    .bks-sell__text strong { font-size: 18px !important; }
    .bks-sell__text span { font-size: 13.5px !important; }

    /* Bons plans : plus besoin de réserver la place des flèches */
    html body main .xl\:w-feLarge > .mt-5.mb-10.bks-deals {
        padding: 18px 12px 12px !important;
    }
}

/* =====================================================================
   VERSION 7 — site mobile façon Vinted (html.bks-m, posé par
   public/js/site-modern.js sous 768 px). Barre d'onglets en bas,
   recherche + catégories en tête, annonces en grille de deux colonnes.
   L'ordinateur n'est pas concerné.
   ===================================================================== */

.bks-tabbar,
.bks-mhome { display: none; }

html.bks-m body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* ---------- Barre d'onglets ---------- */
html.bks-m .bks-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--bks-panel-line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

html.dark.bks-m .bks-tabbar {
    background: rgba(16, 20, 42, .96);
}

html.bks-m.bks-m-chat .bks-tabbar { display: none; }
html.bks-m.bks-m-chat body { padding-bottom: 0; }

html.bks-m .bks-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    color: #8a8f9c;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

html.bks-m .bks-tab svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

html.bks-m .bks-tab.is-active { color: var(--bks-card-title); }
html.bks-m .bks-tab.is-active svg { stroke-width: 2.3; }

html.bks-m .bks-tab--sell,
html.bks-m .bks-tab--sell.is-active { color: var(--bks-coral); }

/* ---------- Accueil : recherche et catégories ---------- */
html.bks-m .bks-mhome {
    display: block;
    position: sticky;
    top: var(--bks-head, 104px);
    z-index: 30;
    margin: var(--bks-head-top, 104px) 0 0;
    padding: 10px 16px 0;
    background: var(--bks-page);
}

html.dark.bks-m .bks-mhome { background: #0f1329; }

html.bks-m .bks-mhome__bar {
    display: flex;
    gap: 8px;
}

html.bks-m .bks-mhome__search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: var(--bks-soft);
    border-radius: 12px;
    color: #8a8f9c;
    font-size: 15px;
    text-align: left;
}

html.dark.bks-m .bks-mhome__search,
html.dark.bks-m .bks-mhome__filters {
    background: rgba(255, 255, 255, .07);
}

html.bks-m .bks-mhome__search svg,
html.bks-m .bks-mhome__filters svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

html.bks-m .bks-mhome__filters {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--bks-soft);
    border-radius: 12px;
    color: var(--bks-card-title);
}

html.bks-m.bks-m-filters .bks-mhome__filters {
    background: var(--bks-card-title);
    color: var(--bks-page);
}

html.bks-m .bks-mhome__cats {
    display: flex;
    gap: 22px;
    margin: 0 -16px;
    padding: 12px 16px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--bks-panel-line);
    scrollbar-width: none;
}

html.bks-m .bks-mhome__cats::-webkit-scrollbar { display: none; }

html.bks-m .bks-mhome__cats a[data-cat] {
    flex-shrink: 0;
    padding: 4px 0 10px;
    border-bottom: 2px solid transparent;
    color: #6b7180;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}

html.bks-m .bks-mhome__cats a[data-cat].is-active {
    border-color: var(--bks-card-title);
    color: var(--bks-card-title);
}

/* Le grand bandeau devient le panneau « Filtres » (fermé par défaut) */
html.bks-m body main .mt-24.w-full:has(> .bg-feAchromatic-900.relative) {
    display: none;
    margin-top: 12px !important;
}

html.bks-m.bks-m-filters body main .mt-24.w-full:has(> .bg-feAchromatic-900.relative) {
    display: block;
}

html.bks-m body main .mt-24 > .bg-feAchromatic-900.relative {
    border-radius: 18px !important;
}

html.bks-m body main .mt-24 > .bg-feAchromatic-900.relative .text-center,
html.bks-m body main .mt-24 > .bg-feAchromatic-900.relative .h-20 {
    display: none !important;
}

html.bks-m body main .mt-24 > .bg-feAchromatic-900.relative > div.absolute.top-0 {
    padding: 12px !important;
}

/* Bande de confiance : on garde l'écran pour les annonces */
html.bks-m .bks-trust { display: none !important; }

/* ---------- Encart vendre façon Vinted ---------- */
html.bks-m .bks-sell {
    margin: 4px 0 26px !important;
    padding: 18px !important;
    background: #fff1e8 !important;
    border-radius: 16px !important;
}

html.dark.bks-m .bks-sell { background: #1f2245 !important; }
html.bks-m .bks-sell::after { display: none; }

html.bks-m .bks-sell__text strong {
    color: var(--bks-card-title) !important;
    font-size: 18px !important;
}

html.bks-m .bks-sell__text span { color: var(--bks-card-text) !important; }

html.bks-m .bks-sell__button {
    padding: 11px 18px !important;
    font-size: 14.5px !important;
}

/* ---------- Sections : grille de deux colonnes ---------- */
html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10:first-of-type,
html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 {
    margin-top: 22px !important;
    margin-bottom: 24px !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading {
    margin-bottom: 12px !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading > p.font-semibold {
    font-size: 19px !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading button {
    padding: 4px 2px !important;
    background: transparent !important;
    border: 0 !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .splide__track {
    overflow: visible !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .splide__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
    transform: none !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide {
    width: auto !important;
    margin: 0 !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .splide__slide:nth-child(n+7) {
    display: none !important;
}

html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10 .splide__arrows {
    display: none !important;
}

/* Bons plans : bloc plein écran discret */
html.bks-m body main .xl\:w-feLarge > .mt-5.mb-10.bks-deals {
    margin-inline: -16px;
    padding: 18px 16px 14px !important;
    border-radius: 0 !important;
}

/* Cartes : photo en 4/5, prix en gras, texte gris (Vinted) */
html.bks-m main .bk-item-card.bk-item-card .h-44.relative {
    padding-bottom: 125% !important;
    border-radius: 8px !important;
}

html.bks-m main .bk-item-card.bk-item-card .w-10.h-10.flex.justify-center.items-center.right-2.top-2 {
    top: auto !important;
    bottom: 8px !important;
    width: 30px !important;
    height: 30px !important;
}

html.bks-m main .bk-item-card.bk-item-card p.text-fePrimary-500 {
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

html.bks-m main .bk-item-card.bk-item-card .truncate-2-lines {
    color: var(--bks-card-text) !important;
    font-size: 13px !important;
}

html.bks-m main .bk-item-card.bk-item-card .pt-1.pb-2.flex.items-center p.text-xs {
    font-size: 12px !important;
}

/* Fenêtres du site (recherche, filtres…) au-dessus des barres fixes */
html.bks-m .vue-neat-modal-wrapper {
    z-index: 70 !important;
}

/* Pied de page : tient dans les téléphones de moins de 384 px */
html.bks-m div.lg\:w-large.xl\:w-feLarge.flex.flex-col.mx-auto.mt-6 {
    width: 100% !important;
    max-width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
}

html.bks-m div.lg\:w-large.xl\:w-feLarge.flex.flex-col.mx-auto.mt-6 > div,
html.bks-m div.lg\:w-large.xl\:w-feLarge.flex.flex-col.mx-auto.mt-6 > div > div {
    min-width: 0;
    gap: 20px !important;
}

html.bks-m div.lg\:w-large.xl\:w-feLarge.flex.flex-col.mx-auto.mt-6 p {
    overflow-wrap: anywhere;
}

/* =====================================================================
   VERSION 8 — en-tête mobile façon Vinted : logo à gauche, menu à droite.
   L'en-tête d'origine reste dans la page, invisible : le menu latéral
   appuie sur ses boutons (compte, langue, thème, emplacement).
   ===================================================================== */
.bks-mheader,
.bks-drawer { display: none; }

html.bks-m nav.h-10,
html.bks-m nav.h-16 {
    opacity: 0 !important;
    pointer-events: none !important;
}

html.bks-m .bks-mheader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 48;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 8px 0 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--bks-panel-line);
}

html.dark.bks-m .bks-mheader { background: #10142a; }

html.bks-m .bks-mheader__logo img {
    display: block;
    height: 30px;
    width: auto;
}

html.dark.bks-m .bks-mheader__logo img,
html.dark.bks-m .bks-drawer__head img {
    filter: brightness(0) invert(1);
}

html.bks-m .bks-mheader__menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #8a8f9c;
}

html.bks-m .bks-mheader__menu svg { width: 28px; height: 28px; stroke-width: 1.6; }

/* Les pages gardaient 104 px pour l'ancien en-tête sur deux étages */
html.bks-m body main:not(:has(#bks-mhome)) {
    margin-top: -40px;
}

/* Pastille des messages dans la barre d'onglets */
html.bks-m .bks-tab { position: relative; }

html.bks-m .bks-tab__badge {
    position: absolute;
    top: 0;
    left: calc(50% + 4px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--bks-coral);
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}

html.dark.bks-m .bks-tab__badge { border-color: #10142a; }

/* ---------- Menu latéral ---------- */
html.bks-m .bks-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    pointer-events: none;
}

html.bks-m .bks-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 42, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

html.bks-m .bks-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform .25s ease;
}

html.dark.bks-m .bks-drawer__panel { background: #141935; }

html.bks-m.bks-m-menu .bks-drawer { pointer-events: auto; }
html.bks-m.bks-m-menu .bks-drawer__backdrop { opacity: 1; }
html.bks-m.bks-m-menu .bks-drawer__panel { transform: none; }
html.bks-m.bks-m-menu body { overflow: hidden; }

html.bks-m .bks-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 8px 0 18px;
    border-bottom: 1px solid var(--bks-panel-line);
}

html.bks-m .bks-drawer__head img { height: 26px; width: auto; }

html.bks-m .bks-drawer__head button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--bks-card-title);
}

html.bks-m .bks-drawer__head svg { width: 24px; height: 24px; }

html.bks-m .bks-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0 calc(24px + env(safe-area-inset-bottom));
}

html.bks-m .bks-drawer__group {
    padding: 12px 0 8px;
    border-bottom: 8px solid var(--bks-soft);
}

html.bks-m .bks-drawer__group:last-child { border-bottom: 0; }

html.bks-m .bks-drawer__title,
html.bks-m .bks-drawer__sub {
    padding: 4px 18px 6px;
    color: #8a8f9c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

html.bks-m .bks-drawer__sub { padding-top: 12px; }

html.bks-m .bks-drawer__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 10px;
}

html.bks-m .bks-drawer__user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

html.bks-m .bks-drawer__user strong {
    color: var(--bks-card-title);
    font-size: 16px;
    font-weight: 800;
}

html.bks-m .bks-drawer__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--bks-card-title);
    font-size: 15.5px;
    font-weight: 500;
    text-align: left;
}

html.bks-m .bks-drawer__item:active { background: var(--bks-soft); }

html.bks-m .bks-drawer__item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: #6b7180;
}

html.bks-m .bks-drawer__item span { flex: 1; }

html.bks-m .bks-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    background: #d5d8df;
    border-radius: 999px;
    transition: background-color .15s ease;
}

html.bks-m .bks-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}

html.bks-m .bks-drawer__item.is-on .bks-switch { background: var(--bks-coral); }
html.bks-m .bks-drawer__item.is-on .bks-switch::after { transform: translateX(18px); }

html.bks-m .bks-drawer__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 18px 6px;
}

html.bks-m .bks-drawer__langs button {
    padding: 8px 16px;
    background: var(--bks-soft);
    border: 1.5px solid transparent;
    border-radius: 999px;
    color: var(--bks-card-title);
    font-size: 14px;
    font-weight: 600;
}

html.bks-m .bks-drawer__langs button.is-active {
    background: transparent;
    border-color: var(--bks-card-title);
}

/* =====================================================================
   VERSION 9 — pied de page clair et aéré (Vinted / Leboncoin) :
   bandeau de marque, colonnes de liens, réseaux et applis, copyright.
   Sombre : bleu nuit. Le bandeau .bks-fbrand vient de site-modern.js.
   ===================================================================== */
html body footer .bk-footer {
    --bks-foot-bg: #f6f7f9;
    --bks-foot-line: #e6e8ee;
    --bks-foot-title: #1a1d26;
    --bks-foot-link: #4a5060;
    --bks-foot-muted: #8a8f9c;
    padding: 0 16px;
    background: var(--bks-foot-bg) !important;
    border-top: 1px solid var(--bks-foot-line) !important;
}

html.dark body footer .bk-footer {
    --bks-foot-bg: #0c1024;
    --bks-foot-line: #242a4a;
    --bks-foot-title: #ffffff;
    --bks-foot-link: #b9bfd6;
    --bks-foot-muted: #7f86a3;
}

/* Bandeau de marque */
html body footer .bks-fbrand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1128px;
    margin: 0 auto;
    padding: 34px 0 30px;
    border-bottom: 1px solid var(--bks-foot-line);
}

html body footer .bks-fbrand__logo img {
    display: block;
    height: 32px;
    width: auto;
}

html.dark body footer .bks-fbrand__logo img {
    filter: brightness(0) invert(1);
}

html body footer .bks-fbrand__text p {
    max-width: 460px;
    margin-top: 10px;
    color: var(--bks-foot-link);
    font-size: 14.5px;
    line-height: 1.5;
}

html body footer .bks-fbrand__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 13px 24px;
    background: var(--bks-coral);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}

html body footer .bks-fbrand__cta:hover {
    background: var(--bks-coral-2);
    transform: translateY(-1px);
}

html body footer .bks-fbrand__cta svg { width: 18px; height: 18px; }

/* Colonnes */
html body footer .bk-footer > div.lg\:w-large {
    width: 100%;
    max-width: 1128px;
    margin: 0 auto !important;
    padding: 30px 0 8px;
    justify-content: space-between !important;
    gap: 32px !important;
}

html body footer .bk-footer p.font-semibold.text-xl {
    margin-bottom: 4px;
    color: var(--bks-foot-title) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

html body footer .bk-footer .flex.flex-col.gap-6 {
    gap: 14px !important;
}

html body footer .bk-footer .flex.flex-col.gap-2 {
    gap: 10px !important;
}

html body footer .bk-footer .flex.flex-col.gap-2 p,
html body footer .bk-footer .flex.flex-col.gap-2 a,
html body footer .bk-footer .flex.flex-col.gap-2 div {
    width: fit-content;
    color: var(--bks-foot-link) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    transition: color .15s ease;
}

html body footer .bk-footer .flex.flex-col.gap-2 p:hover,
html body footer .bk-footer .flex.flex-col.gap-2 a:hover {
    color: var(--bks-coral) !important;
}

/* Réseaux sociaux : ronds discrets */
html body footer .bk-footer .bk-followus a.h-10,
html body footer .bk-footer .bk-followus-sm a.h-10 {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--bks-foot-line);
    border-radius: 50%;
    color: var(--bks-foot-title) !important;
    transition: border-color .15s ease, color .15s ease;
}

html.dark body footer .bk-footer .bk-followus a.h-10,
html.dark body footer .bk-footer .bk-followus-sm a.h-10 {
    background: rgba(255, 255, 255, .06);
}

html body footer .bk-footer .bk-followus a.h-10:hover {
    border-color: var(--bks-coral);
    color: var(--bks-coral) !important;
}

html body footer .bk-footer .bk-followus a.h-10 svg {
    width: 20px;
    height: 20px;
    color: inherit !important;
    fill: currentColor !important;
}

/* Badges des applis */
html body footer .bk-footer .bk-appstores {
    gap: 12px !important;
    margin-top: 18px !important;
}

html body footer .bk-footer .bk-appstores img {
    border-radius: 10px;
}

/* Copyright */
html body footer .bk-footer .bk-footer-copy {
    width: 100%;
    max-width: 1128px;
    margin: 18px auto 0 !important;
    padding: 18px 0 22px;
    border-top: 1px solid var(--bks-foot-line);
    background: transparent !important;
}

html body footer .bk-footer .bk-footer-copy p {
    color: var(--bks-foot-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Téléphone */
@media (max-width: 768px) {

    html body footer .bks-fbrand {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 26px 0 22px;
    }

    html body footer .bks-fbrand__logo img { height: 28px; }
    html body footer .bks-fbrand__text p { font-size: 14px; }

    html body footer .bks-fbrand__cta {
        width: 100%;
        justify-content: center;
    }

    html body footer .bk-footer > div.lg\:w-large {
        padding: 22px 0 4px;
        gap: 26px !important;
    }

    html body footer .bk-footer > div.lg\:w-large > div.flex.gap-10 {
        flex-direction: column !important;
        width: 100%;
        gap: 24px !important;
    }

    html body footer .bk-footer > div.lg\:w-large > div.flex.gap-10 > div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 16px !important;
        width: 100%;
        margin: 0 !important;
    }

    html body footer .bk-footer p.font-semibold.text-xl {
        font-size: 12px !important;
        white-space: nowrap;
    }

    html body footer .bk-footer .flex.flex-col.gap-2 p,
    html body footer .bk-footer .flex.flex-col.gap-2 a,
    html body footer .bk-footer .flex.flex-col.gap-2 div {
        font-size: 14px !important;
    }

    html body footer .bk-footer .bk-followus {
        align-items: flex-start !important;
        margin-top: 0 !important;
    }

    html body footer .bk-footer .bk-footer-copy {
        margin-top: 14px !important;
        padding: 16px 0 18px;
    }
}

/* Ancien filet dégradé au-dessus du pied de page : remplacé par le trait fin */
html body footer .bk-footer::before {
    display: none !important;
}

/* =====================================================================
   VERSION 10 — badges des applis redessinés en français (.bks-store,
   ajoutés par site-modern.js ; l'image d'origine est seulement masquée).
   ===================================================================== */
html body footer .bk-appstores > div:has(.bks-store-link) {
    width: auto !important;
    height: auto !important;
}

html body footer a.bks-store-link {
    display: block;
    height: auto !important;
    text-decoration: none;
}

html body footer a.bks-store-link > img {
    display: none !important;
}

html body footer .bks-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 18px 0 14px;
    background: #111318;
    border: 1px solid #111318;
    border-radius: 14px;
    color: #ffffff;
    transition: transform .15s ease, background-color .15s ease;
}

html body footer a.bks-store-link:hover .bks-store {
    background: #262a33;
    transform: translateY(-1px);
}

html.dark body footer .bks-store {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
}

html.dark body footer a.bks-store-link:hover .bks-store {
    background: rgba(255, 255, 255, .12);
}

html body footer .bks-store svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

html body footer .bks-store__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

html body footer .bks-store__text small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    opacity: .85;
}

html body footer .bks-store__text strong {
    margin-top: 1px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

@media (max-width: 768px) {
    html body footer .bk-appstores {
        flex-wrap: wrap;
        justify-content: flex-start !important;
        height: auto !important;
        gap: 10px !important;
    }

    html body footer .bks-store {
        height: 46px;
        padding: 0 14px 0 12px;
    }

    html body footer .bks-store__text strong { font-size: 15.5px; }
}

/* =====================================================================
   VERSION 11 — onglets de catégories sur la page des annonces (mobile)
   et annonces en grille de deux colonnes.
   ===================================================================== */
html body .bks-mcats { display: none; }

html.bks-m body .bks-mcats {
    display: flex;
    position: sticky;
    top: var(--bks-head, 60px);
    z-index: 30;
    margin: -12px -16px 6px !important;
    padding: 12px 16px 0 !important;
    background: var(--bks-page);
}

html.dark.bks-m body .bks-mcats { background: #0f1329; }

html.bks-m body main div.grid.grid-cols-4:has(.bk-item-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 10px !important;
}

html.bks-m body main div.grid.grid-cols-4:has(.bk-item-card) > * {
    grid-column: auto !important;
}

/* =====================================================================
   VERSION 12 — page des annonces sur téléphone : barre d'outils compacte
   (recherche + filtre sur une ligne, tris côte à côte en pastilles).
   ===================================================================== */

/* Le fil d'Ariane fait doublon avec les onglets de catégories */
html.bks-m body main > div.w-full > div.mt-28:has(> #bks-mcats) > div.flex.flex-col:has(nav) {
    display: none !important;
}

html.bks-m body main > div.w-full > div.mt-28:has(> #bks-mcats) > div.relative.mt-4 {
    margin-top: 12px !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full:has(> div.grid.grid-cols-4) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
}

html.bks-m body main div.relative.mt-4 > div.w-full:has(> div.grid.grid-cols-4) > * {
    grid-column: 1 / -1;
}

/* Ligne 1 : recherche puis bouton filtre */
html.bks-m body main div.relative.mt-4 > div.w-full:has(> div.grid.grid-cols-4) > div.sm\:hidden.mb-4 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full:has(> div.grid.grid-cols-4) > div.flex.flex-row.justify-end {
    grid-column: 2;
    grid-row: 1;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.sm\:hidden.mb-4 input {
    height: 44px;
    padding-left: 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.sm\:hidden.mb-4 input:focus {
    background: var(--bks-page) !important;
    border-color: var(--bks-coral) !important;
    outline: none !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.flex.flex-row.justify-end button {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    justify-content: center;
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 0 !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.flex.flex-row.justify-end button svg {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: var(--bks-card-title) !important;
}

/* Ligne 2 : les deux tris côte à côte */
html.bks-m body main div.relative.mt-4 > div.w-full > div.sm\:hidden.block > div.flex-col {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 10px 0 14px !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.sm\:hidden.block .relative.inline-block {
    height: auto !important;
}

html.bks-m body main div.relative.mt-4 > div.w-full > div.sm\:hidden.block button {
    height: 34px;
    padding: 0 12px 0 14px !important;
    background: transparent !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

/* Prix aligné avec le titre sur toutes les cartes (téléphone) */
html.bks-m body main .bk-item-card div.ps-1:has(> p.text-fePrimary-500) {
    padding-inline: 2px !important;
}

/* =====================================================================
   VERSION 13 — sous-catégories sur téléphone (html.bks-p-sub) : outils sur
   une ligne, raccourci « Voir toutes les annonces », lignes compactes.
   ===================================================================== */
.bks-seeall { display: none; }

/* Fil d'Ariane : les onglets indiquent déjà la catégorie */
html.bks-m.bks-p-sub body main div.mt-28 > div.flex.flex-col > nav {
    display: none !important;
}

html.bks-m.bks-p-sub body main div.mt-28 > div.flex.flex-col {
    margin-top: 12px;
}

html.bks-m.bks-p-sub body main div.mt-28 > div.flex.flex-col > div.flex.justify-end {
    width: 100%;
    gap: 8px;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.relative.w-full {
    flex: 1;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end input {
    height: 44px;
    padding-left: 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end input:focus {
    background: var(--bks-page) !important;
    border-color: var(--bks-coral) !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.inline-block {
    width: 44px !important;
    margin: 0 !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.inline-block button {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    justify-content: center;
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 12px !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.inline-block button .child {
    justify-content: center !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.ml-4 {
    margin: 0 !important;
}

html.bks-m.bks-p-sub body main div.mt-28 div.flex.justify-end > div.ml-4 button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border-radius: 12px !important;
}

/* Raccourci vers toutes les annonces */
html.bks-m.bks-p-sub .bks-seeall {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding: 14px 14px 14px 12px;
    background: #fff1e8;
    border-radius: 16px;
    color: var(--bks-card-title);
    text-decoration: none;
}

html.dark.bks-m.bks-p-sub .bks-seeall { background: #1f2245; }

html.bks-m.bks-p-sub .bks-seeall__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--bks-coral);
    border-radius: 12px;
    color: #ffffff;
}

html.bks-m.bks-p-sub .bks-seeall__icon svg { width: 20px; height: 20px; }

html.bks-m.bks-p-sub .bks-seeall__text { flex: 1; min-width: 0; }

html.bks-m.bks-p-sub .bks-seeall__text strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
}

html.bks-m.bks-p-sub .bks-seeall__text small {
    display: block;
    color: var(--bks-card-text);
    font-size: 13px;
}

html.bks-m.bks-p-sub .bks-seeall > svg {
    width: 20px;
    height: 20px;
    color: var(--bks-card-text);
}

/* Sous-catégories : lignes compactes (photo, nom, flèche) */
html.bks-m.bks-p-sub body main div.w-full.mt-8 {
    margin-top: 14px !important;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid > div.relative {
    border-bottom: 1px solid var(--bks-panel-line);
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid > div.relative:last-child {
    border-bottom: 0;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.text-center.cursor-pointer {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 10px 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.text-center.cursor-pointer::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 8px;
    flex-shrink: 0;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    color: var(--bks-card-text);
    transform: rotate(45deg);
    opacity: .6;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.h-44.relative {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bks-soft);
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.h-44.relative > div.rounded-full {
    display: none !important;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.h-20 {
    flex: 1;
    height: auto !important;
    min-width: 0;
}

html.bks-m.bks-p-sub body main div.w-full.mt-8 > div.grid div.h-20 > p {
    padding: 0 !important;
    color: var(--bks-card-title) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

/* Ici le bloc du fil d'Ariane contient aussi la recherche : on le garde */
html.bks-m.bks-p-sub body main > div.w-full > div.mt-28:has(> #bks-mcats) > div.flex.flex-col.items-start:has(nav) {
    display: flex !important;
}

/* =====================================================================
   VERSION 14 — page « Mon profil » sur téléphone (html.bks-p-profile) :
   en-tête compact, statistiques en tuiles, boutons côte à côte,
   aperçus d'annonces sur deux colonnes, sections vides discrètes.
   ===================================================================== */
html.bks-m.bks-p-profile body main > div.w-full > nav.mt-32 {
    display: none !important;
}

html.bks-m.bks-p-profile body main > div.w-full > div.grid.grid-cols-1 {
    margin-top: 116px;
    gap: 22px !important;
}

/* Carte de profil */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.flex.flex-col.p-4 {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 8px !important;
    margin: 0 !important;
    padding: 16px !important;
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 20px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.w-32.h-32 {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    align-self: center;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.w-32.h-32 > div.absolute {
    width: 24px !important;
    height: 24px !important;
    padding: 2px !important;
    border: 2px solid var(--bks-soft);
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.w-32.h-32 > div.absolute svg {
    width: 16px !important;
    height: 16px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.text-xl {
    grid-column: 2 / -1;
    grid-row: 1;
    align-self: end;
    color: var(--bks-card-title) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-align: left !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.cursor-pointer.items-center {
    grid-column: 2 / -1;
    grid-row: 2;
    align-items: flex-start !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.cursor-pointer.items-center > div {
    justify-content: flex-start !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.text-xs {
    grid-column: 2 / -1;
    grid-row: 3;
    align-self: start;
    text-align: left !important;
}

/* Bouton « Vérifier » : pastille sous l'en-tête */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    margin-top: 10px;
    padding: 6px 14px !important;
    border-radius: 999px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.text-sm.text-center {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 6px;
    color: var(--bks-card-text) !important;
    text-align: left !important;
}

/* Statistiques : quatre tuiles (valeur en grand, libellé dessous) */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    grid-row: 6;
    flex-direction: column-reverse !important;
    justify-content: center !important;
    gap: 2px;
    margin-top: 10px;
    padding: 10px 4px !important;
    background: var(--bks-page);
    border-radius: 14px;
    color: var(--bks-card-text) !important;
    font-size: 11.5px !important;
    line-height: 1.2;
    text-align: center;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    background: rgba(255, 255, 255, .05);
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > * {
    text-align: center;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > :last-child {
    color: var(--bks-card-title) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

/* Éditer le profil / Paramètre côte à côte */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.text-base,
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > button {
    margin: 0 !important;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button {
    width: 100%;
    height: 44px;
    margin: 0 !important;
    background: var(--bks-page) !important;
    border: 1.5px solid var(--bks-card-title) !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button svg {
    color: var(--bks-card-title) !important;
}

/* Titres des sections */
html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 p.font-semibold.text-xl {
    color: var(--bks-card-title) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 div.flex.justify-between.items-center {
    margin-top: 26px !important;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 div.flex.justify-between.items-center button.border {
    padding: 6px !important;
    background: transparent !important;
    border: 0 !important;
}

/* Aperçus : deux annonces côte à côte (cases choisies par site-modern.js) */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2 > * {
    display: none !important;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2 > .bks-show {
    display: block !important;
    min-width: 0;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2 > .bks-show img {
    width: 100% !important;
}

/* Section vide : message discret */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2.bks-empty {
    display: block !important;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2.bks-empty::after {
    content: "Rien pour le moment";
    display: block;
    padding: 18px 16px;
    background: var(--bks-soft);
    border-radius: 14px;
    color: var(--bks-card-text);
    font-size: 14px;
    text-align: center;
}

html[lang^="en"].bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2.bks-empty::after {
    content: "Nothing yet";
}

/* Magasins : carte plus compacte */
html.bks-m.bks-p-profile main div.w-full.mt-6.grid.sm\:grid-cols-2 {
    margin-top: 14px !important;
}

html.bks-m.bks-p-profile main div.flex.justify-between.gap-5 > button.bg-fePrimary-500 {
    border-radius: 999px !important;
}

/* =====================================================================
   VERSION 15 — chiffres du profil : une seule bande à quatre colonnes
   séparées par des traits fins (au lieu de quatre tuiles serrées).
   ===================================================================== */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    position: relative;
    min-width: 0;
    margin-top: 14px !important;
    padding: 12px 2px !important;
    background: var(--bks-page) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) {
    border-radius: 16px 0 0 16px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:last-child {
    border-radius: 0 16px 16px 0 !important;
}

/* Les quatre cases se touchent : la bande paraît d'un seul bloc */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.flex.flex-col.p-4 {
    column-gap: 0 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 1px;
    background: var(--bks-panel-line);
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    background: rgba(255, 255, 255, .05) !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > :last-child {
    font-size: 18px !important;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* « Illimité » est un mot, pas un nombre : un peu plus petit */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) > :last-child {
    font-size: 15px !important;
    line-height: 1.4;
}

/* Les autres éléments de la carte gardent leur écart horizontal */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.w-32.h-32 { margin-right: 12px !important; }

@media (max-width: 380px) {
    html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.flex.flex-col.p-4 {
        padding: 14px 12px !important;
    }

    html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
        padding-inline: 0 !important;
        font-size: 10px !important;
    }
}

/* =====================================================================
   VERSION 16 — chiffres du profil aux couleurs de la marque : chiffres
   bleu marine, libellés gris ardoise, bande blanche à bord fin.
   ===================================================================== */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    background: #ffffff !important;
    border-top: 1px solid #e3e8f1;
    border-bottom: 1px solid #e3e8f1;
    color: #6b7488 !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) {
    border-left: 1px solid #e3e8f1;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:last-child {
    border-right: 1px solid #e3e8f1;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between::after {
    background: #e3e8f1 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > :last-child {
    margin-bottom: 2px;
    color: #1d3f6e !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    text-transform: none;
}

/* « Illimité » : mis en avant par la couleur de la marque */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) > :last-child {
    color: #1d568e !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
    background: #171d3c !important;
    border-color: #2a3156;
    color: #9aa3bd !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between::after {
    background: #2a3156 !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > :last-child {
    color: #ffffff !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) > :last-child {
    color: #8fb8f0 !important;
}

@media (max-width: 380px) {
    html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between {
        font-size: 10px !important;
        letter-spacing: -.01em;
    }
}

/* =====================================================================
   VERSION 17 — badge « Vérifier » du profil : petite pastille rangée
   sous le nom, à côté de la photo (au lieu d'une grosse ligne à part).
   ===================================================================== */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.w-32.h-32 {
    grid-row: 1 / span 4;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 {
    grid-column: 2 / -1 !important;
    grid-row: 4 !important;
    justify-self: start;
    align-self: start;
    gap: 4px !important;
    margin-top: 6px !important;
    padding: 3px 10px 3px 7px !important;
    background: rgba(29, 86, 142, .08) !important;
    border: 0 !important;
    border-radius: 999px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 svg {
    width: 15px !important;
    height: 15px !important;
    color: #1d568e !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 p {
    color: #1d568e !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 {
    background: rgba(143, 184, 240, .14) !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 svg,
html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 p {
    color: #8fb8f0 !important;
}

/* La description suit directement le bloc photo + nom */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.text-sm.text-center {
    margin-top: 12px !important;
}

/* =====================================================================
   VERSION 18 — carte « Postuler pour devenir vendeur » (ProfileVendorCard)
   sur téléphone : bandeau horizontal compact, illustration à gauche.
   ===================================================================== */
html.bks-m body main div.bg-feWarning-100.rounded-lg:has(> div.grid.grid-cols-4.p-5) {
    margin-bottom: 12px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #fff6ec 0%, #ffeedd 100%) !important;
    border: 1px solid #f6dcc0;
    border-radius: 18px !important;
}

html.dark.bks-m body main div.bg-feWarning-100.rounded-lg:has(> div.grid.grid-cols-4.p-5) {
    background: linear-gradient(135deg, #2a2440 0%, #241f3a 100%) !important;
    border-color: #3a3254;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid.grid-cols-4.p-5 {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    align-items: center;
    gap: 14px;
    padding: 14px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid > div.col-span-4.md\:col-span-1 {
    grid-column: 1 !important;
    width: 60px !important;
    height: 60px !important;
    background: #ffffff;
    border-radius: 16px;
}

html.dark.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid > div.col-span-4.md\:col-span-1 {
    background: rgba(255, 255, 255, .08);
}

html.bks-m body main div.bg-feWarning-100.rounded-lg img.w-36 {
    width: 46px !important;
    height: 46px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid > div.col-span-4.md\:col-span-3 {
    grid-column: 2 !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 {
    align-items: flex-start !important;
    padding-top: 0 !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > * {
    margin-top: 0 !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > :first-child {
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > p.text-center {
    margin-top: 3px !important;
    color: var(--bks-card-text) !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 {
    margin-top: 10px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 button {
    height: 34px;
    padding: 0 16px !important;
    background: #1d568e !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* =====================================================================
   VERSION 19 — page annonce sur téléphone : fil d'Ariane sur une ligne
   et « Partager » / « Signaler » en boutons ronds à droite.
   ===================================================================== */
html.bks-m body main div.mt-32.mb-10 > div.mb-4.flex.flex-col.mt-24:has(> nav + div.self-end) {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 76px !important;
    margin-bottom: 12px !important;
}

/* Fil d'Ariane : une seule ligne, sans cadre, le titre coupé par « … » */
html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav ol {
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child,
html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child > p {
    overflow: hidden;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li {
    flex-shrink: 0;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:empty {
    display: none;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child {
    flex-shrink: 1;
    min-width: 0;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child p,
html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child span {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav a {
    color: var(--bks-card-text) !important;
    font-size: 13px !important;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li span.mx-4 {
    margin: 0 6px !important;
    color: #b8bdc8 !important;
    font-size: 12px !important;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > nav li:last-child span.text-fePrimary-500 {
    color: var(--bks-card-title) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Partager / Signaler : deux ronds avec icône (le texte reste pour les lecteurs d'écran) */
html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end {
    flex-shrink: 0;
    align-self: center !important;
    gap: 8px !important;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end p.cursor-pointer {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: transparent !important;
    font-size: 0 !important;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end p.cursor-pointer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bks-card-title);
    -webkit-mask: var(--bks-icon) center / 18px no-repeat;
    mask: var(--bks-icon) center / 18px no-repeat;
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end > p.cursor-pointer {
    --bks-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='m16 6-4-4-4 4'/%3E%3Cpath d='M12 2v13'/%3E%3C/svg%3E");
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end > div p.cursor-pointer {
    --bks-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cpath d='M4 22v-7'/%3E%3C/svg%3E");
}

html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end > div p.cursor-pointer:active,
html.bks-m body main div.mt-24:has(> nav + div.self-end) > div.self-end > p.cursor-pointer:active {
    background: var(--bks-panel-line) !important;
}

/* =====================================================================
   VERSION 20 — panneau bleu des pages de connexion (.bks-auth-panel) :
   logo, titre aligné à gauche, avantages cochés, aperçu d'annonce.
   ===================================================================== */
html body main div.bks-auth-panel {
    position: relative;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0;
    padding: 44px 40px !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 10% 95%, rgba(226, 76, 68, .35) 0, rgba(226, 76, 68, 0) 42%),
        linear-gradient(160deg, #16335f 0%, #1d568e 60%, #2b7fd4 100%) !important;
    text-align: left;
}

/* L'icône de l'appli recadrée laisse la place au logo */
html body main div.bks-auth-panel > div.w-65 {
    display: none !important;
}

html body main div.bks-auth-panel .bks-auth-logo img {
    display: block;
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

html body main div.bks-auth-panel > p.text-lg {
    margin: 34px 0 10px !important;
    color: #ffffff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em;
    text-align: left !important;
}

html body main div.bks-auth-panel > p.text-base {
    margin: 0 !important;
    color: #d6e4f5 !important;
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

html body main div.bks-auth-panel .bks-auth-perks {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

html body main div.bks-auth-panel .bks-auth-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
}

html body main div.bks-auth-panel .bks-auth-perks svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    padding: 5px;
    background: rgba(255, 255, 255, .16);
    border-radius: 50%;
    stroke-width: 3;
}

/* Aperçu d'annonce décoratif, en verre dépoli */
html body main div.bks-auth-panel .bks-auth-card {
    display: flex;
    align-items: center;
    gap: 14px;
    align-self: stretch;
    margin-top: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
}

html body main div.bks-auth-panel .bks-auth-card__photo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffe2d1, #ffb59b);
    border-radius: 14px;
    color: #1a1d26;
}

html body main div.bks-auth-panel .bks-auth-card__photo svg { width: 28px; height: 28px; }

html body main div.bks-auth-panel .bks-auth-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #ffffff;
}

html body main div.bks-auth-panel .bks-auth-card__body strong {
    font-size: 17px;
    font-weight: 800;
}

html body main div.bks-auth-panel .bks-auth-card__body > span {
    font-size: 14px;
    font-weight: 600;
}

html body main div.bks-auth-panel .bks-auth-card__body small {
    margin-top: 2px;
    color: #c4d6ee;
    font-size: 12.5px;
}

/* Rangée d'icônes d'origine : discrète, sous l'aperçu */
html body main div.bks-auth-panel > div.flex.flex-row.space-x-4 {
    margin-top: 26px;
    opacity: .7;
}

/* =====================================================================
   VERSION 21 — formulaire de connexion (.bks-login, posé par le script) :
   titre + sous-titre, grands champs, bouton plein, boutons Google / Apple
   avec texte, lien d'inscription en bas. Ordre revu en flex.
   ===================================================================== */
html body main div.flex.flex-row.h-auto.overflow-hidden:has(.bks-login) {
    width: 100%;
    max-width: 880px;
    border-radius: 26px !important;
    box-shadow: 0 24px 60px -30px rgba(26, 29, 38, .35) !important;
}

html body main .bks-login {
    display: flex;
    flex-direction: column;
    padding: 40px 40px 34px !important;
}

html body main .bks-login > div.flex.justify-center { order: 0; justify-content: flex-start !important; }
html body main .bks-login > .bks-login__sub { order: 0; }
html body main .bks-login > form { order: 1; }
html body main .bks-login > div.block:has(span.h-3) { order: 2; }
html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 { order: 3; }
html body main .bks-login > div.flex.flex-row.items-start { order: 4; }
html body main .bks-login > div.flex.flex-row.justify-center.my-8 { order: 5; }

html body main .bks-login > div.flex.justify-center > p {
    margin: 0 !important;
    color: var(--bks-card-title) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

html body main .bks-login .bks-login__sub {
    margin: 6px 0 26px;
    color: var(--bks-card-text);
    font-size: 14.5px;
    line-height: 1.5;
}

html body main .bks-login form p.text-sm,
html body main .bks-login form div.mb-4 > p:first-child {
    margin-bottom: 6px !important;
    color: var(--bks-card-title) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

html body main .bks-login form input:not([type="checkbox"]) {
    height: 48px;
    padding-inline: 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
}

html body main .bks-login form input:not([type="checkbox"]):focus {
    background: var(--bks-page) !important;
    border-color: #1d568e !important;
    box-shadow: 0 0 0 4px rgba(29, 86, 142, .14) !important;
    outline: none !important;
}

html body main .bks-login form div.flex.justify-between {
    align-items: center;
    margin: 4px 0 6px !important;
    font-size: 13.5px;
}

html body main .bks-login form p.text-fePrimary-500.cursor-pointer {
    color: #1d568e !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

html.dark body main .bks-login form p.text-fePrimary-500.cursor-pointer { color: #8fb8f0 !important; }

html body main .bks-login form button.bg-fePrimary-500 {
    width: 100%;
    height: 50px;
    justify-content: center;
    border-radius: 999px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
}

/* Séparateur « ou » */
html body main .bks-login > div.block:has(span.h-3) > div {
    align-items: center;
    margin: 22px 0 16px !important;
}

html body main .bks-login > div.block:has(span.h-3) span.h-3 {
    height: 1px !important;
    border: 0 !important;
    background: var(--bks-panel-line);
}

html body main .bks-login > div.block:has(span.h-3) p {
    padding: 0 12px !important;
    color: var(--bks-card-text) !important;
    font-size: 13px !important;
}

/* Boutons de connexion rapide : pleine largeur, avec libellé */
html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 {
    flex-direction: column !important;
    gap: 10px;
}

html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 > * {
    margin: 0 !important;
}

html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 div.w-10.h-10 {
    width: 100% !important;
    height: 48px !important;
    gap: 10px;
    border: 0 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    transition: filter .15s ease;
}

html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 div.w-10.h-10:hover {
    filter: brightness(1.06);
}

html body main .bks-login div.w-10.h-10.bg-feBrand-google::after { content: "Continuer avec Google"; }
html body main .bks-login div.w-10.h-10.bg-feBrand-apple::after { content: "Continuer avec Apple"; }
html body main .bks-login div.w-10.h-10.bg-feBrand-facebook::after { content: "Continuer avec Facebook"; }
html body main .bks-login div.w-10.h-10.bg-feBrand-phone::after { content: "Continuer avec un téléphone"; }

html[lang^="en"] body main .bks-login div.w-10.h-10.bg-feBrand-google::after { content: "Continue with Google"; }
html[lang^="en"] body main .bks-login div.w-10.h-10.bg-feBrand-apple::after { content: "Continue with Apple"; }
html[lang^="en"] body main .bks-login div.w-10.h-10.bg-feBrand-facebook::after { content: "Continue with Facebook"; }
html[lang^="en"] body main .bks-login div.w-10.h-10.bg-feBrand-phone::after { content: "Continue with phone"; }

html body main .bks-login div.w-10.h-10.bg-feBrand-apple {
    background: #111318 !important;
}

html.dark body main .bks-login div.w-10.h-10.bg-feBrand-apple {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
}

/* Case « J'accepte la politique de confidentialité » */
html body main .bks-login > div.flex.flex-row.items-start {
    align-items: center !important;
    margin: 14px 0 0 !important;
    font-size: 13px;
}

/* « Pas encore de compte ? Créer un compte » */
html body main .bks-login > div.flex.flex-row.justify-center.my-8 {
    gap: 5px;
    margin: 22px 0 0 !important;
    padding-top: 18px;
    border-top: 1px solid var(--bks-panel-line);
    font-size: 14px;
}

html body main .bks-login > div.flex.flex-row.justify-center.my-8 p.text-fePrimary-500 {
    color: #1d568e !important;
    font-weight: 700;
}

html.dark body main .bks-login > div.flex.flex-row.justify-center.my-8 p.text-fePrimary-500 { color: #8fb8f0 !important; }

/* Téléphone : la carte tient dans l'écran */
@media (max-width: 640px) {
    html body main div.flex.flex-row.h-auto.overflow-hidden:has(.bks-login) {
        width: calc(100% - 24px) !important;
        margin-inline: 12px;
        border-radius: 22px !important;
    }

    html body main .bks-login { padding: 28px 20px 24px !important; }
    html body main .bks-login > div.flex.justify-center > p { font-size: 24px !important; }
}

/* Google : bouton blanc à bord fin, logo officiel en couleurs */
html body main .bks-login > div.flex.flex-row.justify-center.space-x-3 div.w-10.h-10.bg-feBrand-google {
    background: #ffffff !important;
    border: 1.5px solid var(--bks-panel-line) !important;
    color: var(--bks-card-title) !important;
}

html.dark body main .bks-login > div.flex.flex-row.justify-center.space-x-3 div.w-10.h-10.bg-feBrand-google {
    background: #1b2142 !important;
    border-color: #2a3156 !important;
    color: #ffffff !important;
}

html body main .bks-login div.w-10.h-10.bg-feBrand-google > svg { display: none !important; }

html body main .bks-login div.w-10.h-10.bg-feBrand-google::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lien d'inscription : taille de texte normale */
html body main .bks-login > div.flex.flex-row.justify-center.my-8 p {
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4 !important;
}

html body main .bks-login > div.flex.flex-row.justify-center.my-8 p.text-fePrimary-500 {
    font-weight: 700 !important;
}

/* =====================================================================
   VERSION 22 — couleurs de texte inspirées de GoLoisir : titres bleu
   marine, texte encre, texte secondaire ardoise, liens turquoise.
   Les boutons gardent le corail.
   ===================================================================== */
:root {
    --bks-ink: #14172b;
    --bks-card-title: #10245e;
    --bks-card-text: #4b5170;
    --bks-ink-faint: #7b8098;
    --bks-price: #10245e;
    --bks-hero-title: #10245e;
    --bks-hero-text: #4b5170;
    --bks-chip-text: #10245e;
    --bks-link: #0f8582;
    --bks-link-hover: #0b6d6a;
}

html.dark {
    --bks-ink: #f2f4fa;
    --bks-card-title: #f2f4fa;
    --bks-card-text: #aeb6cc;
    --bks-ink-faint: #8c93ae;
    --bks-price: #ffffff;
    --bks-hero-title: #f2f4fa;
    --bks-hero-text: #b2bad0;
    --bks-chip-text: #f2f4fa;
    --bks-link: #5fe0da;
    --bks-link-hover: #8aeae5;
}

html body {
    color: var(--bks-ink);
}

/* Titres de section et de page en bleu marine */
html body main h1,
html body main h2,
html body main h3,
html body main p.font-semibold.text-xl,
html body main p.font-semibold.text-2xl,
html body main p.font-semibold.text-3xl,
html body main p.font-semibold.text-4xl {
    color: var(--bks-card-title) !important;
}

/* Liens et textes d'action (hors boutons pleins) en turquoise */
html body main p.text-fePrimary-500.cursor-pointer,
html body main span.text-fePrimary-500,
html body main a.text-fePrimary-500,
html body main nav li span.text-fePrimary-500,
html body main .text-fePrimary-500.cursor-pointer:not(button) {
    color: var(--bks-link) !important;
}

html body main p.text-fePrimary-500.cursor-pointer:hover,
html body main a.text-fePrimary-500:hover {
    color: var(--bks-link-hover) !important;
}

/* « Voir tout » des sections */
html body main .bks-heading button p,
html body main .bks-heading button svg {
    color: var(--bks-link) !important;
}

/* Liens de la page de connexion */
html body main .bks-login form p.text-fePrimary-500.cursor-pointer,
html body main .bks-login > div.flex.flex-row.justify-center.my-8 p.text-fePrimary-500,
html body main .bks-login > div.flex.flex-row.items-start p.text-fePrimary-500 {
    color: var(--bks-link) !important;
}

/* Profil : « Illimité » et pastille « Vérifier » en turquoise */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between > :last-child {
    color: var(--bks-card-title) !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > p.flex.justify-between:nth-last-child(4) > :last-child,
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 p,
html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 svg {
    color: var(--bks-link) !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4 > div.bg-feInfo-50 {
    background: rgba(22, 184, 180, .1) !important;
}

/* Pied de page */
html body footer .bk-footer {
    --bks-foot-title: #10245e;
    --bks-foot-link: #4b5170;
    --bks-foot-muted: #7b8098;
}

html.dark body footer .bk-footer {
    --bks-foot-title: #f2f4fa;
    --bks-foot-link: #aeb6cc;
    --bks-foot-muted: #8c93ae;
}

html body footer .bk-footer .flex.flex-col.gap-2 p:hover,
html body footer .bk-footer .flex.flex-col.gap-2 a:hover {
    color: var(--bks-link) !important;
}

/* Onglets mobiles : onglet actif en bleu marine */
html.bks-m .bks-tab.is-active,
html.bks-m .bks-mhome__cats a[data-cat].is-active {
    color: var(--bks-card-title);
}

html.bks-m .bks-mhome__cats a[data-cat].is-active {
    border-color: var(--bks-card-title);
}

html body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading button,
html body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading button p,
html body main .xl\:w-feLarge > .mt-5.mb-10 .bks-heading button svg {
    color: var(--bks-link) !important;
    font-weight: 700;
}

/* =====================================================================
   VERSION 23 — fenêtres du site (localisation, recherche, confirmations)
   toujours au-dessus du bandeau d'accueil et des barres fixes, sur
   ordinateur comme sur téléphone.
   ===================================================================== */
.vue-neat-modal-wrapper {
    z-index: 70 !important;
}

/* =====================================================================
   VERSION 24 — toutes les fenêtres du site (vue-neat-modal) : fond
   assombri flouté, carte arrondie, titre net, bouton fermer rond,
   champs et boutons arrondis. Le contenu de chaque fenêtre est inchangé.
   ===================================================================== */
.vue-neat-modal-backdrop {
    z-index: 69 !important;
    background: rgba(12, 16, 36, .55) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Largeur minimale confortable, sans dépasser l'écran */
.vue-neat-modal {
    min-width: min(340px, calc(100vw - 32px));
    overflow-x: hidden !important;
}

/* La carte */
.vue-neat-modal > div > div[class*="rounded"] {
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 70px -30px rgba(16, 20, 42, .55) !important;
    color: var(--bks-ink);
}

html.dark .vue-neat-modal > div > div[class*="rounded"],
.vue-neat-modal > div.dark > div[class*="rounded"] {
    background: #151a33 !important;
    border-color: #262c4c !important;
}

/* Titre (première ligne de la carte) */
.vue-neat-modal > div > div[class*="rounded"] > div:first-child > div.grow > p,
.vue-neat-modal > div > div[class*="rounded"] > div.flex.justify-between.items-center:first-child > p,
.vue-neat-modal > div > div[class*="rounded"] > p:first-child {
    color: var(--bks-card-title) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
}

.vue-neat-modal > div > div[class*="rounded"] > div:first-child {
    align-items: center;
}

/* Bouton fermer : petit rond gris */
.vue-neat-modal > div > div[class*="rounded"] > div:first-child > svg.cursor-pointer,
.vue-neat-modal > div > div[class*="rounded"] > div:first-child > svg.hover\:cursor-pointer {
    box-sizing: content-box;
    width: 18px !important;
    height: 18px !important;
    padding: 7px;
    flex-shrink: 0;
    background: var(--bks-soft);
    border-radius: 50%;
    color: var(--bks-card-title) !important;
    transition: background-color .15s ease;
}

.vue-neat-modal > div > div[class*="rounded"] > div:first-child > svg:hover {
    background: var(--bks-panel-line);
}

/* Textes courants */
.vue-neat-modal > div > div[class*="rounded"] p:not(.font-semibold):not(.font-bold) {
    line-height: 1.5;
}

/* Champs et listes déroulantes */
.vue-neat-modal input:not([type="checkbox"]):not([type="radio"]),
.vue-neat-modal textarea {
    min-height: 44px;
    padding-inline: 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bks-card-title) !important;
}

.vue-neat-modal input:not([type="checkbox"]):not([type="radio"]):focus,
.vue-neat-modal textarea:focus {
    background: var(--bks-page) !important;
    border-color: var(--bks-link) !important;
    outline: none !important;
}

.vue-neat-modal .relative.inline-block > div > button:not(.bg-fePrimary-500) {
    min-height: 44px;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.vue-neat-modal .relative.inline-block.w-56 {
    width: 100% !important;
}

/* Boutons : principal en pilule corail, secondaire en pilule à bord fin */
.vue-neat-modal button.bg-fePrimary-500 {
    min-height: 46px;
    padding-inline: 22px !important;
    justify-content: center;
    background: var(--bks-coral) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.vue-neat-modal button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

.vue-neat-modal button[class*="bg-feAchromatic-50"]:not(.relative.inline-block *),
.vue-neat-modal button[class*="bg-feSecondary-50"]:not(.relative.inline-block *),
.vue-neat-modal button.border:not(.bg-fePrimary-500):not(.relative.inline-block *) {
    min-height: 46px;
    padding-inline: 22px !important;
    justify-content: center;
    background: transparent !important;
    border: 1.5px solid var(--bks-panel-line) !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.vue-neat-modal div.flex.justify-center > button.bg-fePrimary-500 {
    width: 100%;
}

/* Apparition douce */
.vue-neat-modal > div > div[class*="rounded"] {
    animation: bks-modal-in .18s ease-out;
}

@keyframes bks-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .vue-neat-modal > div > div[class*="rounded"] {
        padding: 20px !important;
        border-radius: 20px !important;
    }
}

/* Champ avec icône à gauche (recherche) : on garde la place de l'icône */
.vue-neat-modal input[class*="ps-1"]:not([type="checkbox"]):not([type="radio"]),
.vue-neat-modal input[class*="ps-9"]:not([type="checkbox"]):not([type="radio"]),
.vue-neat-modal input[class*="ps-10"]:not([type="checkbox"]):not([type="radio"]),
.vue-neat-modal input[class*="ps-11"]:not([type="checkbox"]):not([type="radio"]),
.vue-neat-modal input[class*="ps-12"]:not([type="checkbox"]):not([type="radio"]) {
    padding-left: 44px !important;
}

/* Onglets (recherche : Tous, Article, Catégorie, Utilisateur) */
.vue-neat-modal div.cursor-pointer.border-b-4 {
    border-bottom-width: 2px !important;
    border-bottom-color: transparent !important;
    font-weight: 600;
}

.vue-neat-modal div.cursor-pointer.border-b-4.border-fePrimary-500 {
    border-bottom-color: var(--bks-link) !important;
}

.vue-neat-modal div.cursor-pointer.border-b-4.border-fePrimary-500 p,
.vue-neat-modal div.cursor-pointer.border-b-4.border-fePrimary-500 svg {
    color: var(--bks-link) !important;
}

.vue-neat-modal div.relative > div.absolute.inset-y-0 {
    background: transparent !important;
}

/* Partage : le lien tient sur une ligne, dans un champ doux */
.vue-neat-modal div.flex.items-center.justify-start.h-11.relative.border {
    min-width: 0;
    padding: 0 10px !important;
    background: var(--bks-soft) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.vue-neat-modal div.flex.items-center.justify-start.h-11.relative.border > p {
    min-width: 0;
    overflow: hidden;
    padding-bottom: 0 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px !important;
}

/* Connexion : la colonne du formulaire occupe toute la largeur restante */
html body main .bks-login {
    flex: 1 1 auto;
}

/* =====================================================================
   VERSION 25 — page annonce, bloc « Autres infos » : les champs vides
   de l'annonce ne s'affichent plus en cases grises, et un numéro de
   téléphone n'est plus coupé au milieu.
   ===================================================================== */
main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div:empty {
    display: none !important;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div {
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div p,
main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl) > div a {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none;
}

/* Bloc sans aucune info : on le masque entièrement */
main .bg-feSecondary-50.rounded-lg.flex.flex-col:has(> p.text-xl):not(:has(> div:not(:empty))) {
    display: none !important;
}

/* =====================================================================
   VERSION 26 — fenêtres à en-tête séparé (Conseils de sécurité, CGU…) :
   en-tête sans ombre, texte sans hauteur fixe, pied compact.
   ===================================================================== */
.vue-neat-modal > div > div[class*="rounded"] > div.flex.justify-between.shadow:first-child {
    padding: 0 0 14px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--bks-panel-line);
    box-shadow: none !important;
}

.vue-neat-modal > div > div[class*="rounded"] > div.flex.justify-between:first-child > p {
    color: var(--bks-card-title) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
}

.vue-neat-modal > div > div[class*="rounded"] > div.mb-4.max-h-80 {
    max-height: none !important;
    margin-bottom: 0 !important;
}

.vue-neat-modal > div > div[class*="rounded"] > div.mb-4.max-h-80 > div.h-52 {
    height: auto !important;
    max-height: 55vh;
    margin: 16px 0 !important;
    padding: 0 !important;
}

.vue-neat-modal > div > div[class*="rounded"] > div.mb-4.max-h-80 p {
    color: var(--bks-card-text) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.vue-neat-modal > div > div[class*="rounded"] > div.flex.justify-end.p-4:last-child {
    padding: 4px 0 0 !important;
}

@media (min-width: 768px) {
    .vue-neat-modal:has(> div > div > div.mb-4.max-h-80) {
        max-width: 640px !important;
    }
}

/* =====================================================================
   VERSION 27 — liste des discussions (html.bks-p-chats) façon messagerie :
   lignes séparées par un trait, avatar rond, nom + heure en haut,
   dernier message sur une ligne, compteurs lisibles, liste centrée.
   ===================================================================== */
html.bks-p-chats body main > div.mx-auto {
    max-width: 760px;
    padding-inline: 16px !important;
}

html.bks-p-chats body main > div.mx-auto > div.grid {
    display: block !important;
}

html.bks-p-chats body main > div.mx-auto > div.grid > div:first-child > p.text-xl {
    margin-bottom: 14px !important;
    color: var(--bks-card-title) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

/* Onglets Acheteur / Vendeur avec compteur lisible */
html.bks-p-chats body main div.flex.flex-row > button.py-2.px-3 {
    gap: 8px;
}

html.bks-p-chats body main div.flex.flex-row > button.py-2.px-3 > span.rounded-full {
    min-width: 20px;
    padding: 0 6px;
    background: var(--bks-coral) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

/* Une discussion = une ligne */
html.bks-p-chats body main div.flex.flex-wrap.w-full > div.w-full {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bks-panel-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full > div.w-full:last-child {
    border-bottom: 0 !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.rounded-lg.shadow-sm {
    height: auto !important;
    min-height: 76px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    transition: background-color .15s ease;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.cursor-pointer:hover div.rounded-lg.shadow-sm {
    background: var(--bks-soft) !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.rounded-lg.shadow-sm > div.flex.h-full {
    align-items: center;
}

/* Avatar rond, sans bord gris */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative {
    width: auto !important;
    padding: 10px 4px 10px 2px !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > img.rounded-full {
    width: 54px !important;
    height: 54px !important;
    border: 0 !important;
    background: var(--bks-soft) !important;
    object-fit: cover;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > div.absolute {
    top: auto !important;
    left: auto !important;
    right: 0;
    bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 2px var(--bks-page);
}

/* Nom et heure en haut, message dessous */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.grow.px-3.py-3 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 3px;
    min-width: 0;
    padding: 10px 6px 10px 10px !important;
}

html.bks-p-chats body main div.grow.px-3.py-3 > p:first-child {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    color: var(--bks-card-title) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.bks-p-chats body main div.grow.px-3.py-3 > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    justify-content: flex-end !important;
}

html.bks-p-chats body main div.grow.px-3.py-3 > div:nth-child(2) p {
    color: var(--bks-ink-faint, #8a8f9c) !important;
    font-size: 12px !important;
    white-space: nowrap;
}

html.bks-p-chats body main div.grow.px-3.py-3 > div:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
}

html.bks-p-chats body main div.grow.px-3.py-3 > div:nth-child(3) p {
    min-width: 0;
    overflow: hidden;
    color: var(--bks-card-text) !important;
    font-size: 14px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.bks-p-chats body main div.grow.px-3.py-3 > div:nth-child(3) > div.w-10 {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    opacity: .7;
}

/* Photo de l'annonce à droite (ordinateur) */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.w-36.p-2 {
    width: 64px !important;
    padding: 8px 0 !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.w-36.p-2 > img {
    height: 56px !important;
    border-radius: 12px !important;
    object-fit: cover;
}

/* Liste vide : illustration plus petite */
html.bks-p-chats body main img.w-screen.object-cover {
    max-width: 260px;
    margin: 20px auto 0;
}

html.bks-p-chats body main > div.mx-auto > div.grid > div:first-child {
    margin-bottom: 10px;
}

/* =====================================================================
   VERSION 28 — Contactez-nous (.bks-contact) : carte en deux colonnes,
   panneau bleu avec liens utiles à gauche, formulaire aéré à droite.
   ===================================================================== */
html body main div.bks-contact {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    width: 100% !important;
    max-width: 920px;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bks-page) !important;
    border: 1px solid var(--bks-panel-line) !important;
    border-radius: 26px !important;
    box-shadow: 0 24px 60px -30px rgba(26, 29, 38, .35) !important;
}

/* L'image d'origine ne s'affiche pas : remplacée par le panneau */
html body main div.bks-contact > div.w-full.h-full:has(> img) {
    display: none !important;
}

/* Panneau de gauche */
html body main .bks-contact-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 36px;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 10% 95%, rgba(226, 76, 68, .35) 0, rgba(226, 76, 68, 0) 42%),
        linear-gradient(160deg, #16335f 0%, #1d568e 60%, #2b7fd4 100%);
    color: #ffffff;
}

html body main .bks-contact-panel__title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

html body main .bks-contact-panel__text {
    margin-top: 10px;
    color: #d6e4f5;
    font-size: 15px;
    line-height: 1.55;
}

html body main .bks-contact-panel ul {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

html body main .bks-contact-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}

html body main .bks-contact-panel a:hover {
    background: rgba(255, 255, 255, .18);
}

html body main .bks-contact-panel a > span:not(.bks-contact-panel__icon) { flex: 1; }
html body main .bks-contact-panel a > svg { width: 18px; height: 18px; opacity: .8; }

html body main .bks-contact-panel__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .16);
    border-radius: 10px;
}

html body main .bks-contact-panel__icon svg { width: 18px; height: 18px; }

/* Formulaire */
html body main div.bks-contact > div.w-full.flex.flex-col.justify-center {
    padding: 36px 34px 30px !important;
}

html body main div.bks-contact > div.flex.flex-col > div.flex.flex-row.justify-center {
    justify-content: flex-start !important;
}

html body main div.bks-contact > div.flex.flex-col > div.flex.flex-row > p {
    margin: 0 0 4px !important;
    color: var(--bks-card-title) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

html body main div.bks-contact > div.flex.flex-col > div:not(.flex) {
    margin: 0 !important;
    padding: 0 !important;
}

html body main div.bks-contact > div.flex.flex-col > div > p.mt-5 {
    margin: 16px 0 6px !important;
    color: var(--bks-card-title) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

html body main div.bks-contact input,
html body main div.bks-contact textarea {
    width: 100% !important;
    min-height: 46px;
    padding: 12px 14px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bks-card-title) !important;
    font-size: 15px !important;
}

html body main div.bks-contact textarea {
    min-height: 130px;
    resize: vertical;
}

html body main div.bks-contact input:focus,
html body main div.bks-contact textarea:focus {
    background: var(--bks-page) !important;
    border-color: var(--bks-link) !important;
    box-shadow: 0 0 0 4px rgba(22, 184, 180, .14) !important;
    outline: none !important;
}

html body main div.bks-contact > div.flex.flex-col > div.items-center:last-child {
    margin: 22px 0 0 !important;
    padding: 0 !important;
}

html body main div.bks-contact button.bg-fePrimary-500 {
    width: 100%;
    height: 50px;
    justify-content: center;
    background: var(--bks-coral) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
}

html body main div.bks-contact button.bg-fePrimary-500:hover {
    background: var(--bks-coral-2) !important;
}

/* Téléphone : le panneau passe au-dessus du formulaire */
@media (max-width: 767px) {
    html body main div.bks-contact {
        grid-template-columns: 1fr;
        margin-inline: 0 !important;
        border-radius: 22px !important;
    }

    html body main .bks-contact-panel { padding: 26px 20px; }
    html body main .bks-contact-panel__title { font-size: 24px; }
    html body main .bks-contact-panel ul { margin-top: 18px; }
    html body main div.bks-contact > div.w-full.flex.flex-col.justify-center { padding: 24px 20px !important; }
    html body main div.bks-contact > div.flex.flex-col > div.flex.flex-row > p { font-size: 22px !important; }
}

/* =====================================================================
   VERSION 29 — Mes offres (html.bks-p-offers) : page centrée, onglets
   en pilules côte à côte, offres en liste à séparateurs (comme Messages).
   ===================================================================== */
html.bks-p-offers body main > div.mx-auto {
    max-width: 820px;
    padding-inline: 16px !important;
}

html.bks-p-offers body main > div.mx-auto > div.grid {
    display: block !important;
}

html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child > p.text-xl {
    margin-bottom: 14px !important;
    color: var(--bks-card-title) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

/* Onglets : deux pilules côte à côte */
html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child div.flex.flex-row {
    flex-direction: row !important;
    gap: 8px;
    margin-bottom: 18px;
}

html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child div.flex.flex-row > * {
    margin: 0 !important;
}

html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child button {
    width: auto !important;
    height: 38px;
    padding: 0 16px !important;
    background: var(--bks-soft) !important;
    border: 1.5px solid transparent !important;
    border-radius: 999px !important;
    color: var(--bks-card-title) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child button.bg-fePrimary-500 {
    background: transparent !important;
    border-color: var(--bks-card-title) !important;
    font-weight: 700 !important;
}

html.bks-p-offers body main > div.mx-auto > div.grid > div:first-child button span {
    margin: 0 !important;
    color: inherit !important;
}

/* Sous-titre « Offres envoyées / reçues » : déjà indiqué par l'onglet */
html.bks-p-offers body main > div.mx-auto > div.grid > div:nth-child(2) > div.mb-2:first-child {
    display: none;
}

/* La liste */
html.bks-p-offers body main div.rounded-2xl.flex.flex-col {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

html.bks-p-offers body main div.rounded-2xl.flex.flex-col > div.w-full.mt-2,
html.bks-p-offers body main div.rounded-2xl.flex.flex-col > div.w-full.mt-2 > div {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.bks-p-offers body main div.rounded-2xl.flex.flex-col > div.w-full.mt-2 {
    border-bottom: 1px solid var(--bks-panel-line) !important;
}

html.bks-p-offers body main div.rounded-2xl.flex.flex-col > div.w-full.mt-2:last-child {
    border-bottom: 0 !important;
}

html.bks-p-offers body main div.rounded-2xl div.rounded-lg.shadow-sm {
    height: auto !important;
    min-height: 76px;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    transition: background-color .15s ease;
}

html.bks-p-offers body main div.rounded-2xl div.cursor-pointer:hover div.rounded-lg.shadow-sm {
    background: var(--bks-soft) !important;
}

html.bks-p-offers body main div.rounded-2xl div.rounded-lg.shadow-sm > div.flex.h-full {
    align-items: center;
}

/* Avatar */
html.bks-p-offers body main div.rounded-2xl div.h-full.relative.flex.items-center {
    width: auto !important;
    padding: 10px 4px 10px 2px;
}

html.bks-p-offers body main div.rounded-2xl div.h-full.relative.flex.items-center > img.rounded-full {
    width: 54px !important;
    height: 54px !important;
    border: 0 !important;
    background: var(--bks-soft) !important;
    object-fit: cover;
}

/* Textes */
html.bks-p-offers body main div.rounded-2xl div.grow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 10px 8px 10px 12px !important;
}

html.bks-p-offers body main div.rounded-2xl div.grow > p:first-child {
    overflow: hidden;
    color: var(--bks-card-title) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(2) {
    gap: 10px;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(2) > p:first-child {
    min-width: 0;
    color: var(--bks-card-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(2) > p:last-child {
    flex-shrink: 0;
    color: var(--bks-ink-faint, #8a8f9c) !important;
    font-size: 12px !important;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(3) {
    align-items: center;
    min-height: 0;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(3) > p {
    color: var(--bks-card-text) !important;
    font-size: 13.5px !important;
}

html.bks-p-offers body main div.rounded-2xl div.grow > div:nth-child(3) > div.w-10 {
    width: 22px !important;
    height: 22px !important;
    margin-left: auto;
    opacity: .7;
}

/* Photo de l'annonce */
html.bks-p-offers body main div.rounded-2xl div.h-full.w-32 {
    width: 64px !important;
    height: auto !important;
    padding: 8px 0;
}

html.bks-p-offers body main div.rounded-2xl div.h-full.w-32 > img {
    height: 56px !important;
    border-radius: 12px !important;
    background: var(--bks-soft);
    object-fit: cover;
}

/* =====================================================================
   VERSION 30 — fluidité : barre de progression entre les pages, contenu
   en fondu à l'arrivée, photos qui apparaissent en douceur, barres fixes
   sans flou (coûteux sur les petits téléphones), mouvement réduit respecté.
   ===================================================================== */
#bks-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bks-coral), #ff8a5c);
    box-shadow: 0 0 10px rgba(226, 76, 68, .45);
    opacity: 0;
    pointer-events: none;
}

#bks-progress.is-running {
    opacity: 1;
    animation: bks-progress-run 8s cubic-bezier(.08, .7, .2, 1) forwards;
}

#bks-progress.is-done {
    width: 100%;
    opacity: 0;
    transition: width .2s ease, opacity .35s ease .15s;
}

@keyframes bks-progress-run {
    0% { width: 0; }
    20% { width: 45%; }
    100% { width: 92%; }
}

/* Page qui charge : le contenu s'estompe légèrement ; à l'arrivée, fondu */
html.bks-navigating body main {
    opacity: .55;
    transition: opacity .2s ease;
}

html.bks-arrived body main {
    animation: bks-page-in .32s ease-out;
}

@keyframes bks-page-in {
    from { opacity: .4; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Photos encore en chargement : apparition douce (classe posée par site-modern.js) */
main img.bks-fade {
    opacity: 0;
    transition: opacity .35s ease;
}

main img.bks-fade.bks-shown {
    opacity: 1;
}

/* Barres fixes sans flou : fond plein, plus léger à afficher en défilant */
html.bks-m .bks-tabbar,
html.bks-m .bks-mheader {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html.bks-m .bks-tabbar { background: #ffffff; }
html.dark.bks-m .bks-tabbar { background: #10142a; }

/* Retour visuel immédiat au toucher */
main button,
main a,
.bks-tab,
.bks-mhome__cats a[data-cat] {
    -webkit-tap-highlight-color: transparent;
}

main button:active:not(:disabled),
.bks-tab:active,
.bks-sell__button:active,
.bks-fbrand__cta:active {
    transform: scale(.97);
}

main button {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

/* Les visiteurs qui demandent moins de mouvement n'ont pas d'animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    main img.bks-fade { opacity: 1; }
}

/* =====================================================================
   VERSION 31 — page Catégories sur ordinateur (html.bks-p-cat) : titre
   de page, grille aérée, cartes photo plein cadre avec le nom en
   surimpression, pastille d'icône et flèche au survol.
   ===================================================================== */
@media (min-width: 769px) {
    html.bks-p-cat:not(.bks-m) .bks-cat-head {
        margin: 0 0 22px;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-head h1 {
        margin: 0;
        font-size: 30px;
        line-height: 1.15;
        font-weight: 700;
        letter-spacing: -.02em;
        color: var(--bks-card-title);
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-head p {
        margin: 6px 0 0;
        font-size: 15px;
        color: var(--bks-card-text);
    }

    html.bks-p-cat:not(.bks-m) main div.mt-8.mb-8 > div.grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 22px;
    }

    html.bks-p-cat:not(.bks-m) main div.mt-8.mb-8 > div.grid > div {
        grid-column: auto !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card {
        position: relative;
        aspect-ratio: 4 / 3;
        border: 0 !important;
        border-radius: 18px !important;
        background: var(--bks-panel) !important;
        box-shadow: var(--bks-card-shadow) !important;
        isolation: isolate;
        transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--bks-card-shadow-hover) !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative {
        position: absolute !important;
        inset: 0;
        height: auto !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > img {
        transform: none !important;
        transition: transform .6s cubic-bezier(.2, .7, .2, 1) !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card:hover > div.relative > img {
        transform: scale(1.06) !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 16, 38, 0) 38%, rgba(10, 16, 38, .38) 64%, rgba(10, 16, 38, .82) 100%);
        pointer-events: none;
    }

    /* pastille d'icône en haut à gauche */
    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > div.absolute {
        top: 14px;
        left: 14px;
        bottom: auto !important;
        z-index: 2;
        width: 42px !important;
        height: 42px !important;
        padding: 9px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, .94) !important;
        box-shadow: 0 6px 16px -6px rgba(10, 16, 38, .45) !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > div.absolute img {
        width: 24px !important;
        height: 24px !important;
        transform: none !important;
    }

    /* nom de la catégorie sur la photo */
    html.bks-p-cat:not(.bks-m) .bks-cat-card > p {
        position: absolute;
        left: 18px;
        right: 64px;
        bottom: 16px;
        z-index: 2;
        height: auto !important;
        margin: 0;
        padding: 0 !important;
        text-align: left;
        font-size: 18px !important;
        line-height: 1.25;
        font-weight: 650 !important;
        letter-spacing: -.01em;
        color: #fff !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-go {
        position: absolute;
        right: 16px;
        bottom: 14px;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bks-coral);
        color: #fff;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity .25s ease, transform .25s ease;
        box-shadow: 0 8px 18px -8px rgba(224, 68, 63, .7);
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card:hover .bks-cat-go {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    html.bks-p-cat:not(.bks-m) .bks-cat-card,
    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > img,
    html.bks-p-cat:not(.bks-m) .bks-cat-go {
        transition: none !important;
    }
}

html:not(.bks-p-cat) .bks-cat-go,
html.bks-m .bks-cat-go,
html.bks-m .bks-cat-head,
html:not(.bks-p-cat) .bks-cat-head {
    display: none;
}

/* =====================================================================
   VERSION 32 — page Catégories, style « photo vive + étiquette en verre » :
   photo nette sans voile sombre, nom et icône dans une étiquette en verre
   dépoli en bas de la carte, flèche corail.
   ===================================================================== */
@media (min-width: 769px) {
    html.bks-p-cat:not(.bks-m) .bks-cat-card {
        --bks-glass: rgba(255, 255, 255, .74);
        --bks-glass-line: rgba(255, 255, 255, .6);
        --bks-glass-text: #161c36;
        border-radius: 20px !important;
    }

    html.dark.bks-p-cat:not(.bks-m) .bks-cat-card {
        --bks-glass: rgba(20, 24, 49, .7);
        --bks-glass-line: rgba(255, 255, 255, .12);
        --bks-glass-text: #f2f4fb;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative::after {
        display: none;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > img {
        filter: saturate(1.15) contrast(1.05);
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > p {
        left: 10px;
        right: 10px;
        bottom: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 44px 10px 46px !important;
        border-radius: 14px;
        border: 1px solid var(--bks-glass-line);
        background: var(--bks-glass);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        backdrop-filter: blur(12px) saturate(1.4);
        font-size: 15px !important;
        font-weight: 600 !important;
        color: var(--bks-glass-text) !important;
        text-shadow: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: background .25s ease;
    }

    /* icône dans l'étiquette, à gauche */
    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > div.absolute {
        top: auto;
        left: 20px;
        bottom: 21px !important;
        z-index: 3;
        width: 26px !important;
        height: 26px !important;
        padding: 4px !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 2px 6px -2px rgba(10, 16, 38, .3) !important;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card > div.relative > div.absolute img {
        width: 18px !important;
        height: 18px !important;
    }

    /* flèche dans l'étiquette, à droite */
    html.bks-p-cat:not(.bks-m) .bks-cat-go {
        right: 18px;
        bottom: 19px;
        z-index: 3;
        width: 28px;
        height: 28px;
        opacity: 1;
        transform: none;
        background: transparent;
        color: var(--bks-coral);
        box-shadow: none;
        transition: transform .25s ease, background .25s ease, color .25s ease;
    }

    html.bks-p-cat:not(.bks-m) .bks-cat-card:hover .bks-cat-go {
        transform: translateX(2px);
        background: var(--bks-coral);
        color: #fff;
    }
}


/* =====================================================================
   VERSION 33 — sous-catégories sur ordinateur (html.bks-p-sub) : même
   carte que la page Catégories (illustration plein cadre, étiquette en
   verre avec icône, nom et flèche).
   ===================================================================== */
@media (min-width: 769px) {
    html.bks-p-subd:not(.bks-m) .bks-cat-head {
        margin: 0 0 22px;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-head h1 {
        margin: 0;
        font-size: 30px;
        line-height: 1.15;
        font-weight: 700;
        letter-spacing: -.02em;
        color: var(--bks-card-title);
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-head p {
        margin: 6px 0 0;
        font-size: 15px;
        color: var(--bks-card-text);
    }

    html.bks-p-subd:not(.bks-m) main div.mt-8.mb-8 > div.grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 22px;
    }

    html.bks-p-subd:not(.bks-m) main div.mt-8.mb-8 > div.grid > div {
        grid-column: auto !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card {
        position: relative;
        aspect-ratio: 4 / 3;
        border: 0 !important;
        border-radius: 18px !important;
        background: var(--bks-panel) !important;
        box-shadow: var(--bks-card-shadow) !important;
        isolation: isolate;
        transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--bks-card-shadow-hover) !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative {
        position: absolute !important;
        inset: 0;
        height: auto !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > img {
        transform: none !important;
        transition: transform .6s cubic-bezier(.2, .7, .2, 1) !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card:hover > div.relative > img {
        transform: scale(1.06) !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 16, 38, 0) 38%, rgba(10, 16, 38, .38) 64%, rgba(10, 16, 38, .82) 100%);
        pointer-events: none;
    }

    /* pastille d'icône en haut à gauche */
    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > div.absolute {
        top: 14px;
        left: 14px;
        bottom: auto !important;
        z-index: 2;
        width: 42px !important;
        height: 42px !important;
        padding: 9px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, .94) !important;
        box-shadow: 0 6px 16px -6px rgba(10, 16, 38, .45) !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > div.absolute img {
        width: 24px !important;
        height: 24px !important;
        transform: none !important;
    }

    /* nom de la catégorie sur la photo */
    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.h-20 {
        position: absolute;
        left: 18px;
        right: 64px;
        bottom: 16px;
        z-index: 2;
        height: auto !important;
        margin: 0;
        padding: 0 !important;
        text-align: left;
        font-size: 18px !important;
        line-height: 1.25;
        font-weight: 650 !important;
        letter-spacing: -.01em;
        color: #fff !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-go {
        position: absolute;
        right: 16px;
        bottom: 14px;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bks-coral);
        color: #fff;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity .25s ease, transform .25s ease;
        box-shadow: 0 8px 18px -8px rgba(224, 68, 63, .7);
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card:hover .bks-cat-go {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    html.bks-p-subd:not(.bks-m) .bks-cat-card,
    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > img,
    html.bks-p-subd:not(.bks-m) .bks-cat-go {
        transition: none !important;
    }
}

@media (min-width: 769px) {
    html.bks-p-subd:not(.bks-m) .bks-cat-card {
        --bks-glass: rgba(255, 255, 255, .74);
        --bks-glass-line: rgba(255, 255, 255, .6);
        --bks-glass-text: #161c36;
        border-radius: 20px !important;
    }

    html.dark.bks-p-subd:not(.bks-m) .bks-cat-card {
        --bks-glass: rgba(20, 24, 49, .7);
        --bks-glass-line: rgba(255, 255, 255, .12);
        --bks-glass-text: #f2f4fb;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative::after {
        display: none;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > img {
        filter: saturate(1.15) contrast(1.05);
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.h-20 {
        left: 10px;
        right: 10px;
        bottom: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 44px 10px 46px !important;
        border-radius: 14px;
        border: 1px solid var(--bks-glass-line);
        background: var(--bks-glass);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        backdrop-filter: blur(12px) saturate(1.4);
        font-size: 15px !important;
        font-weight: 600 !important;
        color: var(--bks-glass-text) !important;
        text-shadow: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: background .25s ease;
    }

    /* icône dans l'étiquette, à gauche */
    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > div.absolute {
        top: auto;
        left: 20px;
        bottom: 21px !important;
        z-index: 3;
        width: 26px !important;
        height: 26px !important;
        padding: 4px !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 2px 6px -2px rgba(10, 16, 38, .3) !important;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.relative > div.absolute img {
        width: 18px !important;
        height: 18px !important;
    }

    /* flèche dans l'étiquette, à droite */
    html.bks-p-subd:not(.bks-m) .bks-cat-go {
        right: 18px;
        bottom: 19px;
        z-index: 3;
        width: 28px;
        height: 28px;
        opacity: 1;
        transform: none;
        background: transparent;
        color: var(--bks-coral);
        box-shadow: none;
        transition: transform .25s ease, background .25s ease, color .25s ease;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card:hover .bks-cat-go {
        transform: translateX(2px);
        background: var(--bks-coral);
        color: #fff;
    }
}

@media (min-width: 769px) {
    html.bks-p-subd:not(.bks-m) .bks-cat-go {
        display: flex;
    }

    html.bks-p-subd:not(.bks-m) .bks-cat-card > div.h-20 > p {
        padding: 0 !important;
        margin: 0;
        font: inherit !important;
        color: inherit !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.bks-p-subd:not(.bks-m) main div.mt-8.mb-8 > div.grid > div > div.flex-grow {
        height: 100%;
    }
}

/* =====================================================================
   VERSION 34 — Blog (html.bks-p-blog) : titre de page, article à la une
   avec dégradé et pastille, cartes d'articles arrondies, dates en
   français, lien « Lire l'article ».
   ===================================================================== */
html.bks-p-blog .bks-blog-head {
    display: block;
    margin: 22px 0 6px;
}

html.bks-p-blog .bks-blog-head h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--bks-card-title);
}

html.bks-p-blog .bks-blog-head p {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--bks-card-text);
}

/* article à la une */
html.bks-p-blog .bks-blog-hero {
    overflow: hidden;
    border-radius: 22px !important;
    box-shadow: var(--bks-card-shadow) !important;
    margin-bottom: 8px !important;
    isolation: isolate;
}

html.bks-p-blog .bks-blog-hero > div.overflow-hidden {
    height: 420px !important;
}

html.bks-p-blog .bks-blog-hero > div.overflow-hidden img {
    border-radius: 0 !important;
    transform: none !important;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1) !important;
}

html.bks-p-blog .bks-blog-hero:hover > div.overflow-hidden img {
    transform: scale(1.04) !important;
}

html.bks-p-blog main .bks-blog-hero > div.w-full.h-full.rounded-lg.bg-black.absolute {
    opacity: 1 !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(10, 16, 38, .96) 0%, rgba(10, 16, 38, .9) 42%, rgba(10, 16, 38, .35) 68%, rgba(10, 16, 38, 0) 86%),
                linear-gradient(0deg, rgba(10, 16, 38, .55) 0%, rgba(10, 16, 38, 0) 55%) !important;
}

html.bks-p-blog .bks-blog-hero > div.absolute.px-4 {
    max-width: 640px;
    padding: 0 40px 36px !important;
}

html.bks-p-blog .bks-blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bks-coral);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

html.bks-p-blog main .bks-blog-hero > div.absolute > p:first-of-type {
    color: #fff !important;
    margin-top: 14px !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    white-space: normal !important;
    height: auto !important;
    max-height: 2.5em;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.bks-p-blog .bks-blog-hero > div.absolute > div.flex {
    margin: 10px 0 12px !important;
    align-items: center;
}

html.bks-p-blog .bks-blog-hero > div.absolute > div.flex span {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 14px !important;
}

html.bks-p-blog .bks-blog-hero > div.absolute > div.flex span + span {
    border-color: rgba(255, 255, 255, .35) !important;
}

html.bks-p-blog .bks-blog-hero > div.absolute > p.truncate-2-lines {
    font-size: 16px !important;
    color: rgba(255, 255, 255, .86) !important;
    margin-bottom: 20px !important;
}

html.bks-p-blog .bks-blog-hero > div.absolute button {
    height: 44px;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--bks-coral) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 22px -10px rgba(224, 68, 63, .8);
    transition: transform .2s ease, background .2s ease;
}

html.bks-p-blog .bks-blog-hero > div.absolute button:hover {
    background: var(--bks-coral-2) !important;
    transform: translateY(-1px);
}

/* cartes d'articles */
html.bks-p-blog main div.mt-32 div.grid.mt-6 {
    gap: 22px !important;
}

html.bks-p-blog .bks-blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bks-card-line);
    border-radius: 18px !important;
    background: var(--bks-card) !important;
    box-shadow: var(--bks-card-shadow) !important;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
}

html.bks-p-blog .bks-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bks-card-shadow-hover) !important;
}

html.bks-p-blog .bks-blog-card > div.h-56 {
    height: auto !important;
    aspect-ratio: 16 / 9;
}

html.bks-p-blog .bks-blog-card > div.h-56 img {
    transform: none !important;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1) !important;
}

html.bks-p-blog .bks-blog-card:hover > div.h-56 img {
    transform: scale(1.05) !important;
}

html.bks-p-blog .bks-blog-card > div.p-4 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px !important;
}

html.bks-p-blog .bks-blog-card > div.p-4 > p:first-child {
    height: auto !important;
    min-height: 2.6em;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 650 !important;
    color: var(--bks-card-title) !important;
}

html.bks-p-blog .bks-blog-card > div.p-4 > div.flex {
    margin-top: 10px !important;
    gap: 6px !important;
}

html.bks-p-blog .bks-blog-card > div.p-4 > div.flex p {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--bks-card-text) !important;
}

html.bks-p-blog .bks-blog-card > div.p-4 > div.flex p:nth-child(2) {
    color: var(--bks-card-line) !important;
}

html.bks-p-blog .bks-blog-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bks-coral);
}

html.bks-p-blog .bks-blog-more svg {
    transition: transform .2s ease;
}

html.bks-p-blog .bks-blog-card:hover .bks-blog-more svg {
    transform: translateX(3px);
}

html:not(.bks-p-blog) .bks-blog-more,
html:not(.bks-p-blog) .bks-blog-badge,
html:not(.bks-p-blog) .bks-blog-head {
    display: none;
}

@media (max-width: 768px) {
    html.bks-p-blog .bks-blog-head {
        margin: 8px 0 4px;
    }

    html.bks-p-blog .bks-blog-head h1 {
        font-size: 24px;
    }

    html.bks-p-blog .bks-blog-head p {
        font-size: 14px;
    }

    html.bks-p-blog .bks-blog-hero > div.overflow-hidden {
        height: 340px !important;
    }

    html.bks-p-blog main .bks-blog-hero > div.w-full.h-full.rounded-lg.bg-black.absolute {
        background: linear-gradient(0deg, rgba(10, 16, 38, .9) 0%, rgba(10, 16, 38, .5) 55%, rgba(10, 16, 38, .1) 100%) !important;
    }

    html.bks-p-blog .bks-blog-hero > div.absolute.px-4 {
        padding: 0 18px 20px !important;
    }

    html.bks-p-blog .bks-blog-hero > div.absolute > p:first-of-type {
        font-size: 22px !important;
    }

    html.bks-p-blog .bks-blog-hero > div.absolute > p.truncate-2-lines {
        font-size: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.bks-p-blog .bks-blog-card,
    html.bks-p-blog .bks-blog-card img,
    html.bks-p-blog .bks-blog-hero img {
        transition: none !important;
    }
}

/* =====================================================================
   VERSION 35 — page d'un article (html.bks-p-article) : en-tête avec
   rubrique, auteur, date et temps de lecture ; grande image arrondie ;
   colonne de lecture confortable ; retour au blog et partage.
   ===================================================================== */
html.bks-p-article main div.lg\:my-12 {
    max-width: 1000px;
    margin: 28px auto 56px !important;
}

html.bks-p-article main div.lg\:my-12 > div:first-child {
    margin-bottom: 28px !important;
    gap: 0;
}

html.bks-p-article .bks-article-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bks-accent-soft);
    color: var(--bks-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

html.bks-p-article .bks-article-title {
    max-width: 820px;
    font-size: 40px !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;
    letter-spacing: -.025em;
    color: var(--bks-card-title) !important;
}

html.bks-p-article .bks-article-meta-src {
    display: none !important;
}

html.bks-p-article .bks-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--bks-card-text);
}

html.bks-p-article .bks-article-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bks-coral);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

html.bks-p-article .bks-article-author {
    font-weight: 600;
    color: var(--bks-card-title);
}

html.bks-p-article .bks-article-dot {
    opacity: .5;
}

/* image */
html.bks-p-article main div.lg\:my-12 > div:nth-child(2) {
    cursor: auto !important;
}

html.bks-p-article main div.lg\:my-12 > div:nth-child(2) > img {
    width: 100%;
    height: auto !important;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px !important;
    box-shadow: var(--bks-card-shadow);
}

/* colonne de lecture */
html.bks-p-article .bks-article-body {
    max-width: 740px;
    margin: 36px auto 0 !important;
    padding: 40px 48px !important;
    border: 1px solid var(--bks-card-line) !important;
    border-radius: 22px !important;
    background: var(--bks-card) !important;
    box-shadow: var(--bks-card-shadow);
}

html.bks-p-article main .bks-article-body > p {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

html.bks-p-article .bks-article-body .ck-content {
    display: block;
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: var(--bks-card-text) !important;
}

html.bks-p-article .bks-article-body .ck-content p {
    margin: 0 0 .9em;
}

html.bks-p-article .bks-article-body .ck-content p.bks-gap {
    margin: 0;
    height: .2em;
    overflow: hidden;
}

html.bks-p-article .bks-article-body .ck-content h2,
html.bks-p-article .bks-article-body .ck-content h3 {
    margin: 1.6em 0 .6em;
    font-size: 23px !important;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bks-card-title) !important;
}

html.bks-p-article .bks-article-body .ck-content h3 {
    font-size: 19px !important;
}

html.bks-p-article .bks-article-body .ck-content > :first-child {
    margin-top: 0;
}

html.bks-p-article .bks-article-body .ck-content strong {
    color: var(--bks-card-title);
    font-weight: 650;
}

html.bks-p-article .bks-article-body .ck-content a {
    color: var(--bks-coral);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.bks-p-article .bks-article-body .ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* pied d'article */
html.bks-p-article .bks-article-foot {
    max-width: 740px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

html.bks-p-article .bks-article-back,
html.bks-p-article .bks-article-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

html.bks-p-article main .bks-article-back {
    border: 1px solid var(--bks-card-line) !important;
    background: var(--bks-card) !important;
    color: var(--bks-card-title) !important;
}

html.bks-p-article main .bks-article-back:hover {
    background: var(--bks-accent-soft) !important;
}

html.bks-p-article .bks-article-share {
    border: 0;
    background: var(--bks-coral);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(224, 68, 63, .8);
}

html.bks-p-article .bks-article-share:hover {
    background: var(--bks-coral-2);
    transform: translateY(-1px);
}

html:not(.bks-p-article) .bks-article-meta,
html:not(.bks-p-article) .bks-article-kicker,
html:not(.bks-p-article) .bks-article-foot {
    display: none;
}

@media (max-width: 768px) {
    html.bks-p-article main div.lg\:my-12 {
        margin: 12px auto 32px !important;
    }

    html.bks-p-article .bks-article-title {
        font-size: 26px !important;
    }

    html.bks-p-article .bks-article-meta {
        font-size: 13px;
        gap: 6px;
    }

    html.bks-p-article main div.lg\:my-12 > div:nth-child(2) > img {
        border-radius: 18px !important;
    }

    html.bks-p-article .bks-article-body {
        margin-top: 20px !important;
        padding: 22px 20px !important;
        border-radius: 18px !important;
    }

    html.bks-p-article .bks-article-body .ck-content {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    html.bks-p-article .bks-article-body .ck-content h2 {
        font-size: 20px !important;
    }

    html.bks-p-article .bks-article-back,
    html.bks-p-article .bks-article-share {
        height: 42px;
        padding: 0 14px;
    }
}

/* =====================================================================
   VERSION 36 — pages d'information (html.bks-p-info) : FAQ, conseils de
   sécurité, conditions, confidentialité, à propos. En-tête commun avec
   navigation entre les pages, carte de lecture, FAQ en accordéon,
   encart « Nous contacter ».
   ===================================================================== */
html.bks-p-info main .bks-info {
    max-width: 860px;
    margin-left: auto !important;
    margin-right: auto !important;
}

html.bks-p-info .bks-info-title-src {
    display: none !important;
}

html.bks-p-info .bks-info-head {
    text-align: center;
    margin: 8px 0 28px;
}

html.bks-p-info .bks-info-kicker {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bks-accent-soft);
    color: var(--bks-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

html.bks-p-info .bks-info-head h1 {
    margin: 14px 0 0;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.025em;
    color: var(--bks-card-title);
}

html.bks-p-info .bks-info-head > p {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--bks-card-text);
}

html.bks-p-info .bks-info-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

html.bks-p-info main .bks-info-nav a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--bks-card-line) !important;
    border-radius: 999px;
    background: var(--bks-card) !important;
    color: var(--bks-card-title) !important;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

html.bks-p-info main .bks-info-nav a:hover {
    background: var(--bks-accent-soft) !important;
}

html.bks-p-info main .bks-info-nav a.is-active {
    border-color: var(--bks-accent) !important;
    background: var(--bks-accent) !important;
    color: #fff !important;
}

html.dark.bks-p-info main .bks-info-nav a.is-active {
    color: #0f1224 !important;
}

/* carte de lecture */
html.bks-p-info main .bks-info-body {
    margin: 0 !important;
    padding: 40px 48px !important;
    border: 1px solid var(--bks-card-line) !important;
    border-radius: 22px !important;
    background: var(--bks-card) !important;
    box-shadow: var(--bks-card-shadow) !important;
}

html.bks-p-info main .bks-info-body > p {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

html.bks-p-info .bks-info-body .ck-content {
    display: block;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--bks-card-text) !important;
}

html.bks-p-info .bks-info-body .ck-content p {
    margin: 0 0 .8em;
}

html.bks-p-info .bks-info-body .ck-content p.bks-gap {
    margin: 0;
    height: .3em;
    overflow: hidden;
}

html.bks-p-info .bks-info-body .ck-content h1,
html.bks-p-info .bks-info-body .ck-content h2,
html.bks-p-info .bks-info-body .ck-content h3,
html.bks-p-info .bks-info-body .ck-content h4 {
    margin: 1.5em 0 .5em;
    font-size: 20px !important;
    line-height: 1.3;
    font-weight: 700;
    color: var(--bks-card-title) !important;
}

html.bks-p-info .bks-info-body .ck-content strong {
    color: var(--bks-card-title);
    font-weight: 650;
}

html.bks-p-info .bks-info-body .ck-content ul,
html.bks-p-info .bks-info-body .ck-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

html.bks-p-info .bks-info-body .ck-content ul { list-style: disc; }
html.bks-p-info .bks-info-body .ck-content ol { list-style: decimal; }

html.bks-p-info .bks-info-body .ck-content li {
    margin: .3em 0;
}

html.bks-p-info .bks-info-body .ck-content a {
    color: var(--bks-coral);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* FAQ en accordéon */
html.bks-p-faq main .bks-info-body {
    padding: 8px 0 !important;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-gap {
    display: none;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q {
    position: relative;
    margin: 0 !important;
    padding: 20px 64px 20px 28px;
    border-top: 1px solid var(--bks-card-line);
    font-size: 17px;
    line-height: 1.45;
    color: var(--bks-card-title);
    cursor: pointer;
    user-select: none;
    transition: background .2s ease;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q:first-child {
    border-top: 0;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q:hover {
    background: var(--bks-accent-soft);
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q:focus-visible {
    outline: 2px solid var(--bks-accent);
    outline-offset: -2px;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--bks-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0443f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform .25s ease;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-q.is-open::after {
    transform: rotate(180deg);
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-a {
    display: none;
    margin: 0 !important;
    padding: 0 64px 20px 28px;
    font-size: 15.5px;
}

html.bks-p-faq .bks-info-body .ck-content .bks-faq-a.is-shown {
    display: block;
    animation: bks-faq-in .25s ease;
}

@keyframes bks-faq-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* encart contact */
html.bks-p-info .bks-info-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 22px 26px;
    border-radius: 20px;
    background: var(--bks-hero);
    color: #fff;
}

html.bks-p-info .bks-info-cta strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

html.bks-p-info .bks-info-cta span {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    opacity: .85;
}

html.bks-p-info main .bks-info-cta a {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--bks-coral) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 22px -12px rgba(224, 68, 63, .9);
}

/* à propos */
html.bks-p-about main .bks-info img.bks-hide {
    display: none !important;
}

html.bks-p-about main .bks-info div.w-auto.cursor-pointer {
    cursor: auto !important;
    margin: 0 !important;
}

html.bks-p-about main .bks-info div.w-auto.cursor-pointer > img:not(.bks-hide) {
    height: auto !important;
    max-height: 460px;
    margin: 0 0 24px !important;
    border-radius: 22px;
}

html.bks-p-about main .bks-info .bks-info-body {
    margin-top: 0 !important;
    font-size: 17px;
}

html.bks-p-about main .bks-about-connect {
    max-width: 860px;
    margin: 22px auto 56px !important;
    padding: 0;
}

html.bks-p-about main .bks-about-connect > div.h-96 {
    display: none !important;
}

html.bks-p-about main .bks-about-connect > div.absolute {
    position: static !important;
    width: 100%;
    padding: 28px;
    border-radius: 22px;
    background: var(--bks-hero);
    text-align: center;
}

html.bks-p-about main .bks-about-connect > div.absolute > p,
html.bks-p-about main .bks-about-connect > div.absolute > p.text-feSecondary-800 {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 18px !important;
}

html.bks-p-about main .bks-about-connect div.mx-8 {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.bks-p-about main .bks-about-connect div.mx-8 > div {
    margin: 0 !important;
    padding: 10px 16px 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
}

html.bks-p-about main .bks-about-connect div.mx-8 > div > div {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: #fff !important;
}

html.bks-p-about main .bks-about-connect div.mx-8 p {
    color: #fff !important;
    text-align: left;
}

html.bks-p-about main .bks-about-connect div.mx-8 p p:first-child {
    font-size: 14px !important;
    font-weight: 700 !important;
}

html.bks-p-about main .bks-about-connect div.mx-8 p p:last-child {
    font-size: 12px !important;
    opacity: .8;
}

html:not(.bks-p-info) .bks-info-head,
html:not(.bks-p-info) .bks-info-cta {
    display: none;
}

@media (max-width: 768px) {
    html.bks-p-info .bks-info-head {
        margin: 0 0 18px;
    }

    html.bks-p-info .bks-info-head h1 {
        font-size: 26px;
    }

    html.bks-p-info .bks-info-head > p {
        font-size: 14px;
    }

    html.bks-p-info .bks-info-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 16px -16px 0;
        padding: 0 16px 4px;
        scrollbar-width: none;
    }

    html.bks-p-info .bks-info-nav::-webkit-scrollbar {
        display: none;
    }

    html.bks-p-info main .bks-info-nav a {
        flex: none;
    }

    html.bks-p-info main .bks-info-body {
        padding: 22px 20px !important;
        border-radius: 18px !important;
    }

    html.bks-p-faq main .bks-info-body {
        padding: 4px 0 !important;
    }

    html.bks-p-faq .bks-info-body .ck-content .bks-faq-q {
        padding: 16px 54px 16px 18px;
        font-size: 15.5px;
    }

    html.bks-p-faq .bks-info-body .ck-content .bks-faq-q::after {
        right: 16px;
    }

    html.bks-p-faq .bks-info-body .ck-content .bks-faq-a {
        padding: 0 18px 16px;
        font-size: 15px;
    }

    html.bks-p-about main .bks-about-connect {
        margin: 18px 16px 40px !important;
    }

    html.bks-p-info .bks-info-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

/* VERSION 37 (2026-11-06) : onglets catégories en liens <a> (explorables) */
html.bks-m .bks-mhome__cats a[data-cat] { display: inline-block; text-decoration: none; }

/* =====================================================================
   VERSION 37 — accueil : section « Parcourir par catégorie » avec les
   illustrations 2D, et illustrations flottantes dans les coins du
   grand bandeau (ordinateur).
   ===================================================================== */
.bks-catgrid {
    max-width: 1128px;
    margin: 34px auto 6px;
}

@media (max-width: 1160px) {
    .bks-catgrid { margin-inline: 16px; }
}

.bks-catgrid__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bks-catgrid__head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--bks-card-title);
}

.bks-catgrid__head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--bks-card-text);
}

.bks-catgrid__all {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bks-accent) !important;
}

.bks-catgrid__all svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.bks-catgrid__all:hover svg {
    transform: translateX(3px);
}

.bks-catgrid__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.bks-catgrid__tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bks-card-line);
    border-radius: 16px;
    background: var(--bks-card);
    box-shadow: var(--bks-card-shadow);
    color: var(--bks-card-title) !important;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease;
}

.bks-catgrid__tile:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--bks-card-shadow-hover);
}

.bks-catgrid__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bks-accent-soft);
}

.bks-catgrid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.bks-catgrid__tile:hover .bks-catgrid__media img {
    transform: scale(1.06);
}

.bks-catgrid__name {
    padding: 10px 12px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bks-catgrid__tile--more .bks-catgrid__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bks-hero);
    color: #fff;
}

.bks-catgrid__tile--more .bks-catgrid__media svg {
    width: 34px;
    height: 34px;
}

.bks-catgrid__tile--more .bks-catgrid__name {
    color: var(--bks-accent);
}

@media (max-width: 1100px) {
    .bks-catgrid__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bks-catgrid {
        margin: 22px 16px 4px;
    }

    .bks-catgrid__head h2 {
        font-size: 19px;
    }

    .bks-catgrid__head p,
    .bks-catgrid__all {
        display: none;
    }

    .bks-catgrid__list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 2px 16px 8px;
        scroll-padding-inline: 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .bks-catgrid__list::-webkit-scrollbar {
        display: none;
    }

    .bks-catgrid__tile {
        flex: 0 0 128px;
        scroll-snap-align: start;
        border-radius: 14px;
    }

    .bks-catgrid__name {
        padding: 8px 10px 10px;
        font-size: 13px;
    }
}

/* illustrations flottantes du bandeau */
.bks-hero-art {
    display: none;
}

@media (min-width: 1024px) {
    html:not(.bks-m) .bks-hero-art {
        position: absolute;
        inset: 0;
        display: block;
        overflow: hidden;
        border-radius: inherit;
        pointer-events: none;
    }

    html:not(.bks-m) .bks-hero-art__tile {
        position: absolute;
        width: 128px;
        aspect-ratio: 3 / 2;
        overflow: hidden;
        border-radius: 18px;
        border: 3px solid rgba(255, 255, 255, .9);
        box-shadow: 0 18px 36px -16px rgba(5, 10, 30, .6);
        opacity: .95;
        animation: bks-hero-float 7s ease-in-out infinite;
    }

    html:not(.bks-m) .bks-hero-art__tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    html:not(.bks-m) .bks-hero-art__tile--0 { left: 1.5%; top: -3%; --r: -9deg; animation-delay: 0s; }
    html:not(.bks-m) .bks-hero-art__tile--1 { left: 3.5%; bottom: 7%; --r: 7deg; animation-delay: -2s; }
    html:not(.bks-m) .bks-hero-art__tile--2 { right: 1.5%; top: -2%; --r: 8deg; animation-delay: -4s; }
    html:not(.bks-m) .bks-hero-art__tile--3 { right: 3.5%; bottom: 6%; --r: -6deg; animation-delay: -1s; }
}

@keyframes bks-hero-float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) * .6)); }
}

@media (prefers-reduced-motion: reduce) {
    .bks-hero-art__tile {
        animation: none !important;
        transform: rotate(var(--r, 0deg));
    }

    .bks-catgrid__tile,
    .bks-catgrid__media img {
        transition: none !important;
    }
}

main .mt-24 > .bg-feAchromatic-900.relative .bks-hero-art img,
main .mt-24 > .bg-feAchromatic-900.relative .bks-hero-art img.bks-fade {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* =====================================================================
   VERSION 38 — titre du grand bandeau plus doux : gris-bleu au lieu du
   bleu marine saturé, graisse 700, lettres moins serrées, taille réduite.
   ===================================================================== */
:root {
    --bks-hero-title: #2b3350;
    --bks-hero-text: #5a6180;
}

html.dark {
    --bks-hero-title: #e9ecf5;
    --bks-hero-text: #aab2c8;
}

html body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(30px, 3.3vw, 46px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.022em !important;
}

html body main .mt-24 .text-center > p.font-normal {
    font-weight: 400 !important;
}

/* La section « Catégories » de Panacea est remplacée par la grille « Parcourir par catégorie » */
html main .bks-psx-cats {
    display: none !important;
}

/* =====================================================================
   VERSION 39 — bandeau de l'accueil, maquette B « recherche en pilule » :
   carte blanche épurée, barre Quoi ? / Catégorie / Où ? en pilule avec
   bouton rond, catégories populaires en ronds illustrés (ordinateur).
   ===================================================================== */
@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative {
        background: var(--bks-card) !important;
        border: 1px solid var(--bks-card-line);
        border-radius: 28px !important;
        box-shadow: var(--bks-card-shadow);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::before,
    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative > div:first-child::after,
    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative > div:first-child > img,
    html.bks-hero-b:not(.bks-m) .bks-hero-art {
        display: none !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative > div:first-child {
        height: 400px !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
        font-size: clamp(30px, 3vw, 42px) !important;
    }

    /* barre en pilule */
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill {
        width: min(880px, calc(100% - 64px)) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 6px 6px 6px 10px !important;
        border: 1px solid var(--bks-card-line) !important;
        border-radius: 999px !important;
        background: var(--bks-card) !important;
        box-shadow: 0 14px 34px -18px rgba(16, 36, 94, .35) !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill > div {
        width: 100% !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-row {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
        padding: 8px 18px 6px !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell:first-child {
        flex: 1.4 1 0;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell + .bks-pill-cell:not(.bks-pill-go)::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1px;
        height: 34px;
        margin-top: -17px;
        background: var(--bks-card-line);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell[data-bks-label]::before {
        content: attr(data-bks-label);
        display: block;
        margin-bottom: 1px;
        padding-left: 2px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        color: var(--bks-card-title);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell:first-child > input,
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div > p,
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div > p > button,
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div > p > button > p {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 14px !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell:first-child > input {
        padding-left: 2px !important;
        line-height: 22px;
        color: var(--bks-card-title) !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell:first-child > div:first-child {
        display: none !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div > p > button {
        padding-left: 2px !important;
        padding-right: 0 !important;
        line-height: 22px;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div > p > button > p {
        color: var(--bks-card-text) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell:first-child > input::placeholder {
        color: var(--bks-card-text) !important;
        opacity: .85;
    }

    /* bouton rond */
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-go {
        flex: 0 0 auto;
        padding: 0 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-go button {
        position: relative;
        width: 54px !important;
        height: 54px !important;
        min-width: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: var(--bks-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 22px no-repeat !important;
        box-shadow: 0 10px 22px -10px rgba(224, 68, 63, .85) !important;
        transition: transform .2s ease, background-color .2s ease;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-go button:hover {
        background-color: var(--bks-coral-2) !important;
        transform: scale(1.05);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-go button p {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    /* catégories populaires en ronds */
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-rounds-wrap {
        height: auto !important;
        margin-top: 4px;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-rounds-wrap > p {
        display: none !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-rounds-wrap > div {
        gap: 26px !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round {
        display: grid !important;
        justify-items: center;
        gap: 8px;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--bks-card-title) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round::before {
        display: none !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__img {
        display: block;
        width: 76px;
        height: 76px;
        border-radius: 50%;
        object-fit: cover;
        opacity: 1 !important;
        box-shadow: 0 0 0 1px var(--bks-card-line);
        transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round:hover .bks-round__img {
        transform: translateY(-3px);
        box-shadow: 0 0 0 2px var(--bks-coral), 0 12px 22px -12px rgba(16, 36, 94, .45);
    }
}

/* Bandeau B moins blanc : fond teinté bleu ciel → pêche, halos doux,
   champs des menus sans fond gris, ronds cerclés de blanc. */
@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative {
        border-color: transparent;
        background:
            radial-gradient(520px 260px at 8% 0%, rgba(43, 179, 163, .16), transparent 70%),
            radial-gradient(560px 300px at 100% 100%, rgba(224, 68, 63, .14), transparent 70%),
            linear-gradient(135deg, #eaf1ff 0%, #f4f1ff 45%, #fdeee8 100%) !important;
        box-shadow: 0 1px 2px rgba(16, 43, 102, .04), 0 18px 40px -28px rgba(16, 43, 102, .35);
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative {
        background:
            radial-gradient(520px 260px at 8% 0%, rgba(43, 179, 163, .18), transparent 70%),
            radial-gradient(560px 300px at 100% 100%, rgba(224, 68, 63, .18), transparent 70%),
            linear-gradient(135deg, #15204a 0%, #171b3d 50%, #2a1a35 100%) !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div:first-child:not(.absolute),
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div:first-child:not(.absolute) > p {
        background: transparent !important;
        box-shadow: none !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__img {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 10px 20px -14px rgba(16, 36, 94, .45);
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__img {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 10px 20px -14px rgba(0, 0, 0, .6);
    }
}

@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill .bks-pill-cell > div > p > button.inline-flex,
    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill .bks-pill-cell > div > p > button.inline-flex {
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Bandeau « Sable naturel » : fond beige clair uni, texte brun-gris foncé */
@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative {
        background: #f5efe6 !important;
        border-color: transparent !important;
        box-shadow: 0 0 0 1px #e8dfd2 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold {
        color: #3a3128 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .text-center > p.font-normal {
        color: #7a6c5d !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round {
        color: #3a3128 !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__img {
        box-shadow: 0 0 0 4px #ffffff, 0 10px 20px -14px rgba(58, 49, 40, .45);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill {
        border-color: #ece3d6 !important;
        box-shadow: 0 14px 34px -20px rgba(58, 49, 40, .4) !important;
    }

    /* mode sombre : même esprit, sable foncé */
    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative {
        background: #26211c !important;
        box-shadow: 0 0 0 1px #3a3229 !important;
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 > .bg-feAchromatic-900.relative p.text-fePrimary-50.font-semibold,
    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round {
        color: #f3ece2 !important;
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 .text-center > p.font-normal {
        color: #bfb3a4 !important;
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__img {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 10px 20px -14px rgba(0, 0, 0, .6);
    }
}

/* Titre du bandeau : trait corail dessiné sous le mot « gratuites » (élément à part) */
main .mt-24 .text-center {
    position: relative;
}

main .mt-24 .bks-mark-line {
    position: absolute;
    display: block;
    color: var(--bks-coral);
    pointer-events: none;
}

main .mt-24 .bks-mark-line svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

html.dark main .mt-24 .bks-mark-line {
    color: #ff7a6e;
}

/* =====================================================================
   VERSION 40 — cartes d'annonces : la ligne de prix a toujours la même
   place (espace sous la photo, même hauteur avec ou sans prix barré),
   les cartes restent alignées.
   ===================================================================== */
main .bk-item-card.bk-item-card div.ps-1:has(> p.text-fePrimary-500) {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 32px;
    padding: 10px 2px 0 !important;
    gap: 6px;
}

main .bk-item-card.bk-item-card div.ps-1:has(> p.text-fePrimary-500) > p {
    margin: 0 !important;
    line-height: 22px !important;
    white-space: nowrap;
}

main .bk-item-card.bk-item-card div.ps-1:has(> p.text-fePrimary-500) > p.line-through {
    font-size: 12px !important;
}


/* Menus Catégorie / Emplacement du bandeau : panneau opaque, au premier plan */
@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill {
        position: relative;
        z-index: 40;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-rounds-wrap {
        position: relative;
        z-index: 1;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div.absolute {
        z-index: 60 !important;
        margin-top: 10px;
        border: 1px solid var(--bks-card-line) !important;
        border-radius: 16px !important;
        background: var(--bks-card) !important;
        box-shadow: 0 24px 48px -20px rgba(16, 36, 94, .4) !important;
        overflow: hidden;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div.absolute input {
        background: transparent !important;
        color: var(--bks-card-title) !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div.absolute .bg-feSecondary-100 {
        background: var(--bks-accent-soft) !important;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-pill-cell > div.absolute .w-56 {
        color: var(--bks-card-title) !important;
        border-radius: 10px;
    }
}

/* VERSION 41 — carrousel « Articles similaires » en mobile : deux cartes par vue */
html.bks-m main .splide__slide:has(> div > .bk-item-card) {
    width: calc(50% - 6px) !important;
    margin-right: 12px !important;
}
/* Emplacement publicitaire vide glissé entre les cartes : on le replie (il réapparaît s'il a un contenu) */
html.bks-m main .splide__list:has(.bk-item-card) > .splide__slide:not(:has(.bk-item-card)):not(:has(ins, iframe, img, a)) {
    width: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

/* VERSION 42 — carte vendeur « Ligne épurée » (page annonce) */
main div:has(> .bks-seller) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
main .bks-seller {
    container-type: inline-size;
    gap: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--bks-card) !important;
    box-shadow: 0 0 0 1px var(--bks-card-line), 0 6px 20px rgba(20, 24, 40, .05) !important;
}
main .bks-seller__row {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas: "av name btn" "av rate btn" "av stats btn";
    align-items: center;
    column-gap: 14px;
    row-gap: 3px;
}
main .bks-seller__info { display: contents !important; }
main .bks-seller__av { grid-area: av; }
main .bks-seller__av > div { width: 54px !important; height: 54px !important; }
main .bks-seller__av img { box-shadow: 0 0 0 3px var(--bks-card), 0 0 0 4.5px var(--bks-card-line); }
main .bks-seller__name { grid-area: name; min-width: 0; }
main .bks-seller__name p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: var(--bks-card-title) !important;
}
main .bks-seller__rate { grid-area: rate; }
main .bks-seller__rate .star { margin-inline-end: 1px !important; }
main .bks-seller__rate .star svg { width: 13px !important; height: 13px !important; }
main .bks-seller__rate p { margin-left: 4px; font-size: 13px !important; color: var(--bks-card-text) !important; }
main .bks-seller__stats { grid-area: stats; flex-wrap: nowrap; gap: 0 !important; min-width: 0; white-space: nowrap; }
main .bks-seller__stats p.bks-seller__sep { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px !important; border-radius: 50%; background: var(--bks-card-text); opacity: .55; font-size: 0 !important; color: transparent !important; overflow: hidden; }
main .bks-seller__stats p { margin-right: 3px !important; font-size: 13px !important; color: var(--bks-card-text) !important; }
main .bks-seller__stats p.font-semibold { color: var(--bks-card-title) !important; }
main .bks-seller__btn { grid-area: btn; height: auto !important; }
main .bks-seller__btn button {
    position: static !important;
    width: auto !important;
    height: 38px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fdecea !important;
    color: #c0352f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    white-space: nowrap;
}
main .bks-seller__btn button:hover { background: #fbdcd8 !important; }
html.dark main .bks-seller .bks-seller__btn button.rounded.rounded { background: rgba(224, 68, 63, .18) !important; color: #ff8a84 !important; }
main .bks-seller__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--bks-card-line);
    background: none;
    color: #c0352f;
    font: 600 14px Inter, system-ui, sans-serif;
    cursor: pointer;
}
html.dark main .bks-seller__link { color: #ff8a84; }
main .bks-seller__link:hover span:last-child { transform: translateX(3px); }
main .bks-seller__link span:last-child { transition: transform .2s; }
/* Carte étroite (colonne de droite sur ordinateur) : le bouton passe sous le nom */
@container (max-width: 290px) {
    main .bks-seller__row {
        grid-template-columns: 54px 1fr;
        grid-template-areas: "av name" "av rate" "av stats" "btn btn";
    }
    main .bks-seller__btn { margin-top: 14px; }
    main .bks-seller__btn button { width: 100% !important; height: 42px; }
}

/* VERSION 43 — page annonce : carte Localisation + liens en tuiles (style C) */
main div.bks-loc.bks-loc.bks-loc {
    position: relative;
    isolation: isolate;
    z-index: 0;
    margin-top: 16px;
    border: 0 !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: var(--bks-card) !important;
    box-shadow: 0 0 0 1px var(--bks-card-line), 0 6px 20px rgba(20, 24, 40, .05) !important;
}
main .bks-loc__head { margin-bottom: 12px !important; }
main .bks-loc__head p { font-size: 17px !important; font-weight: 700 !important; color: var(--bks-card-title) !important; }
main .bks-loc__map { border-radius: 14px !important; overflow: hidden; }
main .bks-loc__map .leaflet-control-zoom,
main .bks-loc__map .leaflet-bar {
    border: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14) !important;
}
main .bks-loc__over {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 44px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    color: #1a1d26;
    font-size: 13.5px;
    pointer-events: none;
}
main .bks-loc__over b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main .bks-loc__pin {
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #e0443f;
    box-shadow: inset 0 0 0 4px #e0443f, inset 0 0 0 7px #fff;
}
html.dark main .bks-loc__over { background: rgba(23, 27, 51, .94); color: #eef0f8; }

main div.bks-tiles.bks-tiles.bks-tiles.bks-tiles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 !important;
    padding: 14px 6px !important;
    border-radius: 16px !important;
    background: var(--bks-card) !important;
    box-shadow: 0 0 0 1px var(--bks-card-line), 0 4px 12px rgba(20, 24, 40, .04);
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--bks-card-line), 0 8px 18px rgba(20, 24, 40, .08); }
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile > div:first-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
}
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile > div:first-child svg { width: 20px; height: 20px; }
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--0 > div:first-child { background: #e8f6ee; color: #1f8a4c; }
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--1 > div:first-child { background: #eef1fd; color: #3b5bdb; }
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--2 > div:first-child { background: #fff4e2; color: #c77700; }
html.dark main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--0 > div:first-child { background: rgba(34, 197, 94, .16); color: #6ee7a0; }
html.dark main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--1 > div:first-child { background: rgba(99, 132, 255, .18); color: #a5b8ff; }
html.dark main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile--2 > div:first-child { background: rgba(245, 166, 35, .18); color: #ffc46b; }
main div.bks-tiles.bks-tiles > div.bks-tile.bks-tile p {
    padding: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--bks-card-title) !important;
}
@media (min-width: 640px) {
    main div.bks-tiles.bks-tiles.bks-tiles.bks-tiles.sm\:hidden { display: none !important; }
}

/* VERSION 44 — en-tête « Barre claire épurée » */
nav.fixed.z-40.h-16.h-16 {
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid #eceef3 !important;
    box-shadow: none !important;
}
html.dark nav.fixed.z-40.h-16.h-16 {
    background: rgba(16, 20, 42, .9) !important;
    border-bottom-color: #262c4a !important;
}
nav.fixed.z-40.h-16 > div > div.hidden.md\:flex { gap: 4px !important; align-items: center; }
nav.fixed.z-40.h-16 > div > div.hidden.md\:flex > div:first-child { margin-right: 24px; }
nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium {
    padding: 9px 15px !important;
    color: #3b4150 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
}
nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium:hover { background: #f3f4f7; color: #1a1d26 !important; }
nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium.text-fePrimary-500,
nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium.text-fePrimary-500:hover {
    background: #fdecea;
    color: #c0352f !important;
}
html.dark nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium { color: #c9cde0 !important; }
html.dark nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
html.dark nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium.text-fePrimary-500,
html.dark nav.fixed.z-40.h-16.h-16 > div > div > div.cursor-pointer.font-medium.text-fePrimary-500:hover {
    background: rgba(224, 68, 63, .18);
    color: #ff8a84 !important;
}
/* Loupe dans une pastille ronde */
nav.fixed.z-40.h-16 > div > div.flex.items-center.gap-6 { gap: 12px !important; }
nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > svg {
    box-sizing: border-box;
    width: 40px !important;
    height: 40px !important;
    padding: 10px;
    border-radius: 50%;
    background: #f3f4f7;
    color: #1f2430 !important;
    cursor: pointer;
    transition: background-color .15s;
}
nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > svg:hover { background: #e9ebf0; }
html.dark nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > svg { background: rgba(255, 255, 255, .08); color: #eef0f8 !important; }
/* Connexion en bouton contour avec icône */
nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px !important;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px #e1e3ea;
    color: #1f2430 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: background-color .15s, box-shadow .15s;
}
nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > p::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > p:hover { background: #f6f7f9; box-shadow: inset 0 0 0 1.5px #d3d6df; }
html.dark nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > p { color: #eef0f8 !important; box-shadow: inset 0 0 0 1.5px #343b5e; }
html.dark nav.fixed.z-40.h-16.h-16 > div > div.flex.items-center.gap-6 > p:hover { background: rgba(255, 255, 255, .06); }
/* Mobile : bouton menu dans une pastille ronde */
html.bks-m .bks-mheader__menu {
    width: 42px;
    height: 42px;
    margin-right: 6px;
    border-radius: 50%;
    background: #f3f4f7;
    color: #1f2430;
}
html.bks-m .bks-mheader__menu svg { width: 22px; height: 22px; stroke-width: 2; }
html.dark.bks-m .bks-mheader__menu { background: rgba(255, 255, 255, .08); color: #eef0f8; }

/* VERSION 45 — barre du haut « Discrète grise » */
html nav.fixed.z-50.h-10.h-10 {
    background: #f6f7f9 !important;
    border-bottom: 0 !important;
    font-size: 13px;
}
html.dark nav.fixed.z-50.h-10.h-10 { background: #0c1022 !important; }
html nav.fixed.z-50.h-10.h-10 p:not(.absolute *),
html nav.fixed.z-50.h-10.h-10 button:not(.absolute *),
html nav.fixed.z-50.h-10.h-10 svg:not(.absolute *) {
    color: #5c6373 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
html.dark nav.fixed.z-50.h-10.h-10 p:not(.absolute *),
html.dark nav.fixed.z-50.h-10.h-10 button:not(.absolute *),
html.dark nav.fixed.z-50.h-10.h-10 svg:not(.absolute *) { color: #a9afc6 !important; }
/* Emplacement et langue : petites pastilles au survol */
html nav.fixed.z-50.h-10 > div > div.flex.items-center.cursor-pointer,
html nav.fixed.z-50.h-10 #Français,
html nav.fixed.z-50.h-10 button[aria-haspopup] {
    gap: 6px;
    height: 28px;
    padding: 0 12px !important;
    border-radius: 999px;
    transition: background-color .15s;
}
html nav.fixed.z-50.h-10 > div > div.flex.items-center.cursor-pointer { margin-left: -12px; }
html nav.fixed.z-50.h-10 > div > div.flex.items-center.cursor-pointer svg { width: 15px !important; height: 15px !important; }
html nav.fixed.z-50.h-10 > div > div.flex.items-center.cursor-pointer:hover,
html nav.fixed.z-50.h-10 button[aria-haspopup]:hover { background: #eceef2; }
html.dark nav.fixed.z-50.h-10 > div > div.flex.items-center.cursor-pointer:hover,
html.dark nav.fixed.z-50.h-10 button[aria-haspopup]:hover { background: rgba(255, 255, 255, .07); }
html nav.fixed.z-50.h-10 button[aria-haspopup]::before {
    content: "";
    width: 15px;
    height: 15px;
    margin-right: 6px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html nav.fixed.z-50.h-10 button[aria-haspopup] svg { width: 12px !important; height: 12px !important; margin-left: 4px; }
/* Mode sombre : séparateur, icône lune, interrupteur fin */
html nav.fixed.z-50.h-10 > div > div.flex.gap-4 { align-items: center; gap: 12px !important; }
html nav.fixed.z-50.h-10 > div > div.flex.gap-4 > div.flex.items-center.gap-3 {
    gap: 8px !important;
    padding-left: 14px;
    border-left: 1px solid #e1e3ea;
}
html.dark nav.fixed.z-50.h-10 > div > div.flex.gap-4 > div.flex.items-center.gap-3 { border-left-color: #262c4a; }
html nav.fixed.z-50.h-10 > div > div.flex.gap-4 > div.flex.items-center.gap-3 > p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
html nav.fixed.z-50.h-10 > div > div.flex.gap-4 > div.flex.items-center.gap-3 > p::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html nav.fixed.z-50.h-10.h-10 button.w-12.h-6 {
    width: 38px !important;
    height: 22px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    background: #e3e5ec !important;
    transition: background-color .2s;
}
html.dark nav.fixed.z-50.h-10.h-10 button.w-12.h-6 { background: #e0443f !important; }
html nav.fixed.z-50.h-10.h-10 button.w-12.h-6 > span {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
html nav.fixed.z-50.h-10.h-10 button.w-12.h-6 > span svg { display: none; }

/* =====================================================================
   VERSION 46 — catégories du bandeau en « Pilules » (maquette B) :
   pilule blanche, petite icône au trait teintée + nom. Ordinateur seulement
   (le bandeau mobile n'a pas ces ronds). Catégorie sans icône : image d'avant.
   ===================================================================== */
@media (min-width: 769px) {
    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-rounds-wrap > div:has(> .bks-round--ic) {
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round.bks-round--ic {
        display: inline-flex !important;
        flex-direction: row;
        align-items: center;
        gap: 9px;
        height: 46px !important;
        padding: 0 18px 0 7px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 1px #ece3d6, 0 6px 14px -10px rgba(58, 49, 40, .35) !important;
        color: #3a3128 !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        white-space: nowrap;
        transition: box-shadow .15s ease, transform .15s ease;
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round.bks-round--ic:hover {
        box-shadow: 0 0 0 1.5px #e0443f, 0 8px 18px -10px rgba(224, 68, 63, .45) !important;
        transform: translateY(-1px);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__ic {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        flex: none;
        border-radius: 50%;
        background: var(--bks-tone-bg, #fdecea);
        color: var(--bks-tone, #e0443f);
    }

    html.bks-hero-b:not(.bks-m) body main .mt-24 .bks-round__ic svg {
        width: 18px;
        height: 18px;
        stroke-width: 1.9;
    }

    html.bks-hero-b body main .bks-round--ic[data-bks-tone="coral"]  { --bks-tone: #e0443f; --bks-tone-bg: #fdecea; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="amber"]  { --bks-tone: #c7800c; --bks-tone-bg: #fdf3e0; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="blue"]   { --bks-tone: #2563eb; --bks-tone-bg: #e9effd; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="pink"]   { --bks-tone: #c2417a; --bks-tone-bg: #fbe9f1; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="teal"]   { --bks-tone: #0d9488; --bks-tone-bg: #e3f5f2; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="violet"] { --bks-tone: #7c3aed; --bks-tone-bg: #f0eafd; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="green"]  { --bks-tone: #16a34a; --bks-tone-bg: #e6f6ea; }
    html.bks-hero-b body main .bks-round--ic[data-bks-tone="rose"]   { --bks-tone: #db2777; --bks-tone-bg: #fce8f1; }

    /* mode sombre : pilules sable foncé, icônes plus claires */
    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round.bks-round--ic {
        background: #322b24 !important;
        box-shadow: 0 0 0 1px #443a30 !important;
        color: #f3ece2 !important;
    }

    html.dark.bks-hero-b:not(.bks-m) body main .mt-24 button.bks-round.bks-round--ic:hover {
        box-shadow: 0 0 0 1.5px #ff7a6e !important;
    }

    html.dark.bks-hero-b body main .bks-round--ic .bks-round__ic {
        background: color-mix(in srgb, var(--bks-tone) 22%, transparent) !important;
        color: color-mix(in srgb, var(--bks-tone) 55%, #ffffff) !important;
    }
}

html.bks-hero-b body main .mt-24 button.bks-round--ic img.bks-round__img { display: none !important; }

/* =====================================================================
   VERSION 47 — web mobile : menus déroulants Catégorie / Emplacement du
   bandeau de recherche. Panneau à la largeur du champ, juste en dessous,
   coins arrondis, recherche en pilule, lignes aérées, hauteur limitée.
   ===================================================================== */
@media (max-width: 768px) {
    body main .bks-pill-cell > div.z-20.absolute {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        top: calc(100% + 6px) !important;
        margin: 0 !important;
        z-index: 60 !important;
        padding: 8px !important;
        border: 1px solid #e6e8ee !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 18px 40px -16px rgba(16, 24, 48, .35) !important;
    }

    html.dark body main .bks-pill-cell > div.z-20.absolute {
        border-color: rgba(255, 255, 255, .1) !important;
        background: #1a1f38 !important;
        box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7) !important;
    }

    /* champ de recherche du menu : pilule grise, croix bien placée */
    body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden {
        overflow: visible !important;
        margin-bottom: 6px;
    }

    body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden > hr { display: none !important; }

    body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden div.relative {
        border-radius: 12px !important;
        background: #f3f4f7 !important;
        overflow: hidden;
    }

    html.dark body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden div.relative {
        background: rgba(255, 255, 255, .06) !important;
    }

    body main .bks-pill-cell > div.z-20.absolute input {
        height: 44px !important;
        padding-inline-end: 40px !important;
        font-size: 15px !important;
        text-overflow: ellipsis;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* liste : hauteur adaptée à l'écran, pas de vide en bas */
    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto {
        height: auto !important;
        max-height: min(320px, 46vh);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .pt-2 { padding-top: 0 !important; }

    body main .bks-pill-cell > div.z-20.absolute .w-56 {
        width: auto !important;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer.flex,
    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:has(> p) {
        min-height: 46px;
        padding: 0 12px !important;
        border-radius: 10px;
        align-items: center;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer p {
        margin: 0 !important;
        font-size: 15px !important;
        font-weight: 500;
        color: #1f2430 !important;
    }

    html.dark body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer p {
        color: #e8ebf5 !important;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:active,
    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:hover {
        background: #fdecea !important;
    }

    html.dark body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:active,
    html.dark body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:hover {
        background: rgba(224, 68, 63, .16) !important;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .border-t {
        display: none !important;
    }

    /* « Voir plus » : lien corail discret */
    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto p.underline {
        margin: 6px 12px 4px !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #e0443f !important;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .mb-2.w-56 {
        width: auto !important;
    }

    body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden div.relative,
    body main .bks-pill-cell > div.z-20.absolute > div > div.overflow-hidden input {
        width: 100% !important;
        max-width: none !important;
    }

    /* choix en cours : en corail, avec une coche */
    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer p.font-bold {
        color: #e0443f !important;
        font-weight: 600 !important;
    }

    html.dark body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer p.font-bold {
        color: #ff8a84 !important;
    }

    body main .bks-pill-cell > div.z-20.absolute .overflow-y-auto .cursor-pointer:has(> p.font-bold)::after {
        content: "";
        width: 16px;
        height: 16px;
        margin-inline-start: auto;
        background: currentColor;
        color: #e0443f;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

/* =====================================================================
   VERSION 48 — page « Mon profil » sur téléphone, maquette A « Carte
   centrée » : photo au centre, nom, note, date d'inscription, pastille
   Vérifier, chiffres sur une ligne, deux boutons côte à côte.
   ===================================================================== */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.flex.flex-col.p-4.p-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-items: center;
    gap: 6px 0 !important;
    padding: 22px 14px 14px !important;
    background: #ffffff !important;
    border: 1px solid #eceef3 !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 24px -18px rgba(20, 24, 40, .35);
    text-align: center;
}

html.dark.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child > div.flex.flex-col.p-4.p-4 {
    background: #161b33 !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: none;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.w-32.h-32 {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 88px !important;
    height: 88px !important;
    margin: 0 auto 4px !important;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px #eceefe;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.w-32.h-32 {
    box-shadow: 0 0 0 4px #161b33, 0 0 0 6px rgba(255, 255, 255, .12);
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.w-32.h-32 > div.absolute {
    border-color: #ffffff !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.text-xl {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: center;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.cursor-pointer.items-center {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-items: center !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.cursor-pointer.items-center > div {
    justify-content: center !important;
    gap: 6px;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.cursor-pointer.items-center p {
    padding: 0 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.text-xs {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #6b7280 !important;
    text-align: center !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.text-xs { color: #a9afc6 !important; }

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    justify-self: center !important;
    margin: 4px 0 0 !important;
    height: 28px;
    padding: 0 12px !important;
    align-items: center;
    gap: 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e6f6ee !important;
    font-size: 12.5px;
    font-weight: 600;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 p,
html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 svg {
    color: #12805c !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 svg { width: 15px; height: 15px; }

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 { background: rgba(52, 195, 143, .14) !important; }
html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 p,
html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > div.bg-feInfo-50 svg { color: #5fd3a6 !important; }

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.text-sm.text-center {
    grid-column: 1 / -1 !important;
    grid-row: 6 !important;
    max-width: 290px;
    margin: 6px auto 0 !important;
    font-size: 13.5px !important;
    line-height: 1.45;
    text-align: center !important;
}

/* chiffres : une seule bande, séparateurs fins */
html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between {
    grid-row: 7 !important;
    width: 100%;
    margin-top: 14px !important;
    padding: 11px 2px !important;
    border-radius: 0 !important;
    background: #f7f8fa !important;
    font-size: 11px !important;
    color: #6b7280 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between:nth-of-type(n) { border-left: 1px solid #eceef3; }

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between.bks-stat-first {
    border-left: 0;
    border-radius: 14px 0 0 14px !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between.bks-stat-last {
    border-radius: 0 14px 14px 0 !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between {
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(255, 255, 255, .07);
    color: #a9afc6 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between > :last-child {
    font-size: 16px !important;
    font-weight: 700 !important;
}

html.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between.bks-stat-first > :last-child {
    color: #12805c !important;
}

html.dark.bks-m.bks-p-profile main div.flex.flex-col.p-4.p-4 > p.flex.justify-between.bks-stat-first > :last-child {
    color: #5fd3a6 !important;
}

/* boutons : contour gris clair, coins 12px, texte sur une ligne */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button.rounded {
    height: 42px;
    padding: 0 10px !important;
    border: 1.5px solid #e3e5ec !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #1f2430 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

html.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button.rounded svg {
    color: #1f2430 !important;
    width: 18px;
    height: 18px;
}

html.dark.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button.rounded {
    background: #161b33 !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: #eef0f7 !important;
}

html.dark.bks-m.bks-p-profile body main div.grid.grid-cols-1 > div:first-child button.rounded svg { color: #eef0f7 !important; }

/* =====================================================================
   VERSION 49 — profil : les aperçus d'annonces (favoris, en ligne…)
   reprennent les cartes de l'accueil (.bk-item-card ajouté par le JS).
   ===================================================================== */
main .bks-prof-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > p:first-child { order: 2; }
main .bks-prof-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div:nth-child(2) { order: 1; }
main .bks-prof-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div:nth-child(3) { order: 3; }

main .bks-prof-card.bk-item-card .lg\:px-0.lg\:py-0 {
    padding: 0 !important;
}

main .bks-prof-card.bk-item-card p.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 2px 2px 0 !important;
}

/* photo du vendeur : petit rond, jamais étirée */
html.bks-m.bks-p-profile body main div.grid.grid-cols-1.sm\:grid-cols-2 > .bks-show .bks-prof-card .pt-1.pb-2.flex.items-center img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
}

main .bks-prof-card.bk-item-card .pt-1.pb-2.flex.items-center > div.relative {
    width: 24px;
    flex: none;
}

main .bks-prof-card.bk-item-card .pt-1.pb-2.flex.items-center {
    justify-content: flex-start !important;
    gap: 8px;
}

main .bks-prof-card.bk-item-card .pt-1.pb-2.flex.items-center > p {
    margin: 0 !important;
    min-width: 0;
}

/* prix sans remise : même place que le prix avec remise */
main .bks-prof-card.bk-item-card .lg\:px-0.lg\:py-0 > .text-base > div > p.text-fePrimary-500.ps-1 {
    min-height: 32px;
    margin: 0 !important;
    padding: 10px 2px 0 !important;
    line-height: 22px !important;
}

main .bks-prof-card.bk-item-card .pt-1.pb-2.flex.items-center {
    padding: 2px 2px 4px !important;
}

/* =====================================================================
   VERSION 50 — profil mobile : une section vide (en attente, refusées,
   vendues, désactivées…) devient une simple ligne « Titre · Aucune › »
   au lieu d'un titre + un grand bloc « Rien pour le moment ».
   ===================================================================== */
html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) > div.grid.bks-empty {
    display: none !important;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) > div.flex.justify-between.items-center {
    min-height: 52px;
    margin-top: 8px !important;
    padding: 0 8px 0 16px;
    border-radius: 14px;
    background: #f7f8fa;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:not(:has(> div.grid.bks-empty)) + div:has(> div.grid.bks-empty) > div.flex.justify-between.items-center {
    margin-top: 26px !important;
}

html.dark.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) > div.flex.justify-between.items-center {
    background: rgba(255, 255, 255, .05);
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) p.font-semibold.text-xl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px !important;
    font-weight: 600 !important;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) p.font-semibold.text-xl::after {
    content: "Aucune";
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eceef3;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 600;
}

html.dark.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) p.font-semibold.text-xl::after {
    background: rgba(255, 255, 255, .08);
    color: #a9afc6;
}

html.bks-m.bks-p-profile main div.w-full.sm\:col-span-2 > div:has(> div.grid.bks-empty) > div.flex.justify-between.items-center button {
    width: 36px;
    height: 36px;
    border: 0 !important;
    background: transparent !important;
}

/* =====================================================================
   VERSION 51 — encart « Devenez vendeur pro » (profil, téléphone), style
   de la maquette A : carte crème fine, icône dans une tuile blanche,
   titre et texte alignés à gauche, bouton corail compact avec flèche.
   ===================================================================== */
html.bks-m body main div.bg-feWarning-100.rounded-lg:has(> div.grid.grid-cols-4.p-5) {
    margin-bottom: 14px !important;
    background: #fff6ec !important;
    border: 1px solid #f4e3cf !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html.dark.bks-m body main div.bg-feWarning-100.rounded-lg:has(> div.grid.grid-cols-4.p-5) {
    background: rgba(245, 185, 62, .08) !important;
    border-color: rgba(245, 185, 62, .18) !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid.grid-cols-4.p-5.p-5 {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start;
    gap: 12px !important;
    padding: 14px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg > div.grid > div.col-span-4.md\:col-span-1.md\:col-span-1 {
    width: 48px !important;
    height: 48px !important;
    border-radius: 13px;
    box-shadow: 0 0 0 1px #f4e3cf;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg img.w-36.w-36 {
    width: 34px !important;
    height: 34px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2.space-y-2 {
    gap: 2px;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > :first-child {
    margin: 0 !important;
    color: #1f2430 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

html.dark.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > :first-child { color: #f3ece2 !important; }

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > span {
    display: block;
    margin: 0 !important;
    color: #7a6c5d !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

html.dark.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > span { color: #c9bfb2 !important; }

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 {
    margin-top: 10px !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 button.rounded,
html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e0443f !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 14px -8px rgba(224, 68, 63, .7) !important;
}

html.bks-m body main div.bg-feWarning-100.rounded-lg div.space-y-2 > div.mt-4 button::after {
    content: "→";
    font-weight: 700;
}

/* =====================================================================
   VERSION 52 — liste des discussions : avatars toujours ronds (jamais
   écrasés), initiales en couleur quand il n'y a pas de photo, petite
   vignette de l'annonce en carré arrondi, vignette absente masquée.
   ===================================================================== */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative {
    flex: none !important;
    width: 64px !important;
    min-width: 64px;
    justify-content: center;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > img.rounded-full {
    flex: none !important;
    width: 52px !important;
    min-width: 52px;
    height: 52px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    object-fit: cover;
}

/* pas de photo : initiales sur fond de couleur */
html.bks-p-chats body main div.p-2.h-full.relative.bks-noav > img.rounded-full {
    opacity: 0;
}

html.bks-p-chats body main div.p-2.h-full.relative.bks-noav::before {
    content: attr(data-ini);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bks-ini-bg, #e0443f);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    pointer-events: none;
}

/* vignette de l'annonce sur l'avatar (téléphone) : petit carré arrondi */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > div.absolute {
    z-index: 1;
    width: 24px !important;
    height: 24px !important;
    right: 2px !important;
    bottom: 10px !important;
    border-radius: 7px !important;
    box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(20, 24, 40, .2) !important;
}

html.dark.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > div.absolute {
    box-shadow: 0 0 0 2px #10142a, 0 2px 6px rgba(0, 0, 0, .4) !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.p-2.h-full.relative > div.absolute > img {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 7px !important;
    object-fit: cover;
}

/* vignette de l'annonce à droite (ordinateur) */
html.bks-p-chats body main div.flex.flex-wrap.w-full div.w-36.p-2 {
    flex: none;
    width: 60px !important;
}

html.bks-p-chats body main div.flex.flex-wrap.w-full div.w-36.p-2 > img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    object-fit: cover;
    box-shadow: 0 0 0 1px #eceef3;
}

/* annonce sans photo : pas d'image grise par défaut */
html.bks-p-chats body main div.flex.flex-wrap.w-full .bks-noitem {
    display: none !important;
}


/* =====================================================================
   VERSION 53/54 — profil d'un autre utilisateur (/other-profile) sur
   téléphone, maquette B « En-tête compact » : photo à gauche, nom, note,
   date ; menu ⋯ (Bloquer) ; pastilles « 4 annonces · 0 abonnés · 0
   abonnements » ; Suivre + Partager ; annonces sur 2 colonnes au style
   de l'accueil. Repères bks-op-* posés par le JS (decorateOtherProfile).
   ===================================================================== */
html.bks-m.bks-p-other main div.mt-32.mb-10 > div:first-child { display: none !important; }
html.bks-m.bks-p-other main div.mt-32.mb-10 {
    margin-top: 0 !important;
    padding-top: calc(var(--bks-head, 60px) + 52px) !important;
}
html.bks-m.bks-p-other main .bks-op-grid { display: flex !important; flex-direction: column; gap: 0 !important; }
html.bks-m.bks-p-other main .bks-op-side {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100% !important;
    margin: 0 !important;
}

/* en-tête : photo | nom / note / date | ⋯ */
html.bks-m.bks-p-other main .bks-op-card {
    grid-column: 1 / -1;
    position: relative;
    display: grid !important;
    grid-template-columns: 68px auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left;
}
html.bks-m.bks-p-other main .bks-op-card > * { margin: 0 !important; }
html.bks-m.bks-p-other main .bks-op-card > .bks-op-empty,
html.bks-m.bks-p-other main .bks-op-card > .bks-op-stat,
html.bks-m.bks-p-other main .bks-op-side > .bks-op-block { display: none !important; }

html.bks-m.bks-p-other main .bks-op-card > div.w-32.h-32 {
    grid-column: 1; grid-row: 1 / span 3;
    width: 68px !important;
    height: 68px !important;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #e8eaf2;
}
html.dark.bks-m.bks-p-other main .bks-op-card > div.w-32.h-32 {
    box-shadow: 0 0 0 3px #0f1426, 0 0 0 5px rgba(255, 255, 255, .12);
}
html.bks-m.bks-p-other main .bks-op-card > .bks-op-name {
    grid-column: 2 / 4; grid-row: 1;
    align-self: end;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: left !important;
    color: #1f2430;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark.bks-m.bks-p-other main .bks-op-card > .bks-op-name { color: #eef0f7 !important; }
html.bks-m.bks-p-other main .bks-op-card > .bks-op-stars { grid-column: 2; grid-row: 2; }
html.bks-m.bks-p-other main .bks-op-card > .bks-op-stars > div {
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 1px;
}
html.bks-m.bks-p-other main .bks-op-card > .bks-op-stars svg { width: 15px !important; height: 15px !important; color: #f5b93e; }
html.bks-m.bks-p-other main .bks-op-card > .bks-op-avis {
    grid-column: 3; grid-row: 2;
    font-size: 12.5px !important;
    color: #6b7280 !important;
    text-align: left !important;
}
html.bks-m.bks-p-other main .bks-op-card > .bks-op-since {
    grid-column: 2 / 4; grid-row: 3;
    align-self: start;
    font-size: 12px !important;
    color: #8a90a0 !important;
    text-align: left !important;
}

/* menu ⋯ (Bloquer cet utilisateur) */
html.bks-m.bks-p-other main .bks-op-more { grid-column: 4; grid-row: 1 / span 3; position: relative; }
html.bks-m.bks-p-other main .bks-op-more > button {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1.5px solid #e3e5ec;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2430;
}
html.dark.bks-m.bks-p-other main .bks-op-more > button {
    background: transparent !important; border-color: rgba(255, 255, 255, .14) !important; color: #eef0f7 !important;
}
html.bks-m.bks-p-other main .bks-op-more svg { width: 20px; height: 20px; }
html.bks-m.bks-p-other main .bks-op-menu {
    display: none;
    position: absolute; right: 0; top: 46px; z-index: 30;
    min-width: 220px;
    padding: 6px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px -10px rgba(20, 24, 40, .35), 0 0 0 1px #eceef3;
}
html.dark.bks-m.bks-p-other main .bks-op-menu { background: #1b2140; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
html.bks-m.bks-p-other main .bks-op-more.is-open .bks-op-menu { display: block; }
html.bks-m.bks-p-other main .bks-op-menu-block {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    background: transparent;
    font-size: 14px; font-weight: 600;
    color: #c0392b;
    text-align: left;
}
html.dark.bks-m.bks-p-other main .bks-op-menu-block { color: #ff8a80; }
html.bks-m.bks-p-other main .bks-op-menu-block svg { width: 18px; height: 18px; }

/* pastilles de chiffres */
html.bks-m.bks-p-other main .bks-op-chips {
    grid-column: 1 / -1; grid-row: 4;
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 14px !important;
}
html.bks-m.bks-p-other main .bks-op-chips span {
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f4f7;
    font-size: 12.5px;
    color: #5c6373;
}
html.bks-m.bks-p-other main .bks-op-chips b { color: #1f2430; font-weight: 800; }
html.dark.bks-m.bks-p-other main .bks-op-chips span { background: rgba(255, 255, 255, .06); color: #a9afc6; }
html.dark.bks-m.bks-p-other main .bks-op-chips b { color: #eef0f7; }

/* Suivre (plein) + Partager (contour) */
html.bks-m.bks-p-other main .bks-op-follow { margin: 4px 0 0 !important; }
html.bks-m.bks-p-other main .bks-op-follow > div,
html.bks-m.bks-p-other main .bks-op-follow button { width: 100%; height: 44px; }
html.bks-m.bks-p-other main .bks-op-follow button {
    border-radius: 13px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
}
html.bks-m.bks-p-other main .bks-op-share {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px;
    margin-top: 4px;
    border: 1.5px solid #e3e5ec;
    border-radius: 13px;
    background: #ffffff;
    font-size: 14.5px; font-weight: 700;
    color: #1f2430;
}
html.dark.bks-m.bks-p-other main .bks-op-share { background: transparent !important; border-color: rgba(255, 255, 255, .14) !important; color: #eef0f7 !important; }
html.bks-m.bks-p-other main .bks-op-share svg { width: 18px; height: 18px; }
html.bks-m.bks-p-other main .bks-op-side > .bks-op-share:nth-child(2) { grid-column: 1 / -1; }

/* annonces : titre puis grille de 2 cartes */
html.bks-m.bks-p-other main .bks-op-main { width: 100% !important; }
html.bks-m.bks-p-other main .bks-op-title {
    margin: 24px 0 12px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}
html.bks-m.bks-p-other main .bks-op-main div.grid.grid-cols-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
    height: auto !important;
}
html.bks-m.bks-p-other main .bks-op-main div.grid.grid-cols-1 > div { height: auto !important; }
/* prix au-dessus du titre (comme sur l'accueil) */
html.bks-m.bks-p-other main .bks-op-item > div > div.text-base { display: flex; flex-direction: column; }
html.bks-m.bks-p-other main .bks-op-item > div > div.text-base > div:nth-child(2) { order: 1; }
html.bks-m.bks-p-other main .bks-op-item > div > div.text-base > div:nth-child(1) { order: 2; }
html.bks-m.bks-p-other main .bks-op-item > div > div.text-base > div:nth-child(3) { order: 3; }
html.bks-m.bks-p-other main .bks-op-item p.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.bks-m.bks-p-other main .bks-op-item .pb-2.ps-1.flex.items-center {
    margin-top: 2px !important;
    padding: 0 2px 4px !important;
    gap: 3px;
}
html.bks-m.bks-p-other main .bks-op-item .pb-2.ps-1.flex.items-center p { font-size: 12px !important; color: #8a90a0 !important; }
html.bks-m.bks-p-other main .bks-op-item .pb-2.ps-1.flex.items-center svg { width: 13px; height: 13px; }

/* VERSION 55 — avatar « initiale + badge » : jamais déformé */
img.bks-av { object-fit: cover !important; border-radius: 50%; background: transparent !important; }


/* =====================================================================
   VERSION 56 — Contactez-nous : encart « Vous voulez vendre ? » au-dessus
   du formulaire (addContactSellNote dans site-modern.js), 2026-11-09.
   ===================================================================== */
html body main .bks-contact-sell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin: 4px 0 18px;
    padding: 14px 16px;
    border: 1px solid #fbd5c8;
    border-radius: 14px;
    background: #fff4ef;
    color: #1f2937;
}
html body main .bks-contact-sell__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #d9573b;
}
html body main .bks-contact-sell__icon svg { width: 19px; height: 19px; }
html body main .bks-contact-sell__txt { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body main .bks-contact-sell__txt strong { font-size: 15px; font-weight: 700; }
html body main .bks-contact-sell__txt small { font-size: 13px; line-height: 1.4; color: #4b5563; }
html body main .bks-contact-sell a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #d9573b;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
html body main .bks-contact-sell a:hover { background: #bf4529; }
html.dark body main .bks-contact-sell { background: #2a1a14; border-color: #5a2f22; color: #f3f4f6; }
html.dark body main .bks-contact-sell__icon { background: #3a2219; color: #f08a6c; }
html.dark body main .bks-contact-sell__txt small { color: #d1d5db; }
/* VERSION 56b — encart : icône | texte, bouton sous le texte, aéré sous le titre */
html body main .bks-contact-sell {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px 14px;
    margin: 14px 0 22px;
}
html body main .bks-contact-sell a { grid-column: 2; justify-self: start; }
html body main div.bks-contact > div.flex.flex-col > div.bks-contact-sell { margin: 14px 0 22px !important; padding: 14px 16px !important; }

/* VERSION 57 (c) — cartes d'annonce : prix, titre, puis catégorie, lieu, date (comme l'appli).
   La ligne de date est une copie de celle du lieu (mêmes classes) : rien à styler ici. */
.bks-cmeta-cat { order:3; margin:4px 0 2px; color:#4b5563; line-height:1.35; }
html.dark .bks-cmeta-cat { color:#cbd5e1; }
.bks-cmeta-loc { order:4; padding-bottom:0 !important; }
.bks-cmeta-date { order:5; }
/* VERSION 57d — lieu et date : lignes serrées et texte bien lisible. */
html body main div.bks-cmeta-loc.flex, html body main div.bks-cmeta-date.flex { padding-top:0 !important; padding-bottom:0 !important; line-height:20px !important; min-height:0 !important; }
html body main div.bks-cmeta-loc.flex { margin-bottom:3px !important; }
html body main div.bks-cmeta-date.flex { margin-bottom:8px !important; }
html body main div.bks-cmeta-loc.flex p, html body main div.bks-cmeta-date.flex p { line-height:20px !important; color:#5b6270 !important; }
html body main div.bks-cmeta-loc.flex svg, html body main div.bks-cmeta-date.flex svg { color:#7a8190 !important; }
html.dark body main div.bks-cmeta-loc.flex p, html.dark body main div.bks-cmeta-date.flex p { color:#c3c8d2 !important; }
html.dark body main div.bks-cmeta-loc.flex svg, html.dark body main div.bks-cmeta-date.flex svg { color:#a3aab6 !important; }
/* VERSION 57e — plus précis que la règle intégrée « .bk-item-card .ps-1.flex.items-center » (3px 10px 10px). */
html body main div.pb-2.ps-1.flex.items-center.bks-cmeta-loc, html body main div.pb-2.ps-1.flex.items-center.bks-cmeta-date { padding-top:0 !important; padding-bottom:0 !important; padding-right:0 !important; }
html body main div.pb-2.ps-1.flex.items-center.bks-cmeta-loc p, html body main div.pb-2.ps-1.flex.items-center.bks-cmeta-date p { font-size:12.5px !important; }

/* VERSION 58 — mon annonce : Booster en grand (orange), Supprimer / Vendu / Désactiver en boutons clairs. */
html body main .bks-own { display:grid !important; grid-template-columns:48px 1fr 1fr; gap:10px; }
html body main .bks-own > .bks-own-row { display:contents !important; }
html body main .bks-own > :not(.bks-own-row) { grid-column:1 / -1; order:-2; }
html body main .bks-own button.bks-own-boost { grid-column:1 / -1; order:-1; display:flex !important; align-items:center; justify-content:center; gap:8px;
  height:52px; margin:0 !important; border:0 !important; border-radius:14px !important; color:#fff !important; font-weight:800 !important; font-size:16px !important;
  background:linear-gradient(135deg,#2b7fd4,#1d568e) !important; box-shadow:0 8px 18px -8px rgba(29,86,142,.55); }
html body main .bks-own button.bks-own-boost:hover { filter:brightness(1.05); }
html body main .bks-own button.bks-own-boost[disabled] { background:#e5e7eb !important; color:#9ca3af !important; box-shadow:none; }
html body main .bks-own button.bks-own-boost .bks-own-ic svg { width:20px; height:20px; }
html body main .bks-own button.bks-own-del, html body main .bks-own button.bks-own-ghost { height:44px; margin:0 !important; border-radius:12px !important;
  background:#fff !important; border:1.5px solid #dfe5ee !important; color:#1d3f6e !important; font-weight:700 !important; font-size:14px !important;
  box-shadow:none !important; display:flex !important; align-items:center; justify-content:center; padding:0 10px !important; }
html body main .bks-own button.bks-own-del { color:#d33b3b !important; border-color:#f1d0d0 !important; padding:0 !important; }
html body main .bks-own button.bks-own-del svg, html body main .bks-own button.bks-own-del .icon { color:#d33b3b !important; fill:currentColor; }
html body main .bks-own button.bks-own-ghost[disabled] { color:#9ca3af !important; background:#f6f7f9 !important; }
html body main .bks-own button.bks-own-del:hover, html body main .bks-own button.bks-own-ghost:hover { background:#f6f8fc !important; }
html.dark body main .bks-own button.bks-own-ghost, html.dark body main .bks-own button.bks-own-del { background:#1b2130 !important; border-color:#2e3546 !important; color:#e6edf3 !important; }
html.dark body main .bks-own button.bks-own-del { color:#ff8a80 !important; }

/* VERSION 58 — fenêtre « Booster » : forfaits en cartes, paiement Mobile Money. */
.bks-promo .bks-promo-plans > div { margin-top:8px; }
.bks-promo .bks-promo-plans > div > div { border:1.5px solid #e6e9f0; border-radius:12px; padding:10px 12px; margin-top:0 !important; align-items:center; transition:border-color .15s, background .15s; }
.bks-promo .bks-promo-plans > div > div:has(input[type="radio"]:checked) { border-color:#2c5287; background:#f2f6fc; }
html.dark .bks-promo .bks-promo-plans > div > div { border-color:#2e3546; }
html.dark .bks-promo .bks-promo-plans > div > div:has(input[type="radio"]:checked) { border-color:#7aa2ff; background:#1b2333; }
.bks-promo .bks-promo-plans label { font-size:14px !important; }
.bks-promo div.grid.grid-cols-3.gap-4.mt-6:empty { display:none; }
.bks-mm-pay { margin:12px 2rem 4px; }
.bks-mm-btn { width:100%; display:flex; align-items:center; gap:12px; text-align:left; border:0; border-radius:14px; padding:12px 14px; cursor:pointer;
  color:#fff; background:linear-gradient(135deg,#2b7fd4,#1d568e); box-shadow:0 8px 18px -8px rgba(29,86,142,.55); }
.bks-mm-btn:disabled { opacity:.7; cursor:wait; }
.bks-mm-ic { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; flex:none; }
.bks-mm-ic svg { width:20px; height:20px; }
.bks-mm-txt { display:flex; flex-direction:column; min-width:0; flex:1; }
.bks-mm-txt strong { font-size:15px; font-weight:800; line-height:1.2; }
.bks-mm-txt small { font-size:12px; opacity:.9; }
.bks-mm-amt { font-size:15px; font-weight:800; white-space:nowrap; }
.bks-mm-note { margin:8px 2px 0; font-size:12.5px; color:#6b7280; }
.bks-mm-err { margin:6px 2px 0; font-size:13px; color:#c0392b; font-weight:600; }
.bks-mm-none { margin:0; padding:12px 14px; border-radius:12px; background:#f6f7f9; color:#4b5563; font-size:13.5px; line-height:1.45; }
html.dark .bks-mm-none { background:#1b2130; color:#cbd5e1; }
html.dark .bks-mm-note { color:#9ca3af; }

/* VERSION 59 — carte prix de MON annonce : style pro. */
html body main div.bks-own-card { border:1px solid #e7eaf0 !important; border-radius:18px !important; box-shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.12); }
html.dark body main div.bks-own-card { border-color:#262d3b !important; box-shadow:none; }
html body main div.bks-own2 { display:grid !important; grid-template-columns:1fr 1fr; gap:10px !important; }
html body main div.bks-own2 > * { margin:0 !important; width:auto !important; }
html body main div.bks-own2 > button.bks-own2-boost { grid-column:1 / -1; order:1; }
html body main div.bks-own2 > button.bks-own2-ghost { order:2; }
html body main div.bks-own2 > div.bks-own2-status { order:3; height:auto !important; }
html body main div.bks-own2 > button.bks-own2-del { grid-column:1 / -1; order:4; }
/* Booster : action principale */
html body main div.bks-own2 button.bks-own2-boost { display:flex !important; align-items:center; justify-content:center; gap:8px; height:50px !important;
  padding:0 16px !important; border:0 !important; border-radius:12px !important; color:#fff !important; font-size:15.5px !important; font-weight:700 !important;
  letter-spacing:.01em; background:linear-gradient(135deg,#2b7fd4 0%,#1d568e 100%) !important; box-shadow:0 6px 16px -8px rgba(29,86,142,.6) !important; }
html body main div.bks-own2 button.bks-own2-boost:hover { filter:brightness(1.04); }
html body main div.bks-own2 button.bks-own2-boost[disabled] { background:#eef0f4 !important; color:#9aa1ad !important; box-shadow:none !important; }
/* Vendu / Désactiver : boutons secondaires contour */
html body main div.bks-own2 button.bks-own2-ghost { display:flex !important; align-items:center; justify-content:center; gap:6px; width:100% !important; height:44px !important;
  padding:0 10px !important; border-radius:12px !important; background:#fff !important; border:1px solid #d9dfe8 !important; color:#1f2937 !important;
  font-size:14px !important; font-weight:600 !important; box-shadow:0 1px 2px rgba(16,24,40,.05) !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body main div.bks-own2 button.bks-own2-ghost:hover { background:#f7f8fa !important; border-color:#c9d1dc !important; }
html body main div.bks-own2 button.bks-own2-ghost[disabled] { color:#9aa1ad !important; background:#f7f8fa !important; }
html body main div.bks-own2 .bks-own-ic { display:inline-flex; flex:none; }
html body main div.bks-own2 .bks-own-ic svg { width:18px; height:18px; }
html body main div.bks-own2 button.bks-own2-boost .bks-own-ic svg { width:20px; height:20px; }
/* Supprimer : lien discret */
html body main div.bks-own2 button.bks-own2-del { display:flex !important; align-items:center; justify-content:center; gap:6px; height:36px !important; padding:0 !important;
  background:transparent !important; border:0 !important; box-shadow:none !important; color:#c0392b !important; font-size:13.5px !important; font-weight:600 !important; }
html body main div.bks-own2 button.bks-own2-del svg, html body main div.bks-own2 button.bks-own2-del .icon { width:17px !important; height:17px !important; color:#c0392b !important; fill:currentColor; }
html body main div.bks-own2 button.bks-own2-del:hover .bks-own2-del-txt { text-decoration:underline; }
html.dark body main div.bks-own2 button.bks-own2-ghost { background:#1b2130 !important; border-color:#2e3546 !important; color:#e6edf3 !important; }
html.dark body main div.bks-own2 button.bks-own2-del, html.dark body main div.bks-own2 button.bks-own2-del svg { color:#ff8a80 !important; }

/* VERSION 59 — fenêtre Booster : tous les forfaits visibles, finitions. */
.bks-promo div.h-80.overflow-y-scroll { height:auto !important; max-height:min(52vh, 460px); overflow-y:auto !important; }
.bks-promo .bks-promo-plans input[type="radio"] { accent-color:#2c5287; }
.bks-promo .bks-promo-plans > div > div { padding:12px 14px; }
.bks-promo .bks-promo-plans > div > div:has(input[type="radio"]:checked) label, .bks-promo .bks-promo-plans > div > div:has(input[type="radio"]:checked) p { color:#1d3f6e !important; font-weight:600 !important; }
.bks-mm-btn { border-radius:12px; padding:12px 16px; box-shadow:0 6px 16px -8px rgba(29,86,142,.6); }
.bks-mm-btn:hover { filter:brightness(1.04); }
.bks-mm-ic { background:rgba(255,255,255,.22); }
/* VERSION 59b — libellés courts : le texte d'origine est masqué, icône + libellé court visibles. */
html body main div.bks-own2 button.bks-own2-short { font-size:0 !important; }
html body main div.bks-own2 button.bks-own2-short > * { font-size:0 !important; }
html body main div.bks-own2 button.bks-own2-short > .bks-own2-lbl { font-size:14px !important; }
html body main div.bks-own2 button.bks-own2-short > .bks-own-ic { font-size:14px !important; }

/* VERSION 60 — fenêtre Booster : jamais de débordement, lignes de forfait propres. */
.bks-promo div.h-80.overflow-y-scroll { overflow-x:hidden !important; }
.bks-promo .bks-promo-plans > div > div { display:flex !important; justify-content:space-between; align-items:center; gap:10px; }
.bks-promo .bks-promo-plans > div > div > label { flex:1 1 auto; min-width:0; }
.bks-promo .bks-promo-plans > div > div > :last-child { flex:none; white-space:nowrap; }
.bks-promo .bks-promo-plans > div > div > :last-child * { white-space:nowrap; }
.bks-mm-txt strong, .bks-mm-txt small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 640px) {
  .bks-promo .px-8 { padding-left:14px !important; padding-right:14px !important; }
  .bks-promo .ms-8 { margin-inline-start:14px !important; }
  .bks-promo .p-6 { padding:16px 12px !important; }
  /* Date + heure : passent à la ligne au lieu de déborder. */
  .bks-promo div.flex.flex-col.w-full > div.flex:not(.flex-col) { flex-wrap:wrap; gap:8px; }
  .bks-promo div.flex.flex-col.w-full > div.flex:not(.flex-col) > * { max-width:100%; margin-left:0 !important; }
  .bks-promo .bks-promo-plans > div > div { padding:11px 12px; }
  .bks-promo .bks-promo-plans label, .bks-promo .bks-promo-plans p { font-size:13.5px !important; }
  .bks-mm-pay { margin:10px 14px 4px; }
  .bks-mm-btn { gap:10px; padding:11px 12px; }
  .bks-mm-ic { width:34px; height:34px; }
  .bks-mm-txt strong { font-size:14.5px; }
  .bks-mm-amt { font-size:14.5px; }
  .bks-mm-note { font-size:12px; }
}
@media (max-width: 640px) { .bks-mm-txt small { white-space:normal; line-height:1.3; } }

/* VERSION 61 — sélecteur d'heure moderne : 3 cases arrondies comme la date. */
html body div.bks-time { background:transparent !important; padding:0 !important; border-radius:0 !important; margin-inline-start:12px !important; }
html body div.bks-time > .flex { align-items:center; gap:6px; }
html body div.bks-time > .flex > * { width:auto !important; }
html body div.bks-time .bks-time-hide { display:none !important; }
html body div.bks-time .bks-time-h { margin:0 2px !important; font-size:15px !important; font-weight:600 !important; color:#4b5563 !important; }
html body div.bks-time button#options-menu { display:inline-flex !important; align-items:center; justify-content:center; height:48px; min-width:54px; padding:0 14px !important;
  border-radius:12px !important; background:#f3f4f6 !important; border:1px solid transparent; box-shadow:none !important; cursor:pointer; transition:border-color .15s, background .15s; }
html body div.bks-time button#options-menu:hover { border-color:#c9d1dc; background:#eef1f5 !important; }
html body div.bks-time button#options-menu * { font-size:16px !important; font-weight:600 !important; color:#14215b !important; white-space:nowrap; }
html.dark body div.bks-time button#options-menu { background:#1b2130 !important; }
html.dark body div.bks-time button#options-menu * { color:#e6edf3 !important; }
html.dark body div.bks-time .bks-time-h { color:#cbd5e1 !important; }
/* Listes déroulantes de l'heure : plus larges, lignes confortables. */
html body div.bks-time .w-14 { width:auto !important; min-width:64px; max-height:240px; overflow-y:auto; padding:4px; border-radius:12px; background:#fff; box-shadow:0 10px 30px -10px rgba(16,24,40,.25); }
html body div.bks-time .w-14 .cursor-pointer { padding:7px 12px; border-radius:8px; white-space:nowrap; }
html body div.bks-time .w-14 .cursor-pointer:hover { background:#f2f6fc; }
html.dark body div.bks-time .w-14 { background:#151b23; }
@media (max-width: 640px) { html body div.bks-time { margin-inline-start:0 !important; } }
/* VERSION 62 — dégradés orange (Booster, Mobile Money) passés au bleu du site (#2b7fd4 → #1d568e). */
