/* =========================================================================
   Générateurs de documents d'association (bulletin d'adhésion, droit à
   l'image). Habillage propre à ces outils : blanc froid, encre ardoise,
   marine Sostenutoo en couleur d'action. Volontairement distinct du crème
   des outils plus anciens (balance.css, sacem.css).
   ========================================================================= */

:root {
  color-scheme: light;
  --dc-bg: #F5F7FA;
  --dc-surface: #FFFFFF;
  --dc-ink: #0F172A;
  --dc-ink-2: #334155;
  --dc-muted: #64748B;
  --dc-faint: #94A3B8;
  --dc-line: #E2E8F0;
  --dc-line-2: #CBD5E1;
  --dc-primary: #2F4A8A;
  --dc-primary-hover: #243B71;
  --dc-primary-soft: #EEF2FA;
  --dc-primary-ring: rgba(47, 74, 138, .28);
  --dc-ok: #15803D;
  --dc-ok-soft: #ECFDF3;
  --dc-err: #B91C1C;
  --dc-radius: 16px;
  --dc-radius-sm: 10px;
  --dc-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --dc-shadow-paper: 0 1px 3px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .10);
  --dc-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dc-ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.dc-body {
  margin: 0;
  background: var(--dc-bg);
  color: var(--dc-ink);
  font-family: var(--dc-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.dc-body a { color: var(--dc-primary); }
.dc-body [hidden] { display: none !important; }
.dc-body svg.lucide { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.dc-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
}
.dc-logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--dc-ink) !important; text-decoration: none; }
.dc-header-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; background: var(--dc-surface);
  border: 1px solid var(--dc-line); color: var(--dc-ink-2) !important;
  transition: border-color .2s var(--dc-ease), color .2s var(--dc-ease);
}
.dc-header-link:hover { border-color: var(--dc-line-2); color: var(--dc-ink) !important; }

.dc-page { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Hero ---------- */
.dc-hero { max-width: 780px; padding: 28px 0 28px; }
.dc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--dc-primary);
  background: var(--dc-primary-soft); padding: 6px 12px; border-radius: 999px;
}
.dc-eyebrow svg.lucide { width: 15px; height: 15px; }
.dc-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -.03em;
  font-weight: 800; margin: 16px 0 12px;
}
.dc-hero p { font-size: 17px; color: var(--dc-ink-2); margin: 0; max-width: 680px; }

.dc-steps {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 20px 0 0; padding: 0; font-size: 14px; color: var(--dc-muted); font-weight: 500;
}
.dc-steps li { display: flex; align-items: center; gap: 8px; }
.dc-steps b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--dc-surface); border: 1px solid var(--dc-line-2); color: var(--dc-ink);
  font-size: 12px; font-weight: 700;
}

/* ---------- Outil : formulaire + aperçu ---------- */
.dc-tool {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 28px; align-items: start;
}

.dc-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.dc-card {
  background: var(--dc-surface); border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius); box-shadow: var(--dc-shadow);
  padding: 22px 22px 24px;
}
.dc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dc-card-num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 10px; background: var(--dc-primary); color: #fff;
  font-weight: 700; font-size: 14px;
}
.dc-card-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.dc-card-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--dc-muted); }

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.dc-grid .span-2 { grid-column: 1 / -1; }
.dc-grid-3 { grid-template-columns: 110px 1fr; }

.dc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-field > label, .dc-label {
  font-size: 14px; font-weight: 600; color: var(--dc-ink);
}
.dc-field .opt { font-weight: 500; color: var(--dc-faint); }
.dc-help { font-size: 13px; color: var(--dc-muted); margin: 0; }

