/* ============================================================================
 * digital.css : blocs ajoutés à /digital/ (refonte prompt 3).
 * Identité conservée : violet de la page (#7c3aed), cartes à bordure fine, fond clair.
 * Aucun dégradé, aucune ombre décorative, aucune barre latérale colorée.
 * ========================================================================== */

/* ── Hero : ligne de réassurance sous le CTA ── */
.hero-note { margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* ── Offres : trois cartes (prix du site, mensualité, contenu) ── */
.dg-offers { padding: 80px 0 24px; background: #fff; }
.dg-offers .section-header > p { margin: 1rem auto 0; color: var(--text-light, #6b7280); }
.dg-plans { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 2.5rem; align-items: stretch; }
.dg-plan {
  display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem;
  background: #fff; border: 1.5px solid var(--border-color, #e5e7eb); border-radius: 18px;
  color: var(--text-dark, #1f2937);
}
.dg-plan--phare { background: #1e1b4b; border-color: #1e1b4b; color: #fff; }
.dg-plan-eyebrow { margin: 0 0 .9rem; font-size: .78rem; font-weight: 600; color: var(--text-light, #6b7280); }
.dg-plan h3 { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.dg-plan-desc { margin: 0 0 1.5rem; font-size: .92rem; line-height: 1.6; color: var(--text-light, #6b7280); min-height: 3.1em; }
.dg-plan-price { margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.dg-plan-amount { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.dg-plan-sub { font-size: .85rem; color: var(--text-light, #6b7280); }
.dg-plan-monthly { margin: 1rem 0 1.5rem; padding: 1rem 0; border-top: 1px solid var(--border-color, #e5e7eb); border-bottom: 1px solid var(--border-color, #e5e7eb); }
.dg-plan-monthly p { margin: 0 0 .3rem; font-size: .95rem; line-height: 1.5; }
.dg-plan-monthly strong { font-weight: 800; }
.dg-plan-total { margin: .6rem 0 0 !important; font-size: .8rem !important; color: var(--text-light, #6b7280); }
.dg-plan h4 { margin: 0 0 .8rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-light, #6b7280); }
.dg-plan-list { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: .7rem; flex: 1; }
.dg-plan-list li { position: relative; padding-left: 1.75rem; font-size: .92rem; line-height: 1.5; }
.dg-plan-list li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; background: #7c3aed;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dg-plan-cta { width: 100%; text-align: center; }
/* la landing page, dans son coin : carte plus légère, alignée en haut */
.dg-plan--corner { align-self: start; background: var(--bg-light, #f9fafb); }
/* offre phare, sur fond sombre */
.dg-plan--phare .dg-plan-eyebrow, .dg-plan--phare .dg-plan-desc, .dg-plan--phare .dg-plan-sub, .dg-plan--phare .dg-plan h4, .dg-plan--phare h4, .dg-plan--phare .dg-plan-total { color: rgba(255, 255, 255, .68); }
.dg-plan--phare .dg-plan-monthly { border-color: rgba(255, 255, 255, .18); }
.dg-plan--phare .dg-plan-list li::before { background: #c4b5fd; }
.dg-note { margin: 1rem auto 0; max-width: 760px; font-size: .82rem; color: var(--text-light, #6b7280); text-align: center; line-height: 1.6; }

/* Boutons contour sur fond clair (le .btn-secondary du site est conçu pour le hero sombre) */
.dg-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none;
  background: #fff; color: #5b21b6; border: 1.5px solid #7c3aed;
}
.dg-btn-outline:hover { background: #f5f3ff; }

/* ── Garantie LATRACTION ── */
.dg-guarantee {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.75rem auto 0;
  max-width: 880px;
  padding: 1.75rem 2rem;
  background: #f8f7fc;               /* fond neutre très légèrement teinté de violet */
  border: 1px solid #e4e0f2;          /* bordure pleine, jamais latérale */
  border-radius: 16px;
}
.dg-guarantee-icon { flex: 0 0 auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid #e4e0f2; color: #6d28d9; }
.dg-guarantee h3 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; color: var(--text-dark, #1f2937); }
.dg-guarantee-lead { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.6; color: var(--text-dark, #1f2937); font-weight: 600; }
.dg-guarantee ul { margin: 0; padding: 0 0 0 1.15rem; display: grid; gap: .45rem; }
.dg-guarantee li { font-size: .92rem; line-height: 1.6; color: #374151; }
.dg-guarantee li[hidden] { display: none; }
.dg-guarantee-more { margin: .9rem 0 0; font-size: .88rem; }
.dg-guarantee-more a { color: #5b21b6; font-weight: 600; }

/* ── Études de cas ── */
.dg-cases { padding: 80px 0; background: #fff; }
.dg-cases .section-header > p { margin-top: 1rem; }
.dg-case-list { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.dg-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light, #f9fafb);
  border: 1.5px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
}
.dg-case-shots { display: flex; gap: 1rem; align-items: flex-end; min-width: 0; }
.dg-shot { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; }
.dg-shot img { display: block; width: 100%; height: auto; }
.dg-shot--desktop { flex: 1 1 0; min-width: 0; }
.dg-shot--mobile { flex: 0 0 25%; max-width: 150px; border-radius: 14px; }
.dg-case-body { min-width: 0; }
.dg-case-body h3 { margin: .1rem 0 .9rem; font-size: 1.35rem; font-weight: 800; color: var(--text-dark, #1f2937); }
.dg-facts { margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.dg-facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; font-size: .92rem; line-height: 1.55; }
.dg-facts > div[hidden] { display: none; }
.dg-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light, #6b7280); padding-top: .2rem; }
.dg-facts dd { margin: 0; color: #374151; }
.dg-case-link { display: inline-flex; align-items: center; min-height: 44px; color: #5b21b6; font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.dg-cases-cta { margin: 2rem 0 0; text-align: center; color: var(--text-light, #6b7280); font-size: .95rem; }
.dg-cases-cta a { color: #5b21b6; font-weight: 600; }

/* ── Carte Muse (remplace l'ancien gros bloc) ── */
.dg-muse { padding: 40px 0 56px; background: #fff; }
.dg-muse-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto; padding: 1.5rem 1.75rem;
  background: #fff; border: 1.5px solid var(--border-color, #e5e7eb); border-radius: 16px;
}
.dg-muse-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 800; color: var(--text-dark, #1f2937); }
.dg-muse-card p { margin: 0; font-size: .92rem; color: var(--text-light, #6b7280); line-height: 1.6; max-width: 52ch; }

/* ── Formulaire de commande : lignes côte à côte sur desktop ── */
.dg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dg-form-row .form-group { margin-bottom: 0; }
.contact-form .dg-form-row { margin-bottom: 1.25rem; }
.dg-opt { font-weight: 400; color: var(--text-light, #6b7280); }

/* ── Barre fixe mobile ── */
.dg-mbar { display: none; }

/* ── Tablette / mobile ── */
@media (max-width: 900px) {
  .dg-case { grid-template-columns: 1fr; gap: 1.25rem; }
  .dg-offers { padding-top: 56px; }
  .dg-plans { grid-template-columns: 1fr; }
  .dg-plan-desc { min-height: 0; }
  .dg-guarantee { padding: 1.25rem; gap: 1rem; }
}
@media (max-width: 768px) {
  .dg-form-row { grid-template-columns: 1fr; gap: 0; }
  .dg-form-row .form-group { margin-bottom: 1.25rem; }
  .dg-facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .dg-guarantee { flex-direction: column; }
  .dg-muse-card .dg-btn-outline { width: 100%; }
  .dg-mbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border-color, #e5e7eb);
  }
  .dg-mbar a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; }
  .dg-mbar.is-off { display: none; }
  body.d-page { padding-bottom: 72px; }
  /* le bouton WhatsApp flottant ferait doublon avec la barre */
  body.d-page .wa-float { display: none !important; }
}

/* ── Mensualité en détail ── */
.dg-abo { margin-top: 3rem; }
.dg-abo > h3 { margin: 0 0 1.25rem; font-size: 1.3rem; font-weight: 800; text-align: center; color: var(--text-dark, #1f2937); }
.dg-abo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.dg-abo-card { padding: 1.5rem; background: var(--bg-light, #f9fafb); border: 1px solid var(--border-color, #e5e7eb); border-radius: 14px; }
.dg-abo-card h4 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 800; color: var(--text-dark, #1f2937); }
.dg-abo-card ul { margin: 0; padding: 0 0 0 1.1rem; display: grid; gap: .45rem; }
.dg-abo-card li { font-size: .9rem; line-height: 1.55; color: #374151; }
.dg-abo-sub { margin: .75rem 0 0; font-size: .8rem; color: var(--text-light, #6b7280); }
.dg-abo-more { max-width: 880px; margin: 1.5rem auto 0; font-size: .92rem; line-height: 1.7; color: #374151; text-align: center; }
.bestseller-abo { margin-top: .35rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
