/* MW Boards Elementor Widget */
.mwbl-wrap, .mwbl-wrap * { font: inherit; }
.mwbl-wrap { margin: 0 auto; max-width: 760px; }

/* CTA */
.mwbl-cta{
  display:block;
  text-decoration:none;
  text-align:center;
  font-weight: 800;
  padding: 16px 18px;
  border-radius: 18px;
  background: #3f5df6;
  color: #fff;
  box-shadow: 0 10px 22px rgba(63,93,246,.25);
  margin-bottom: 14px;
}

/* Header */
.mwbl-head{ text-align:center; margin: 6px 0 18px; }
.mwbl-flag{ font-size: 22px; }
.mwbl-title{ font-size: 30px; font-weight: 900; color:#111; margin-top: 6px; letter-spacing: -.3px; }
.mwbl-count{ font-size: 14px; font-weight: 800; opacity: .6; margin-top: 4px; color:#111; }

/* Grid */
.mwbl-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* Card */
.mwbl-card{
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;

  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

/* Image intégrée */
.mwbl-media{ display:block; width:100%; }
.mwbl-img{
  display:block;
  width:100%;
  height:190px;
  object-fit:cover;
}

/* Folder tab (uniquement sans image) */
.mwbl-tab{
  display:block;
  height: 18px;
  width: 62%;
  margin-left: 10px;
  border-radius: 16px 16px 10px 10px;
  background: rgba(0,0,0,.16);
}

/* Folder body (base) */
.mwbl-body{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 16px 14px;
  min-height: 74px;
  background: #f2f2f2;
  position: relative;
}

/* Sans image: on “remonte” un peu le body sous le tab */
.mwbl-card:not(.mwbl-card--img) .mwbl-body{ ... }
  margin-top: -7px;
  border-radius: 22px;
}

/* Icon */
.mwbl-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.65);
  font-size: 18px;
  flex: 0 0 auto;
  color:#111;
}

.mwbl-text{ min-width:0; flex:1; }
.mwbl-label{ display:block; font-weight: 900; font-size: 15px; line-height: 1.15; color:#111; }

.mwbl-badge{
  display:inline-block;
  margin-top: 8px;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  color:#111;
}

/* Variante "comme ton exemple" quand il y a une image */
.mwbl-body--white{
  background: #f4f4f4 !important;
  min-height: 96px;
  padding: 18px 18px;
  gap: 14px;
}

/* Dans ton exemple, pas d’icône à gauche: on le masque */
.mwbl-card--img .mwbl-icon{ display:none; }

/* Badge style "Page" */
.mwbl-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 14px;
  background: #8f9bff;
  color: #fff;
}

.mwbl-text--row{
  display:flex;
  align-items:center;
  gap: 14px;
}

.mwbl-card--img .mwbl-label{ ... }
  font-size: 26px;
  font-weight: 900;
  color:#111;
}

/* Share modal */
.mwbl-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.mwbl-modal[aria-hidden="false"]{
  opacity: 1;
  pointer-events: auto;
}

.mwbl-modal-inner{
  width: min(520px, 100%);
  background:#fff;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.mwbl-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.mwbl-modal-title{ font-weight: 900; color:#111; }
.mwbl-close{
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
  padding:6px 10px;
}

.mwbl-share-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.mwbl-share-btn{
  border: 1px solid #111;
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  font-weight: 900;
  color:#111;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mwbl-share-btn:hover{ background: rgba(0,0,0,.04); }
.mwbl-note{
  padding: 0 16px 14px;
  font-size: 13px;
  color: rgba(0,0,0,.75);
  min-height: 18px;
}

/* Anti styles theme / Elementor sur buttons */
.mwbl-card, .mwbl-card *{ box-sizing: border-box !important; }
.mwbl-card{
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #fff !important;
}
.mwbl-cta{ color:#fff !important; text-decoration:none !important; }

/* IMAGE + BANDEAU = 1 SEULE CARTE */
.mwbl-card--img{
  border-radius: 26px !important;
  overflow: hidden !important;
}

/* Pas d’onglet quand il y a une image */
.mwbl-card--img .mwbl-tab{
  display: none !important;
}

/* Image propre */
.mwbl-card--img .mwbl-media{ display:block !important; line-height:0 !important; }
.mwbl-card--img .mwbl-img{
  display:block !important;
  width:100% !important;
  height:190px !important;
  object-fit:cover !important;
}

/* Bandeau du bas collé à l'image */
.mwbl-card--img .mwbl-body{
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: #f4f4f4 !important;
  min-height: 96px !important;
  padding: 18px 18px !important;
}