.dc-input, .dc-select {
  width: 100%; font: inherit; font-size: 16px; color: var(--dc-ink);
  background: var(--dc-surface); border: 1px solid var(--dc-line-2);
  border-radius: var(--dc-radius-sm); padding: 11px 13px; min-height: 46px;
  transition: border-color .15s var(--dc-ease), box-shadow .15s var(--dc-ease);
}
.dc-input::placeholder { color: var(--dc-faint); }
.dc-input:hover, .dc-select:hover { border-color: var(--dc-faint); }
.dc-input:focus, .dc-select:focus {
  outline: none; border-color: var(--dc-primary); box-shadow: 0 0 0 4px var(--dc-primary-ring);
}
.dc-input[aria-invalid="true"] { border-color: var(--dc-err); }
.dc-err { font-size: 13px; color: var(--dc-err); min-height: 0; margin: 0; }
.dc-err:empty { display: none; }

/* Logo */
.dc-logo-pick {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--dc-line-2); border-radius: var(--dc-radius-sm);
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.dc-logo-pick:hover { border-color: var(--dc-primary); background: var(--dc-primary-soft); }
.dc-logo-pick:focus-within { border-color: var(--dc-primary); box-shadow: 0 0 0 4px var(--dc-primary-ring); }
.dc-logo-thumb {
  width: 48px; height: 48px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--dc-bg); color: var(--dc-muted);
  overflow: hidden;
}
.dc-logo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dc-logo-txt { font-size: 14px; font-weight: 600; color: var(--dc-ink); }
.dc-logo-txt small { display: block; font-weight: 500; color: var(--dc-muted); font-size: 13px; }
.dc-logo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-logo-remove {
  margin-left: auto; border: 0; background: none; color: var(--dc-muted); cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
}
.dc-logo-remove:hover { background: var(--dc-bg); color: var(--dc-err); }

/* Puces (cases à cocher habillées) */
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip { position: relative; }
.dc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dc-chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--dc-line-2); background: var(--dc-surface); color: var(--dc-ink-2);
  transition: all .15s var(--dc-ease); cursor: pointer; user-select: none;
}
.dc-chip span::before {
  content: ''; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--dc-faint);
  transition: all .15s var(--dc-ease);
}
.dc-chip input:checked + span { border-color: var(--dc-primary); background: var(--dc-primary-soft); color: var(--dc-primary); }
.dc-chip input:checked + span::before {
  border-color: var(--dc-primary); background: var(--dc-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.dc-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--dc-primary-ring); }

/* Segmenté (radio) */
.dc-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  background: var(--dc-bg); border: 1px solid var(--dc-line); border-radius: 12px; padding: 4px;
}
.dc-seg label { position: relative; }
.dc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dc-seg span {
  display: grid; place-items: center; text-align: center; min-height: 40px; padding: 6px 10px;
  border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--dc-muted); cursor: pointer;
  transition: all .15s var(--dc-ease); line-height: 1.25;
}
.dc-seg input:checked + span { background: var(--dc-surface); color: var(--dc-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.dc-seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--dc-primary-ring); }

/* Interrupteurs */
.dc-toggles { display: flex; flex-direction: column; }
.dc-toggle {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer;
  border-top: 1px solid var(--dc-line);
}
.dc-toggle:first-child { border-top: 0; padding-top: 2px; }
.dc-toggle-txt { flex: 1; min-width: 0; }
.dc-toggle-txt b { display: block; font-size: 14.5px; font-weight: 600; }
.dc-toggle-txt small { display: block; font-size: 13px; color: var(--dc-muted); line-height: 1.45; }
.dc-switch { position: relative; flex: none; width: 44px; height: 26px; }
.dc-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dc-switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--dc-line-2);
  transition: background .2s var(--dc-ease); pointer-events: none;
}
.dc-switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .2s var(--dc-ease);
}
.dc-switch input:checked + i { background: var(--dc-primary); }
.dc-switch input:checked + i::after { transform: translateX(18px); }
.dc-switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--dc-primary-ring); }

/* Liste de tarifs */
.dc-rows { display: flex; flex-direction: column; gap: 8px; }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 40px; gap: 8px; align-items: center; }
.dc-money { position: relative; }
.dc-money .dc-input { padding-right: 30px; text-align: right; }
.dc-money::after { content: '€'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--dc-muted); font-weight: 600; pointer-events: none; }
.dc-icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--dc-faint); display: grid; place-items: center;
}
.dc-icon-btn:hover { background: var(--dc-bg); color: var(--dc-err); }
.dc-add {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--dc-primary); font: inherit; font-size: 14px; font-weight: 700;
  padding: 8px 4px; cursor: pointer; border-radius: 8px;
}
.dc-add:hover { text-decoration: underline; }

