
/* DDBZ Co-abonnements — Front (scoppé)
 * Par défaut: clair (style Spliiit). Dark: via body.ddbz-dark.
 */
.ddbz-coab{
  --r:18px;
  --gap:14px;
  --primary:#53B5DD;
  --primary2:#273885;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#475569;
  --line:rgba(2,6,23,.12);
  --surface:rgba(2,6,23,.04);
}
body.ddbz-dark .ddbz-coab{
  --card:#0f172a;
  --text:#eef2ff;
  --muted:#94a3b8;
  --line:rgba(148,163,184,.22);
  --surface:rgba(255,255,255,.08);
}
.ddbz-wrap{ max-width:1160px; margin:0 auto; padding:18px 14px 34px; }
.ddbz-pagehead{ padding:8px 0 14px; }
.ddbz-h1{ font-size:22px; margin:0 0 6px; }
.ddbz-muted{ color:var(--muted); margin:0; }
.ddbz-muted-sm{ color:var(--muted); font-size:12px; }
.ddbz-back{ display:inline-block; color:inherit; text-decoration:none; opacity:.85; margin-bottom:10px; }
.ddbz-back:hover{ opacity:1; }

.ddbz-coab__bar{ margin:10px 0 12px; }
.ddbz-coab__search{ display:flex; gap:10px; align-items:center; }
.ddbz-coab__input{ flex:1; min-width:0; border:1px solid var(--line); border-radius:999px; padding:12px 14px; font-size:16px; background:var(--surface); color:var(--text); outline:none; }
.ddbz-coab__btn{ border:0; background:linear-gradient(135deg,var(--primary),var(--primary2)); color:#fff; padding:12px 14px; border-radius:999px; font-weight:800; cursor:pointer; }
.ddbz-coab__btn:active{ transform:translateY(1px); }

.ddbz-coab__chips{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
.ddbz-chip{ display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; border:1px solid var(--line); text-decoration:none; color:var(--text); opacity:.95; background:var(--surface); }
.ddbz-chip.is-active{ background:rgba(83,181,221,.18); border-color:rgba(83,181,221,.55); opacity:1; }

.ddbz-coab__grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--gap); }
@media(min-width:900px){ .ddbz-coab__grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.ddbz-card{ display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:var(--r); text-decoration:none; color:var(--text); overflow:hidden; }
.ddbz-card__media{ height:92px; background:rgba(148,163,184,.12); display:flex; align-items:center; justify-content:center; }
.ddbz-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.ddbz-coab__ico{ width:46px; height:46px; border-radius:14px; background:rgba(83,181,221,.18); display:flex; align-items:center; justify-content:center; font-weight:900; color:var(--primary2); }
.ddbz-card__body{ padding:12px; }
.ddbz-card__title{ font-weight:800; margin:0 0 6px; }
.ddbz-card__sub{ color:var(--muted); font-size:13px; }

.ddbz-empty{ border:1px dashed var(--line); border-radius:var(--r); padding:18px; background:var(--surface); color:var(--text); }
.ddbz-link{ color:#93c5fd; text-decoration:none; }
.ddbz-link:hover{ text-decoration:underline; }

.ddbz-layout{ display:grid; gap:16px; }
@media(min-width:980px){ .ddbz-layout{ grid-template-columns:280px 1fr; align-items:start; } }
.ddbz-filterbox{ border:1px solid var(--line); border-radius:var(--r); padding:14px; background:var(--card); position:sticky; top:16px; }
.ddbz-filtertitle{ font-weight:800; margin-bottom:10px; }
.ddbz-check{ display:flex; gap:10px; align-items:center; margin:10px 0; color:var(--text); }

.ddbz-offers{ display:grid; gap:14px; }
.ddbz-offer{ border:1px solid var(--line); border-radius:var(--r); padding:14px; background:var(--card); }
.ddbz-offer__top{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:10px; }
.ddbz-offer__who{ display:flex; gap:10px; align-items:center; }
.ddbz-avatar{ width:38px; height:38px; border-radius:14px; background:rgba(37,99,235,.25); display:flex; align-items:center; justify-content:center; font-weight:800; }
.ddbz-offer__badges{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.ddbz-badge{ font-size:12px; padding:4px 10px; border-radius:999px; border:1px solid var(--line); background:var(--surface); }
.ddbz-badge--ok{ background:rgba(34,197,94,.18); border-color:rgba(34,197,94,.35); }

.ddbz-offer__mid{ display:flex; justify-content:space-between; align-items:flex-end; gap:10px; }
.ddbz-price{ display:flex; align-items:baseline; gap:6px; }
.ddbz-price__v{ font-size:22px; font-weight:900; }
.ddbz-price__u{ color:var(--muted); font-weight:700; }

.ddbz-offer__actions{ margin-top:12px; display:flex; justify-content:flex-end; }
.ddbz-join{ border:0; background:#22c55e; color:#052e16; font-weight:900; padding:10px 14px; border-radius:999px; cursor:pointer; }
.ddbz-join:active{ transform:translateY(1px); }

.ddbz-cta{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; background:linear-gradient(135deg,var(--primary),var(--primary2)); color:#fff; padding:12px 14px; border-radius:999px; font-weight:900; cursor:pointer; text-decoration:none; }
.ddbz-cta:disabled{ opacity:.6; cursor:not-allowed; }

.ddbz-wizard .ddbz-cardbox{ border:1px solid var(--line); border-radius:var(--r); background:var(--card); padding:14px; }
.ddbz-label{ display:block; font-weight:800; margin:12px 0 6px; }
.ddbz-input,.ddbz-select{ width:100%; border:1px solid var(--line); border-radius:14px; padding:12px 12px; background:var(--surface); color:var(--text); font-size:16px; outline:none; }
.ddbz-row{ display:grid; gap:12px; }
@media(min-width:760px){ .ddbz-row{ grid-template-columns:1fr 1fr; } }
.ddbz-stepper{ display:flex; gap:10px; align-items:center; }
.ddbz-step{ width:40px; height:40px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-size:18px; font-weight:900; cursor:pointer; }
.ddbz-number{ flex:1; min-width:0; text-align:center; }

.ddbz-summary{ margin:14px 0; border:1px solid var(--line); border-radius:var(--r); padding:12px; background:var(--surface); }
.ddbz-summary__row{ display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 0; border-top:1px dashed rgba(148,163,184,.18); }
.ddbz-summary__row:first-child{ border-top:0; }
.ddbz-summary__v{ font-weight:900; }
.ddbz-warn{ margin-top:10px; padding:10px 12px; border-radius:14px; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.3); color:var(--text); }

.ddbz-toast{ margin-top:10px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); }
.ddbz-toast.is-ok{ border-color:rgba(34,197,94,.35); background:rgba(34,197,94,.12); }
.ddbz-toast.is-bad{ border-color:rgba(239,68,68,.35); background:rgba(239,68,68,.12); }

/* Modal */
.ddbz-modal{ position:fixed; inset:0; z-index:99999; }
.ddbz-modal__overlay{ position:absolute; inset:0; background:rgba(2,6,23,.62); }
.ddbz-modal__box{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(92vw,440px); border-radius:22px; border:1px solid var(--line); background:var(--card); color:var(--text); padding:16px 16px 18px; }
.ddbz-modal__x{ position:absolute; right:10px; top:10px; border:0; background:transparent; color:var(--text); font-size:26px; cursor:pointer; }
.ddbz-modal__h{ font-weight:900; font-size:18px; margin-bottom:8px; }
.ddbz-modal__p{ color:var(--muted); margin-bottom:14px; }
html.ddbz--modal-open{ overflow:hidden; }

/* Access modal (Mes co-abonnements) */
.ddbz-btn--sm{ padding:8px 10px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-weight:900; cursor:pointer; margin-top:8px; width:100%; }
@media(min-width:760px){ .ddbz-btn--sm{ width:auto; } }

.ddbz-modal__backdrop{ position:absolute; inset:0; background:rgba(2,6,23,.55); }
.ddbz-modal__card{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(92vw,520px); border-radius:22px; border:1px solid var(--line); background:var(--card); color:var(--text); padding:16px; }
.ddbz-modal__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ddbz-modal__close{ width:40px; height:40px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-size:22px; font-weight:900; cursor:pointer; }
.ddbz-access-kv{ display:grid; gap:10px; margin-top:12px; }
.ddbz-access-kv .row{ border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:12px; }
.ddbz-access-kv .k{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:900; }
.ddbz-access-kv .v{ margin-top:6px; font-weight:900; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ddbz-access-kv .reveal{ border:1px solid var(--line); background:var(--card); border-radius:999px; padding:8px 10px; font-weight:900; cursor:pointer; }
