/*
 * DIGITALISE 1.0 (page-digitalise.php). S'appuie sur assets/site.css
 * (couleurs, police, boutons, sections) et n'ajoute que ce qui est propre à la page.
 * Conçu d'abord pour le téléphone.
 */

.dg {
  --dg-violet: #8134F5;
  --dg-violet-deep: #5922B8;
  --dg-lavender: #F8E4FF;
  --dg-ink: #17101D;
  --dg-muted: #625369;
  --dg-line: #ebe2f6;
  color: var(--dg-ink);
}
.dg h1, .dg h2 { color: var(--dg-ink); }
.dg h2 { font-size: clamp(1.75rem, 5.2vw, 2.7rem); }
.dg .section-sub, .dg p { color: var(--dg-muted); }
.dg .accent { color: var(--dg-violet); }
.dg .btn { min-height: 48px; justify-content: center; text-align: center; }
.btn-outline { background: var(--white); color: var(--purple-dark); border: 1.5px solid var(--purple-bright); }
.btn-outline:hover { border-color: var(--purple); background: var(--purple-light); }
.dg-center { text-align: center; margin-top: 40px; }
.dg-center-head { margin-left: auto; margin-right: auto; text-align: center; }
.dg svg { flex: none; }

/* ── En-tête ── */
.dg-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.dg-header.scrolled { border-color: var(--dg-line); }
.admin-bar .dg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .dg-header { top: 0; } }
.dg-nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.dg-nav .brand { margin-right: auto; }
.dg-nav .logo { height: 24px; width: auto; }
.dg-links { display: none; gap: 28px; }
.dg-links a { text-decoration: none; color: var(--grey-dark); font-weight: 500; font-size: .96rem; }
.dg-links a:hover { color: var(--purple); }