.dc-sub { margin-top: 18px; }
.dc-sub > .dc-label { display: block; margin-bottom: 8px; }

/* ---------- Aperçu ---------- */
.dc-preview { position: sticky; top: 16px; min-width: 0; }
.dc-preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; font-size: 13.5px; color: var(--dc-muted); font-weight: 600;
}
.dc-preview-bar .live { display: inline-flex; align-items: center; gap: 8px; }
.dc-preview-bar .live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.dc-pages { display: flex; flex-direction: column; gap: 16px; }
.dc-sheet { background: #fff; border-radius: 4px; box-shadow: var(--dc-shadow-paper); overflow: hidden; }
.dc-sheet svg { display: block; width: 100%; height: auto; }
.dc-preview-wait {
  margin: 0; aspect-ratio: 595 / 842; display: grid; place-items: center; background: #fff;
  border-radius: 4px; box-shadow: var(--dc-shadow-paper); color: var(--dc-muted); font-size: 14px;
}

.dc-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 700; border-radius: 12px; border: 0;
  min-height: 52px; padding: 12px 22px; cursor: pointer; text-decoration: none;
  transition: background .2s var(--dc-ease), transform .1s var(--dc-ease), box-shadow .2s;
}
.dc-btn:active { transform: scale(.98); }
.dc-btn.primary { background: var(--dc-primary); color: #fff !important; box-shadow: 0 6px 18px rgba(47, 74, 138, .25); }
.dc-btn.primary:hover { background: var(--dc-primary-hover); }
.dc-btn.ghost { background: var(--dc-surface); color: var(--dc-ink) !important; border: 1px solid var(--dc-line-2); }
.dc-btn.ghost:hover { border-color: var(--dc-faint); }
.dc-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--dc-primary-ring); }
.dc-btn[disabled] { opacity: .65; cursor: progress; }
.dc-btn.block { width: 100%; }
.dc-reassure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--dc-muted); margin: 0; text-align: center; }
.dc-reassure svg.lucide { width: 15px; height: 15px; }

/* Barre collante mobile */
.dc-mobilebar { display: none; }

/* ---------- Modale ---------- */
.dc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45);
  display: grid; place-items: center; padding: 16px;
  animation: dc-fade .2s var(--dc-ease);
}
.dc-modal {
  position: relative; width: 100%; max-width: 440px; background: var(--dc-surface);
  border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
  animation: dc-pop .28s var(--dc-ease);
}
.dc-modal-x {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: none; cursor: pointer; color: var(--dc-muted); display: grid; place-items: center;
}
.dc-modal-x:hover { background: var(--dc-bg); color: var(--dc-ink); }
.dc-modal-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--dc-primary-soft); color: var(--dc-primary); margin-bottom: 14px;
}
.dc-modal-ico.ok { background: var(--dc-ok-soft); color: var(--dc-ok); }
.dc-modal-ico svg.lucide { width: 24px; height: 24px; }
.dc-modal h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.dc-modal-sub { margin: 0 0 18px; color: var(--dc-ink-2); font-size: 15px; }
.dc-modal form { display: flex; flex-direction: column; gap: 10px; }
.dc-modal-notice { font-size: 12.5px; color: var(--dc-muted); margin: 4px 0 0; text-align: center; }
.dc-modal-link {
  display: block; margin: 12px auto 0; border: 0; background: none; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--dc-muted); cursor: pointer; padding: 8px;
}
.dc-modal-link:hover { color: var(--dc-ink); }
.dc-upsell { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dc-line); }
.dc-upsell p { font-size: 14px; color: var(--dc-ink-2); margin: 0 0 12px; }

