/*
 * LadySenegal v3.7.89 — Cartes de profil « photo + bandeau noir ».
 * Couleurs mesurées sur le site de référence. Variables modifiables ci-dessous.
 */
html body {
    --lsx-page: #232028;       /* fond de page */
    --lsx-strip: #0a0a0c;      /* bandeau noir sous la photo */
    --lsx-accent: #f28aae;     /* rose */
    --lsx-accent-soft: #eca4bc;
    --lsx-seal-1: #ffd27a;     /* pastille « photo OK » */
    --lsx-seal-2: #f0a030;
    --lsx-seal-3: #d98314;
}

/* ---------- Fonds des sections de l'accueil : même couleur que la page ---------- */
html body .hdm-v430-all,
html body .hdm-v430-destinations,
html body .lsn-modern-directory-hero {
    background: var(--lsx-page) !important;
}

html body .ls-stories {
    background: #1f1c24 !important;
}

html body .hdm-footer {
    background: #19171d !important;
}

html body .lsn-modern-directory-hero,
html body .ls-stories,
html body .hdm-v430-destinations {
    border-color: rgba(255, 255, 255, .08) !important;
}

html body .hdm-home-order-note strong,
html body .hdm-home-order-note span {
    color: var(--lsx-accent-soft) !important;
}

/* ---------- Grille : 4 colonnes, puis 3, puis 2 sur mobile ---------- */
html body .hdm-v430-grid:not(.teg-intl-home-card-grid) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px 26px !important;
    align-items: stretch !important;
}

@media (max-width: 1180px) {
    html body .hdm-v430-grid:not(.teg-intl-home-card-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px 20px !important;
    }
}

@media (max-width: 760px) {
    html body .hdm-v430-grid:not(.teg-intl-home-card-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px !important;
    }
}

/* ---------- Carte ---------- */
.lsx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--lsx-strip);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 0;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.lsx-card:hover,
.lsx-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
}

.lsx-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
}

.lsx-card-link:focus-visible {
    outline: 2px solid var(--lsx-accent);
    outline-offset: -3px;
}

.lsx-card-photo {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: #17141c;
    overflow: hidden;
}

.lsx-card-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.lsx-card:hover .lsx-card-photo img {
    transform: scale(1.03);
}

/* Étiquette d'abonnement (VIP / PREMIUM), discrète. */
.lsx-card-tier {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1;
    color: #fff;
    background: rgba(10, 10, 12, .72);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
}

.lsx-card-tier-vip {
    color: #1d0d14;
    background: linear-gradient(135deg, #f6a9c4, var(--lsx-accent));
    border-color: transparent;
}

/* Pastille ronde « photo OK » en bas à gauche de la photo. */
.lsx-card-seal {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 34% 28%, var(--lsx-seal-1), var(--lsx-seal-2) 56%, var(--lsx-seal-3));
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 2px var(--lsx-seal-2), 0 6px 14px rgba(0, 0, 0, .4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.lsx-card-seal b {
    display: block;
    font-weight: 700;
    line-height: 1;
}

.lsx-card-seal b:first-child {
    font-size: 9px;
    letter-spacing: .01em;
}

.lsx-card-seal b:last-child {
    margin-top: 2px;
    font-size: 13px;
}

/* ---------- Bandeau noir sous la photo ---------- */
.lsx-card-info {
    display: block;
    flex: 1 1 auto;
    min-height: 92px;
    padding: 12px 14px 14px;
    background: var(--lsx-strip);
}

.lsx-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lsx-card-name {
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Drapeau du Sénégal dessiné en CSS (aucune image à charger). */
.lsx-flag {
    flex: 0 0 auto;
    width: 27px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%2300853f'/%3E%3Crect x='1' width='1' height='2' fill='%23fdef42'/%3E%3Crect x='2' width='1' height='2' fill='%23e31b23'/%3E%3Cpath d='M1.5 .6l.1.32h.34l-.27.2.1.32-.27-.2-.27.2.1-.32-.27-.2h.34z' fill='%2300853f'/%3E%3C/svg%3E") center / cover no-repeat;
}

.lsx-card-tagline {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, .9);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsx-card-city {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, .58);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsx-card-price {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: var(--lsx-accent-soft);
}

/* Vues et favoris : petite pastille en haut à droite de la photo. */
.lsx-card-stats {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background: rgba(10, 10, 12, .66);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.lsx-card-views span {
    font-size: 11px;
}

.lsx-card-views strong {
    font-weight: 500;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .lsx-card-info {
        min-height: 78px;
        padding: 9px 9px 11px;
    }

    .lsx-card-name {
        font-size: 14.5px;
    }

    .lsx-flag {
        width: 22px;
        height: 15px;
    }

    .lsx-card-tagline {
        font-size: 12px;
    }

    .lsx-card-city,
    .lsx-card-price {
        font-size: 11px;
    }

    .lsx-card-seal {
        left: 8px;
        bottom: 8px;
        width: 38px;
        height: 38px;
    }

    .lsx-card-seal b:first-child { font-size: 7.5px; }
    .lsx-card-seal b:last-child { font-size: 11px; }

    .lsx-card-tier {
        top: 7px;
        left: 7px;
        min-height: 19px;
        padding: 0 8px;
        font-size: 9px;
    }

    .lsx-card-stats {
        top: 7px;
        right: 7px;
        gap: 7px;
        padding: 0 8px;
        min-height: 19px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lsx-card,
    .lsx-card-photo img {
        transition: none;
    }

    .lsx-card:hover,
    .lsx-card:focus-within {
        transform: none;
    }

    .lsx-card:hover .lsx-card-photo img {
        transform: none;
    }
}
