/* ================================================================
   SDS Premium — Carousel Associations Certifiées Or
   Autonome : pas de dépendance au thème
================================================================ */

/* Variables locales — si le thème ne les fournit pas */
.sds-gold-carousel-wrap {
    --sds-gold:       #f9a825;
    --sds-gold-dk:    #f57f17;
    --sds-ink:        #0f1f0f;
    --sds-ink-2:      #142b1e;
    --sds-radius:     14px;
    --sds-font-head:  inherit;

    background: linear-gradient(160deg, var(--sds-ink) 0%, var(--sds-ink-2) 100%);
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Fondus latéraux */
.sds-gold-carousel-wrap::before,
.sds-gold-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 4;
    pointer-events: none;
}
.sds-gold-carousel-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--sds-ink) 0%, transparent 100%);
}
.sds-gold-carousel-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--sds-ink) 0%, transparent 100%);
}

/* En-tête */
.sds-gold-carousel-header {
    text-align: center;
    margin-bottom: 52px;
    position: relative;
    z-index: 5;
    padding: 0 32px;
}
.sds-gold-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sds-gold);
    margin-bottom: 16px;
}
.sds-gold-carousel-header h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: var(--sds-font-head);
}
.sds-gold-carousel-header p {
    color: rgba(255,255,255,.55);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Vide */
.sds-gold-empty {
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 15px;
    padding: 0 20px;
}

/* Piste */
.sds-gold-track-outer {
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 3;
}
.sds-gold-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    user-select: none;
    cursor: grab;
}
.sds-gold-track:active { cursor: grabbing; }

/* Carte */
.sds-gold-card {
    width: 300px;
    flex-shrink: 0;
    background: rgba(255,255,255,.055);
    border: 1.5px solid rgba(249,168,37,.3);
    border-radius: var(--sds-radius);
    padding: 26px 22px 22px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    box-sizing: border-box;
}
.sds-gold-card:hover {
    border-color: var(--sds-gold);
    box-shadow: 0 10px 40px rgba(249,168,37,.18);
    transform: translateY(-5px);
}

/* Shimmer doré */
.sds-gold-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(249,168,37,.07) 50%,
        transparent 60%
    );
    background-size: 300% 100%;
    animation: sdsCardShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sdsCardShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sds-gold-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(249,168,37,.12);
    border: 1px solid rgba(249,168,37,.35);
    border-radius: 40px;
    padding: 3px 11px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sds-gold);
    margin-bottom: 18px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sds-gold-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249,168,37,.35);
    margin-bottom: 14px;
    display: block;
}
.sds-gold-card-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(249,168,37,.08);
    border: 2px solid rgba(249,168,37,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.sds-gold-card h3 {
    font-family: var(--sds-font-head);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sds-gold-card-region {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin-bottom: 10px;
}

.sds-gold-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--sds-gold);
    opacity: .75;
    margin-bottom: 10px;
    letter-spacing: .03em;
}

.sds-gold-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.sds-gold-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sds-gold);
    text-decoration: none;
    transition: gap .2s ease, opacity .2s ease;
}
.sds-gold-card-link:hover {
    gap: 10px;
    opacity: .85;
    color: var(--sds-gold);
}

/* CTA */
.sds-gold-carousel-cta {
    text-align: center;
    margin-top: 52px;
    position: relative;
    z-index: 5;
}
.sds-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--sds-gold), var(--sds-gold-dk));
    color: #0f1f0f;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(249,168,37,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sds-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(249,168,37,.45);
    color: #0f1f0f;
}

/* Responsive */
@media (max-width: 600px) {
    .sds-gold-carousel-wrap { padding: 60px 0 72px; }
    .sds-gold-carousel-wrap::before,
    .sds-gold-carousel-wrap::after { width: 60px; }
    .sds-gold-card { width: 260px; }
}