@keyframes dc-fade { from { opacity: 0; } }
@keyframes dc-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.dc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--dc-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .25s var(--dc-ease); pointer-events: none; z-index: 1001;
}
.dc-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Contenu éditorial ---------- */
.dc-prose { max-width: 760px; margin: 72px auto 0; font-size: 16.5px; color: var(--dc-ink-2); }
.dc-prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; color: var(--dc-ink); margin: 48px 0 14px; }
.dc-prose h2:first-child { margin-top: 0; }
.dc-prose h3 { font-size: 18px; color: var(--dc-ink); margin: 28px 0 8px; }
.dc-prose p, .dc-prose ul, .dc-prose ol { margin: 0 0 16px; }
.dc-prose li { margin-bottom: 8px; }
.dc-prose strong { color: var(--dc-ink); }

.dc-faq { display: flex; flex-direction: column; gap: 10px; }
.dc-faq details {
  background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 14px; padding: 0 18px;
}
.dc-faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; color: var(--dc-ink);
  position: relative; font-size: 16px;
}
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--dc-muted); border-bottom: 2px solid var(--dc-muted); transform: rotate(45deg);
  transition: transform .2s var(--dc-ease);
}
.dc-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.dc-faq details p { margin: 0 0 16px; }

.dc-cta {
  max-width: 760px; margin: 56px auto 0; background: var(--dc-ink); color: #E2E8F0;
  border-radius: 22px; padding: 32px 28px;
}
.dc-cta h3 { color: #fff; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.dc-cta p { margin: 0 0 20px; font-size: 15.5px; }
.dc-cta .dc-btn.primary { background: #fff; color: var(--dc-ink) !important; box-shadow: none; }
.dc-cta .dc-btn.primary:hover { background: #E2E8F0; }

.dc-related { max-width: 760px; margin: 40px auto 0; }
.dc-related h3 { font-size: 15px; color: var(--dc-muted); font-weight: 700; margin: 0 0 12px; }
.dc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dc-links a {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--dc-surface); border: 1px solid var(--dc-line); text-decoration: none;
  color: var(--dc-ink) !important; font-weight: 600; font-size: 14.5px;
  transition: border-color .2s var(--dc-ease);
}
.dc-links a:hover { border-color: var(--dc-primary); }
.dc-links a svg.lucide { color: var(--dc-primary); }

.dc-cross {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
  padding: 14px 16px; border-radius: 14px; background: var(--dc-primary-soft);
  color: var(--dc-ink) !important; text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.dc-cross svg.lucide:last-child { margin-left: auto; color: var(--dc-primary); }
.dc-cross:hover { text-decoration: underline; }

.dc-print-block { display: none; }

/* ---------- Ouvert depuis l'application (?source=app) ----------
   La page devient un éditeur de document de l'ensemble : ni présentation
   de l'outil, ni appels à créer un compte. L'outil reste masqué tant que
   doc-app.js n'a pas vérifié la session et chargé le document. */
html[data-sto-app] .dc-hero,
html[data-sto-app] .dc-prose,
html[data-sto-app] .dc-cta,
html[data-sto-app] .dc-related,
html[data-sto-app] .dc-cross,
html[data-sto-app] .dc-header-link,
html[data-sto-app] .dc-upsell { display: none !important; }
html[data-sto-app]:not([data-sto-ready]) .dc-tool,
html[data-sto-app]:not([data-sto-ready]) .dc-mobilebar { display: none !important; }
html[data-sto-app] .dc-page { padding-top: 4px; }

.dc-appbar { justify-content: flex-start; gap: 14px; }
.dc-back {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 9px 14px 9px 11px; border-radius: 999px; background: var(--dc-surface);
  border: 1px solid var(--dc-line); color: var(--dc-ink-2) !important;
  transition: border-color .2s var(--dc-ease), color .2s var(--dc-ease);
}
.dc-back:hover { border-color: var(--dc-line-2); color: var(--dc-ink) !important; }
.dc-back:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--dc-primary-ring); }
.dc-appbar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dc-appbar-title small, .dc-appbar-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-appbar-title small { font-size: 12.5px; font-weight: 600; color: var(--dc-muted); }
.dc-appbar-title strong { font-size: 17px; letter-spacing: -.01em; color: var(--dc-ink); }

.dc-gate {
  max-width: 460px; margin: 40px auto; text-align: center; background: var(--dc-surface);
  border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: 32px 24px;
  box-shadow: var(--dc-shadow); display: flex; flex-direction: column; gap: 10px;
}
.dc-gate h2 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
.dc-gate p { margin: 0 0 10px; color: var(--dc-ink-2); font-size: 15px; }
.dc-gate-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 4px;
  background: var(--dc-primary-soft); color: var(--dc-primary);
}
.dc-gate-ico svg.lucide { width: 24px; height: 24px; }
.dc-spin {
  width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%;
  border: 3px solid var(--dc-line); border-top-color: var(--dc-primary);
  animation: dc-turn .8s linear infinite;
}
@keyframes dc-turn { to { transform: rotate(360deg); } }

