/* Espaces publicitaires   (prefixe : adslot) */
.adslot {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Mention « Publicité » : petite, sous chaque publicite. */
.adslot-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--text-muted);
}

.adslot .ad-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.adslot .ad-slide {
    width: 100%;
    transition: opacity 0.4s ease-in-out;
}

.adslot-html {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

/* Rappel reserve aux administrateurs */
.adslot-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-secondary);
    background: var(--bg-app);
    border: 1px dashed var(--border);
    box-shadow: none;
}

.adslot-empty strong {
    color: var(--secondary);
}

.adslot-empty a {
    font-weight: 700;
    color: var(--primary);
}

.adslot-empty em {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---------- Bandeau de consentement aux cookies ---------- */
.ck {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.ck[hidden] {
    display: none;
}

.ck p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ck a {
    font-weight: 700;
    color: var(--primary);
}

.ck-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.ck-btn {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.ck-btn.is-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .ck {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
        bottom: calc(var(--mbn-h, 56px) + 12px + env(safe-area-inset-bottom)); /* au-dessus de la barre de navigation mobile */
    }

    .ck p {
        font-size: 12px;
        line-height: 1.45;
    }

    .ck-btn {
        height: 38px;
    }

    .ck-actions .ck-btn {
        flex: 1;
    }

    body.has-compare .ck {
        bottom: calc(var(--mbn-h, 56px) + 64px + env(safe-area-inset-bottom));
    }

    body.no-bottom-nav .ck {
        bottom: 12px;
    }
}