/* ── Hero ── */
.dg-hero {
  background:
    radial-gradient(700px 420px at 90% 10%, rgba(195, 175, 255, .55), transparent 62%),
    radial-gradient(520px 380px at 0% 100%, rgba(129, 52, 245, .10), transparent 60%),
    linear-gradient(180deg, var(--purple-light) 0%, var(--white) 100%);
  padding: 40px 0 56px; overflow: hidden;
}
.dg-hero-grid { display: grid; gap: 32px; align-items: center; }
.dg-label {
  display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--dg-line);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dg-violet-deep);
}
.dg-hero h1 { font-size: clamp(2.2rem, 8vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; }
.dg-hero h1 .accent { display: block; }
.dg-lead { font-size: 1.12rem; margin: 20px 0 0; color: var(--grey-dark); }
.dg-lead-2 { margin: 12px 0 0; }
.dg-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.dg-reassure { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .95rem; font-weight: 500; color: var(--dg-violet-deep); }
.dg-hero-visual img { width: 100%; height: auto; max-width: 560px; margin: 0 auto; }

/* Composition provisoire, en attendant les illustrations 3D fournies */
.dg-clay { position: relative; width: min(100%, 420px); aspect-ratio: 1.1; margin: 0 auto; }
.dg-clay-step {
  position: absolute; bottom: 12%; border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #ece0ff 100%);
  box-shadow: 0 30px 50px -20px rgba(89, 34, 184, .45), inset 0 -10px 18px rgba(129, 52, 245, .12);
}
.dg-clay-step.s1 { left: 6%; width: 26%; height: 26%; }
.dg-clay-step.s2 { left: 37%; width: 26%; height: 46%; background: linear-gradient(160deg, #d9c4ff 0%, #b293ff 100%); }
.dg-clay-step.s3 { left: 68%; width: 26%; height: 66%; background: linear-gradient(160deg, var(--dg-violet) 0%, var(--dg-violet-deep) 100%); }
.dg-clay-flag {
  position: absolute; left: 70%; bottom: 80%; width: 22%; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); border-radius: 18px; box-shadow: 0 18px 30px -12px rgba(89, 34, 184, .45);
  animation: dg-float 5s ease-in-out infinite;
}
.dg-clay-flag img { width: 58%; height: auto; }
.dg-clay-dot { position: absolute; border-radius: 50%; background: var(--dg-lavender); }
.dg-clay-dot.d1 { width: 14%; aspect-ratio: 1; left: 14%; top: 18%; animation: dg-float 6s ease-in-out infinite reverse; }
.dg-clay-dot.d2 { width: 8%; aspect-ratio: 1; left: 44%; top: 26%; background: #e4d4ff; animation: dg-float 7s ease-in-out infinite; }
@keyframes dg-float { 50% { transform: translateY(-8px); } }

/* ── Cartes ── */
.dg-grid-3, .dg-grid-4 { display: grid; gap: 16px; }
.dg-card {
  background: var(--white); border: 1px solid var(--dg-line); border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.dg-card h3, .dg-pillar h3 { font-size: 1.15rem; margin: 16px 0 8px; color: var(--dg-ink); }
.dg-card p, .dg-pillar p { margin: 0; font-size: 1rem; }
.dg-card-top { display: flex; align-items: center; justify-content: space-between; }
.dg-num { font-weight: 700; font-size: .9rem; color: var(--purple-bright); letter-spacing: .05em; }
.dg-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--purple-light); color: var(--dg-violet);
}
.dg-icon-lg { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(160deg, var(--dg-violet), var(--dg-violet-deep)); color: var(--white); }
.dg-pillar { text-align: left; padding: 8px 4px; }

/* ── Avant / après ── */
.dg-compare { display: grid; gap: 16px; align-items: stretch; }
.dg-before, .dg-after { border-radius: var(--radius); padding: 26px; }
.dg-before { background: var(--white); border: 1.5px dashed #d8cbe9; }
.dg-after { background: linear-gradient(160deg, var(--dg-violet) 0%, var(--dg-violet-deep) 100%); color: var(--white); box-shadow: var(--shadow); }
.dg-compare-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; font-size: 1.1rem; color: var(--dg-ink); }
.dg-after .dg-compare-title { color: var(--white); }
.dg-before .dg-compare-title svg { color: #b6a2cc; }
.dg-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dg-compare li { padding-left: 22px; position: relative; }
.dg-before li { color: var(--dg-muted); text-decoration: line-through; text-decoration-color: rgba(98, 83, 105, .35); }
.dg-after li { color: var(--white); font-weight: 500; }
.dg-compare li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #d3c5e4; }
.dg-after li::before { background: var(--purple-bright); }
.dg-arrow { display: grid; place-items: center; color: var(--dg-violet); transform: rotate(90deg); }

/* ── Offres ── */
.dg-offers { display: grid; gap: 18px; }
.dg-offer {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--dg-line); border-radius: 22px; padding: 28px 24px;
}
.dg-offer h3 { font-size: 1.4rem; color: var(--dg-ink); }
.dg-offer p { margin: 0; }
.dg-offer .btn { margin-top: auto; }
.dg-offer-num { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dg-violet) !important; }
.dg-offer-tag { font-weight: 600; color: var(--dg-violet-deep) !important; }
.dg-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; font-size: .98rem; }
.dg-list li { position: relative; padding-left: 26px; color: var(--grey-dark); }
.dg-list li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D3CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.dg-offer-main {
  background: linear-gradient(165deg, #2a0f5c 0%, var(--dg-violet-deep) 55%, var(--dg-violet) 100%);
  border: 0; box-shadow: 0 30px 60px -24px rgba(89, 34, 184, .7);
}
.dg-offer-main h3, .dg-offer-main p, .dg-offer-main .dg-list li { color: var(--white) !important; }
.dg-offer-main .dg-offer-num, .dg-offer-main .dg-offer-tag { color: var(--purple-bright) !important; }
.dg-offer-main .dg-list li::before { background-color: rgba(255, 255, 255, .16); background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.dg-offer-main .dg-offer-badge {
  position: absolute; top: -13px; left: 24px; padding: 5px 14px; border-radius: 999px;
  background: var(--white); color: var(--dg-violet-deep) !important; font-size: .78rem; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(89, 34, 184, .6);
}
.dg-example { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.dg-note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; margin: 28px 0 0; font-size: .95rem; text-align: left; }
.dg-note svg { color: var(--dg-violet); margin-top: 2px; }

/* ── Méthode ── */
.dg-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.dg-timeline li { position: relative; padding: 0 0 28px 64px; }
.dg-timeline li::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--purple-bright); opacity: .6; }
.dg-timeline li:last-child { padding-bottom: 0; }
.dg-timeline li:last-child::before { display: none; }
.dg-step-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--dg-violet); color: var(--dg-violet); font-weight: 700; font-size: .95rem;
}
.dg-timeline h3 { font-size: 1.15rem; padding-top: 9px; }
.dg-timeline p { margin: 6px 0 0; }