.dc-vis { border: 0; margin: 0 0 4px; padding: 0; min-width: 0; }
.dc-vis legend { font-size: 13.5px; font-weight: 700; color: var(--dc-ink); padding: 0; margin: 0 0 8px; }
.dc-actions .dc-reassure { justify-content: flex-start; text-align: left; align-items: flex-start; }
.dc-actions .dc-reassure svg.lucide { margin-top: 2px; }

/* Page publique, abonné connecté : on lui propose de ranger le document. */
html[data-sto-client] .dc-cta,
html[data-sto-client] .dc-upsell { display: none !important; }
.dc-client {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; margin: 0 0 20px;
  padding: 16px 18px; border-radius: var(--dc-radius); background: var(--dc-surface);
  border: 1px solid var(--dc-primary); box-shadow: var(--dc-shadow);
  animation: dc-fade .3s var(--dc-ease);
}
.dc-client-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--dc-primary-soft); color: var(--dc-primary);
}
.dc-client-txt { flex: 1 1 280px; min-width: 0; }
.dc-client-txt strong { display: block; font-size: 15.5px; color: var(--dc-ink); }
.dc-client-txt span { display: block; font-size: 14px; color: var(--dc-ink-2); }
.dc-client-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dc-client-go select { width: auto; min-width: 180px; }
.dc-client-go .dc-btn { min-height: 46px; font-size: 15px; padding: 10px 18px; }

/* ---------- Réactif ---------- */
@media (max-width: 1000px) {
  .dc-tool { grid-template-columns: 1fr; }
  .dc-preview { position: static; }
  .dc-mobilebar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--dc-line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(0); transition: transform .25s var(--dc-ease);
  }
  .dc-mobilebar.hide { transform: translateY(110%); }
  .dc-mobilebar .dc-btn { flex: 1; min-height: 48px; font-size: 15px; padding: 10px 14px; }
  body.dc-body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .dc-header { padding: 14px 16px; }
  .dc-page { padding: 0 16px 48px; }
  .dc-card { padding: 18px 16px 20px; }
  .dc-grid { grid-template-columns: 1fr; }
  .dc-grid-3 { grid-template-columns: 96px 1fr; }
  .dc-row { grid-template-columns: minmax(0, 1fr) 100px 40px; }
  .dc-header-link span { display: none; }
  .dc-seg { grid-auto-flow: row; }
  .dc-client-go, .dc-client-go .dc-btn, .dc-client-go select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* L'impression de la page n'imprime pas l'aperçu : le document se reçoit en
   PDF, propre et à la bonne échelle. */
@media print {
  body.dc-body > *:not(.dc-print-block) { display: none !important; }
  .dc-print-block { display: block !important; text-align: center; padding: 48px 24px; font-family: var(--dc-font); }
  .dc-print-block strong { display: block; font-size: 20px; margin-bottom: 14px; }
  .dc-print-block p { max-width: 420px; margin: 0 auto; font-size: 13px; line-height: 1.6; color: #475569; }
}
