/* Espace Blessing — Challenges (site) */
.eb-challenge { margin: 28px 0; padding: 22px; border: 2px solid #0B3FA8; border-radius: 16px; background: #f7f9ff; }
.eb-challenge-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: #334155; margin-bottom: 8px; }
.eb-challenge-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #334155; }
.eb-challenge-badge.is-en_cours { background: #FCB400; color: #0A2E7A; }
.eb-challenge-badge.is-a_venir { background: #e8f0ff; color: #0B3FA8; }
.eb-challenge-prize { font-weight: 700; color: #0A2E7A; font-size: 1.05rem; margin: 6px 0; }
.eb-challenge-muted { color: #64748b; font-size: 13px; }
.eb-challenge-error { background: #fdecea; color: #7f1d1d; padding: 10px 12px; border-radius: 10px; }
.eb-challenge-done { background: #e8f7ee; color: #14532d; padding: 14px; border-radius: 12px; margin: 10px 0; }
.eb-challenge-q { border: 1px solid #dbe3f1; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.eb-challenge-q legend { font-weight: 600; padding: 0 4px; }
.eb-challenge-q label { display: block; padding: 6px 4px; cursor: pointer; }
.eb-challenge-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.eb-challenge-who label { display: block; font-weight: 600; font-size: 14px; }
.eb-challenge-who input { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.eb-challenge .eb-hp { position: absolute; left: -9999px; }
.eb-challenge-winners li { margin: 4px 0; }
.eb-challenge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.eb-challenge-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid #dbe3f1; background: #fff; text-decoration: none; color: inherit; }
.eb-challenge-card:hover { border-color: #0B3FA8; }
.eb-challenge-card small { color: #64748b; }
/* Tableau de bord */
.eb-blog-admin .eb-blog-title { font-size: 1.15rem; font-weight: 600; }
.eb-blog-admin .wp-editor-wrap { border: 1px solid #dbe3f1; border-radius: 10px; overflow: hidden; }
.eb-blog-admin .eb-blog-thumb { display: block; border-radius: 8px; margin-bottom: 6px; }
.eb-blog-q { border: 1px solid #e3e8f2; border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.eb-blog-q legend { font-weight: 700; color: #0A2E7A; padding: 0 4px; }
.eb-blog-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; margin-top: 8px; }
.eb-blog-choices label { display: flex; gap: 6px; align-items: center; }
.eb-blog-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eb-blog-admin .eb-ui-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

/* Articles : images, boutons et videos inserees depuis l'editeur (site) */
.eb-figure { margin: 1.5em 0; }
.eb-figure figcaption { font-size: .85em; color: #64748b; text-align: center; margin-top: 6px; }
.eb-figure.is-full img { width: 100%; }
img.aligncenter, .eb-figure.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
img.alignleft, .eb-figure.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
img.alignright, .eb-figure.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.eb-img-center { text-align: center; }
.entry-content img, .wp-block-post-content img { max-width: 100%; height: auto; }
.eb-cta-wrap { margin: 1.4em 0; }
a.eb-cta { display: inline-block; background: #FCB400; color: #0A2E7A !important; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; }
a.eb-cta:hover { filter: brightness(.95); }
@media (max-width: 600px) { img.alignleft, img.alignright, .eb-figure.alignleft, .eb-figure.alignright { float: none; max-width: 100%; margin: 1em 0; } }

/* Tableau de bord : fenetres de l'editeur, filtres, categories */
.eb-ed-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.eb-ed-box { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.eb-ed-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e3e8f2; color: #0A2E7A; }
.eb-ed-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #64748b; }
.eb-ed-body { padding: 16px 18px; }
.eb-ed-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.eb-ed-tab { border: 1px solid #dbe3f1; background: #f5f8ff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: #334155; }
.eb-ed-tab.is-active { background: #0B3FA8; border-color: #0B3FA8; color: #fff; }
.eb-ed-drop { display: block; border: 2px dashed #9fb4dd; background: #f5f8ff; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; color: #0A2E7A; font-weight: 600; }
.eb-ed-drop input { display: block; margin: 0 auto 8px; }
.eb-ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; }
.eb-ed-thumb { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #f1f5f9; aspect-ratio: 1; }
.eb-ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-ed-thumb.is-picked { border-color: #FCB400; }
.eb-ed-picked { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; }
.eb-ed-picked > img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.eb-ed-fields { flex: 1; display: grid; gap: 8px; }
.eb-ed-fields label, .eb-ed-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.eb-ed-fields input, .eb-ed-fields select, .eb-ed-label input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-weight: 400; }
.eb-ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eb-ed-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.eb-ed-error { color: #b91c1c; font-size: 13px; margin: 8px 0 0; }
.eb-ed-muted { color: #64748b; font-size: 13px; }
@media (max-width: 560px) { .eb-ed-picked { flex-direction: column; } .eb-ed-row { grid-template-columns: 1fr; } }
.eb-blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.eb-blog-filters .eb-ui-input { width: auto; min-width: 200px; }
.eb-blog-newcat { margin-top: 6px; }
.eb-blog-table .eb-blog-cell-thumb { width: 56px; }
.eb-blog-table .eb-blog-cell-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.eb-blog-cell-actions { white-space: nowrap; }
.eb-blog-cats { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 900px) { .eb-blog-cats { grid-template-columns: 1fr; } }