/* ── Diagnostic ── */
.dg-diag-section { background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%); scroll-margin-top: 64px; }
.dg-diag-wrap { max-width: 820px; }
.dg-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.dg-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--dg-line); font-size: .9rem; font-weight: 500; color: var(--dg-violet-deep);
}
.dg-chips svg { width: 16px; height: 16px; }
.dg-panel {
  background: var(--white); border-radius: 24px; padding: 22px; border: 1px solid var(--dg-line);
  box-shadow: 0 30px 70px -40px rgba(65, 18, 140, .5); min-height: 260px;
}
.dg-panel h3 { font-size: clamp(1.3rem, 4.4vw, 1.7rem); line-height: 1.2; color: var(--dg-ink); }
.dg-intro { text-align: center; padding: 18px 4px; }
.dg-intro p { margin: 10px auto 22px; max-width: 32rem; }
.dg-selected-offer {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px;
  background: var(--purple-light); color: var(--dg-violet-deep); font-weight: 600; font-size: .95rem; margin-bottom: 14px;
}

.dg-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dg-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--purple-light); overflow: hidden; }
.dg-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dg-violet), var(--purple-bright)); transition: width .35s ease; }
.dg-progress-text { font-size: .88rem; font-weight: 600; color: var(--dg-violet-deep); white-space: nowrap; }
.dg-hint { margin: 8px 0 0; font-size: .95rem; }
.dg-options { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; border: 0; }
.dg-option {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid var(--dg-line); border-radius: 14px; cursor: pointer; font-weight: 500; color: var(--dg-ink);
  transition: border-color .15s ease, background .15s ease;
}
.dg-option:hover { border-color: var(--purple-bright); }
.dg-option input { position: absolute; opacity: 0; pointer-events: none; }
.dg-option .dg-mark {
  flex: none; width: 22px; height: 22px; border: 2px solid #cdbde3; display: grid; place-items: center; transition: all .15s ease;
}
.dg-option[data-type="single"] .dg-mark { border-radius: 50%; }
.dg-option[data-type="multiple"] .dg-mark { border-radius: 7px; }
.dg-option:has(input:checked) { border-color: var(--dg-violet); background: #faf6ff; }
.dg-option:has(input:checked) .dg-mark { border-color: var(--dg-violet); background: var(--dg-violet); }
.dg-option:has(input:checked) .dg-mark::after { content: ''; width: 10px; height: 6px; border: 2.5px solid var(--white); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.dg-option:has(input:focus-visible) { outline: 3px solid var(--purple-bright); outline-offset: 2px; }
.dg-other { margin-top: 10px; }
.dg-step-error, .dg-form-error { margin: 14px 0 0; color: #b42318 !important; font-weight: 500; font-size: .95rem; }
.dg-step-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 24px; }
.dg-step-actions .btn { flex: 1; }
.dg-step-actions .btn-back { flex: 0 0 auto; background: var(--white); color: var(--grey-dark); border: 1.5px solid var(--dg-line); }
.dg-step { animation: dg-in .25s ease; }
@keyframes dg-in { from { opacity: 0; transform: translateY(8px); } }

/* Résultat */
.dg-result-head { display: grid; gap: 18px; align-items: center; }
.dg-gauge { --p: 0; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--dg-violet) calc(var(--p) * 1%), var(--purple-light) 0); }
.dg-gauge span { width: 92px; height: 92px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: var(--dg-ink); }
.dg-gauge small { display: block; font-size: .78rem; font-weight: 600; color: var(--dg-muted); text-align: center; }
.dg-indicative { font-size: .88rem !important; margin-top: 10px !important; }
.dg-opps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dg-opps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--purple-light); color: var(--dg-ink); font-weight: 500; }
.dg-opps svg { color: var(--dg-violet); margin-top: 2px; width: 20px; height: 20px; }
.dg-reco {
  margin-top: 20px; padding: 22px; border-radius: 18px; color: var(--white);
  background: linear-gradient(160deg, var(--dg-violet-deep) 0%, var(--dg-violet) 100%);
}
.dg-reco p { color: rgba(255, 255, 255, .85) !important; margin: 8px 0 0; }
.dg-reco .dg-reco-label { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-bright) !important; }
.dg-reco h4 { margin: 6px 0 0; font-size: 1.35rem; color: var(--white); }
.dg-result-actions { display: grid; gap: 10px; margin-top: 22px; }
.dg-subtitle { font-weight: 700; color: var(--dg-ink) !important; margin: 22px 0 0; }

