/* ══════════════════════════════════════
   KDO.CI — Bannières publicitaires & blocs sponsorisés
   Inclure sur toutes les pages: <link rel="stylesheet" href="kdo-banners.css">
══════════════════════════════════════ */

/* ── Bannière top 1200×200 ── */
.kdo-banner-wrap-top {
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 12px;
}
.kdo-banner-top {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #f0ebe4;
  max-height: 200px;
}
.kdo-banner-top img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.kdo-banner-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ddd4, #f5e6d3);
  font-family:'DM Sans',sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8B5E3C;
}
.kdo-banner-label {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.75);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .kdo-banner-top img,
  .kdo-banner-placeholder { height: 100px; }
}

/* ── Bannière sidebar 300×600 ── */
.kdo-banner-side {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #f0ebe4;
  margin-bottom: 12px;
}
.kdo-banner-side img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.kdo-banner-side-ph {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ddd4, #f5e6d3);
  font-family:'DM Sans',sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8B5E3C;
}

/* ── Sidebar publicitaire ── */
.kdo-sidebar-ad {
  background: #fff;
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.kdo-sidebar-ad-hd {
  background: #FAF6F1;
  border-bottom: 1px solid #e8ddd4;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #8B5E3C;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Blocs sponsorisés ── */
.kdo-sponsored-section {
  margin: 16px 0;
}
.kdo-sponsored-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kdo-sponsored-badge {
  background: #E8272E;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.kdo-sponsored-title {
  font-family:'DM Sans',sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1a1a1a;
}
.kdo-sponsored-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .kdo-sponsored-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .kdo-sponsored-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Carte sponsorisée ── */
.kdo-sp-card {
  background: #fff;
  border: 1.5px solid #e8ddd4;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  position: relative;
}
.kdo-sp-card:hover {
  border-color: #E8272E;
  box-shadow: 0 4px 16px rgba(232,39,46,.14);
  transform: translateY(-2px);
}
.kdo-sp-thumb {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: #f0ebe4;
  overflow: hidden;
  flex-shrink: 0;
}
.kdo-sp-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kdo-sp-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #e8ddd4, #f5e6d3);
}
.kdo-sp-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #E8272E;
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}
.kdo-sp-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.kdo-sp-title {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kdo-sp-sub {
  font-size: 10.5px;
  color: #888;
}
.kdo-sp-price {
  font-family:'DM Sans',sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #E8272E;
  margin-top: 2px;
}