/* Formulaire */
.dg-form { display: grid; gap: 14px; margin-top: 18px; }
.dg-field { display: grid; gap: 6px; }
.dg-field label { font-weight: 600; font-size: .95rem; color: var(--dg-ink); }
.dg-field small { color: var(--dg-muted); font-weight: 400; }
.dg-input, .dg-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--dg-ink);
  border: 1.5px solid var(--dg-line); border-radius: 12px; background: var(--white);
}
.dg-form textarea { min-height: 96px; resize: vertical; }
.dg-input:focus, .dg-form textarea:focus { outline: none; border-color: var(--dg-violet); box-shadow: 0 0 0 3px rgba(129, 52, 245, .15); }
.dg-input.invalid { border-color: #d92d20; }
.dg-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--dg-muted); cursor: pointer; }
.dg-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--dg-violet); flex: none; }
.dg-privacy { font-size: .85rem !important; margin: 0; }
.dg-privacy a { color: var(--dg-violet-deep); }
.dg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dg-done { text-align: center; padding: 18px 4px; }
.dg-done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-light); color: var(--dg-violet); }
.dg-done-icon svg { width: 30px; height: 30px; }
.dg-done .dg-cta { align-items: center; }
.btn-whatsapp { background: #1f9d55; color: var(--white); }
.btn-whatsapp:hover { background: #18834a; }

/* ── FAQ ── */
.dg-faq-wrap { max-width: 820px; }
.dg-faq { display: grid; gap: 10px; }
.dg-faq details {
  background: var(--white); border: 1px solid var(--dg-line); border-radius: 16px; padding: 0 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dg-faq details:hover { border-color: #d9c8f3; }
.dg-faq details[open] { border-color: #cdb4f5; box-shadow: 0 18px 40px -28px rgba(89, 34, 184, .45); }
.dg-faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; cursor: pointer; font-weight: 600; color: var(--dg-ink); transition: color .2s ease;
}
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary:focus-visible { outline: 2px solid var(--dg-violet); outline-offset: 4px; border-radius: 8px; }
.dg-faq details[open] summary { color: var(--dg-violet-deep); }
.dg-faq summary span {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--dg-lavender); color: var(--dg-violet); transition: transform .25s ease, background .2s ease, color .2s ease;
}
.dg-faq details[open] summary span { transform: rotate(45deg); background: var(--dg-violet); color: var(--white); }
.dg-faq details p { margin: 0 0 20px; padding-right: 48px; line-height: 1.65; }
/* Ouverture et fermeture en douceur, là où le navigateur le permet. */
@supports selector(::details-content) {
  .dg-faq { interpolate-size: allow-keywords; }
  .dg-faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .dg-faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-faq details::details-content { transition: none; }
}
@media (max-width: 640px) { .dg-faq details p { padding-right: 0; } }

/* ── CTA final ── */
.dg-final {
  background: radial-gradient(600px 400px at 85% 20%, rgba(195, 175, 255, .35), transparent 60%),
    linear-gradient(160deg, #2a0f5c 0%, var(--dg-violet-deep) 50%, var(--dg-violet) 100%);
  color: var(--white); padding: 72px 0; overflow: hidden;
}
.dg-final h2 { color: var(--white); }
.dg-final p { color: rgba(255, 255, 255, .85); margin: 16px 0 0; font-size: 1.1rem; }
.dg-final-grid { display: grid; gap: 32px; align-items: center; }
.dg-final-visual img { max-width: 380px; width: 100%; height: auto; margin: 0 auto; }
.dg-clay-sm { width: min(100%, 300px); }
.dg-final .btn-ghost { border: 1.5px solid rgba(255, 255, 255, .45); }

/* ── Pied de page ── */
.dg-footer { padding: 48px 0 28px; border-top: 1px solid var(--dg-line); }
.dg-footer-grid { display: grid; gap: 24px; }
.dg-footer .logo { height: 24px; width: auto; }
.dg-footer p { margin: 10px 0 0; max-width: 28rem; font-size: .95rem; }
.dg-footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.dg-footer-links a, .dg-link-btn { color: var(--grey-dark); text-decoration: none; font-weight: 500; font-size: .95rem; }
.dg-footer-links a:hover, .dg-link-btn:hover { color: var(--purple); }
.dg-link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ── Optimisation commerciale (novembre 2026) ── */
.btn-lg { min-height: 56px !important; padding: 16px 30px; font-size: 1.05rem; }
.dg-show-sm { display: inline; }
.dg-hide-sm { display: none; }
.dg-micro { margin: 12px 0 0; font-size: .92rem; font-weight: 500; color: var(--dg-violet-deep) !important; }
.dg-assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; }
.dg-assurances li { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--grey-dark); }
.dg-assurances svg { width: 18px; height: 18px; color: var(--dg-violet); }
.dg-cta-center { justify-content: center; }

/* Avant / après en grandes cartes */
.dg-before h3, .dg-after h3 { font-size: 1.3rem; margin: 6px 0 14px; color: var(--dg-ink); }
.dg-after h3 { color: var(--white); }
.dg-compare-tag { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dg-muted) !important; }
.dg-after .dg-compare-tag { color: var(--purple-bright) !important; }
.dg-compare-visual { display: grid; place-items: center; margin: -6px -6px 18px; min-height: 120px; border-radius: 16px; background: rgba(129, 52, 245, .06); }
.dg-after .dg-compare-visual { background: rgba(255, 255, 255, .1); }
.dg-compare-visual img { width: 100%; height: auto; border-radius: 16px; }
.dg-compare-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--white); color: var(--dg-muted); box-shadow: 0 14px 30px -16px rgba(89, 34, 184, .5); }
.dg-after .dg-compare-ico { color: var(--dg-violet); }
.dg-compare-ico svg { width: 34px; height: 34px; }

/* Réalisations */
.dg-work { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.dg-work + .dg-work { border-top: 1px solid var(--dg-line); }
.dg-work h3 { font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--dg-ink); margin: 6px 0 0; }
.dg-work-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dg-violet) !important; }
.dg-work-tag { margin: 8px 0 12px; font-size: 1.12rem; font-weight: 600; color: var(--dg-violet-deep) !important; }
.dg-work-note { font-size: .92rem; font-weight: 500; color: var(--grey-dark) !important; }
.dg-work .btn svg { width: 18px; height: 18px; margin-left: 4px; }
.dg-work-visual > img { width: 100%; height: auto; }
/* Place pour le socle de l'ordinateur et les téléphones inclinés, sans débordement de page. */
.dg-realisations { overflow-x: clip; }
.dg-work-visual { padding: 0 8%; }
.dg-work-end { margin-top: 24px; padding: 28px 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--dg-line); text-align: center; }
.dg-work-end p { margin: 0; font-size: 1.12rem; font-weight: 600; color: var(--dg-ink) !important; }
.dg-work-end .dg-cta { margin-top: 18px; }

/* Cadres d'appareils : on y place les vraies captures d'écran */
.dg-laptop { position: relative; margin: 0 auto; max-width: 620px; padding: 2.4% 2.4% 0; border-radius: 18px 18px 6px 6px; background: #1c1530; box-shadow: 0 40px 70px -34px rgba(65, 18, 140, .55); }
.dg-laptop::after { content: ''; display: block; height: 16px; margin: 0 -9%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #d9d2e6, #b9b0c9); }
.dg-laptop > img, .dg-laptop > .dg-screen-empty { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; }
.dg-laptop > .dg-screen-empty { aspect-ratio: 16 / 10; }
.dg-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 10px 0 20px; }
.dg-phone { position: relative; width: 36%; max-width: 220px; padding: 2.2%; border-radius: 28px; background: #17101d; box-shadow: 0 30px 60px -30px rgba(23, 16, 29, .7); }
.dg-phone > img, .dg-phone > .dg-screen-empty { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 22px; }
.dg-phone.p1 { z-index: 2; width: 40%; }
.dg-phone.p2 { transform: translateX(14%) rotate(-6deg); }
.dg-phone.p3 { transform: translateX(-14%) rotate(6deg); }
.dg-screen-empty { display: grid !important; place-items: center; background: linear-gradient(160deg, #f3ecff, #e2d4fb); color: var(--dg-violet-deep); font-weight: 700; font-size: 1.1rem; }

/* Bénéfices, offres, confiance, méthode : emplacements d'illustration */
.dg-benefit > img, .dg-trust .dg-card > img { width: 76px; height: 76px; object-fit: contain; }
.dg-offer-visual { display: grid; place-items: start; min-height: 56px; margin-bottom: 6px; }
.dg-offer-visual img { width: 100%; height: auto; border-radius: 14px; }
.dg-offer-main .dg-icon-lg { background: rgba(255, 255, 255, .16); }
.dg-timeline li > img { width: 100%; max-width: 220px; height: auto; margin: 8px 0 6px; }
.dg-method-end { margin: 32px auto 0; max-width: 40rem; text-align: center; font-weight: 500; color: var(--grey-dark) !important; }

/* Résultat : défis identifiés */
.dg-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.dg-tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dg-line); background: var(--white); font-size: .9rem; font-weight: 500; color: var(--grey-dark); }
.dg-intro-mentions { font-size: .92rem !important; font-weight: 500; color: var(--dg-violet-deep) !important; }

/* ── Bouton fixe sur téléphone ── */
.dg-sticky {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40;
  transform: translateY(140%); transition: transform .25s ease; box-shadow: 0 16px 34px -12px rgba(89, 34, 184, .8);
}
.dg-sticky.visible { transform: none; }

/* ── Bandeau de consentement ── */
/* Discret : carte blanche compacte en bas de l'écran, qui ne couvre pas le haut de page.
   Refuser et Accepter ont exactement le même poids. */
.dg-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--dg-line); box-shadow: 0 -10px 30px -18px rgba(23, 16, 29, .35);
}
.dg .dg-consent p, .dg-consent p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--dg-muted); }
.dg-consent a { color: var(--dg-violet-deep); text-decoration: underline; text-underline-offset: 2px; }
.dg-consent-actions { display: flex; gap: 8px; }
.dg-consent-actions button {
  flex: 1; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 .85rem/1 var(--font, inherit); color: var(--dg-ink); background: var(--white); border: 1px solid #d9cdea;
  transition: border-color .15s ease, background .15s ease;
}
.dg-consent-actions button:hover { border-color: var(--dg-violet); background: #faf6ff; }
.dg-consent-actions button:focus-visible { outline: 2px solid var(--dg-violet); outline-offset: 2px; }
@media (min-width: 700px) {
  .dg-consent {
    left: 20px; right: auto; bottom: 20px; max-width: 440px; padding: 14px 16px;
    border: 1px solid var(--dg-line); border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(23, 16, 29, .35);
  }
  .dg-consent-actions { justify-content: flex-end; }
  .dg-consent-actions button { flex: 0 0 auto; min-width: 110px; }
}
.dg-consent-open .dg-sticky { visibility: hidden; }

/* ── Tablette et plus ── */
@media (min-width: 640px) {
  .dg-cta { flex-direction: row; flex-wrap: wrap; }
  .dg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dg-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .dg-panel { padding: 36px; }
  .dg-result-head { grid-template-columns: auto 1fr; }
  .dg-gauge { margin: 0; }
  .dg-result-actions { grid-template-columns: 1fr 1fr; }
  .dg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .dg-options[data-columns] { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .dg-show-sm { display: none; }
  .dg-hide-sm { display: inline; }
}
@media (min-width: 900px) {
  .dg-work { grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 48px 0; }
  .dg-work-reverse .dg-work-copy { order: 2; }
  .dg-work-end { padding: 36px; }
  .dg-nav { height: 72px; gap: 32px; }
  .dg-links { display: flex; margin-left: auto; }
  .dg-nav .brand { margin-right: 0; }
  .dg-hero { padding: 72px 0 96px; }
  .dg-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .dg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .dg-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .dg-compare { grid-template-columns: 1fr auto 1fr; }
  .dg-arrow { transform: none; }
  .dg-offers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .dg-offer-main { transform: translateY(-14px); }
  .dg-timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .dg-timeline li { padding: 64px 0 0; }
  .dg-timeline li::before { left: 50px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .dg-timeline h3 { padding-top: 0; }
  .dg-final { padding: 96px 0; }
  .dg-final-grid { grid-template-columns: 1.2fr .8fr; }
  .dg-footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .dg-sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-clay-flag, .dg-clay-dot, .dg-step { animation: none; }
  .dg-progress-bar span, .dg-sticky { transition: none; }
}
