/* VVhite Pages — « Pourquoi je ne fais pas de dégâts ». Variables : --vdg-maxw (largeur de lecture), --vdg-acc,
   --vdg-okb / --vdg-okf (✓ C'est réglé), --vdg-nxb / --vdg-nxf (➜ Toujours pas), --vdg-card / --vdg-bd (carte),
   --vdg-solb / --vdg-sold (solutions), --vdg-imgw (largeur maximale d'une image). */
.vvp-degats { max-width: var(--vdg-maxw, 860px); margin: 0 auto 2.5em; }
.vvp-degats * { box-sizing: border-box; }
.vvp-degats [hidden] { display: none !important; }
.vvp-page--degats .entry-content > p:empty, .vvp-page--degats .entry-content > p:has(> br:only-child) { display: none; }
.vdg-page, .vdg-end { margin-top: 0; }
.vdg-card > :first-child { margin-top: 0; }

/* Boutons */
.vdg-btn { font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none !important; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.vdg-btn:hover, .vdg-btn:focus-visible { transform: translateY(-2px); filter: brightness(1.1); }
.vdg-btn:focus-visible { outline: 3px solid var(--vdg-acc); outline-offset: 3px; }
.vdg-btn--ok { background: linear-gradient(180deg, color-mix(in srgb, var(--vdg-okb) 82%, #fff), var(--vdg-okb)); color: var(--vdg-okf) !important; }
.vdg-btn--next { background: linear-gradient(180deg, color-mix(in srgb, var(--vdg-nxb) 82%, #fff), var(--vdg-nxb)); color: var(--vdg-nxf) !important; }
.vdg-btn-i { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .22); font-size: .95em; }
.vdg-btn--big { min-height: 60px; padding: 14px 30px; font-size: 1.15em; }

/* Page principale (pas de liste des étapes : seulement leur nombre) */
.vdg-intro { text-align: center; line-height: 1.65; font-size: 1.05em; }
.vdg-intro p { margin: 0 0 .8em; }
.vdg-intro p:first-child { font-size: 1.15em; }
.vdg-start { margin: 28px 0 34px; text-align: center; }
.vdg-main .vdg-start { margin-bottom: 10px; }
.vdg-count { margin: 0 0 30px; text-align: center; font-size: .82em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vdg-acc); }

/* Progression */
.vdg-prog { margin: 0 0 16px; }
.vdg-prog-t { margin: 0 0 6px; font-size: .82em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vdg-acc); text-align: center; }
.vdg-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vdg-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--vdg-acc) 60%, #fff), var(--vdg-acc)); }
.vdg-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.vdg-dots a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #b9bed0 !important; font-size: .78em; font-weight: 700; text-decoration: none !important; }
.vdg-dots .is-done a { border-color: color-mix(in srgb, var(--vdg-acc) 60%, transparent); color: #fff !important; background: color-mix(in srgb, var(--vdg-acc) 25%, transparent); }
.vdg-dots .is-cur a { background: var(--vdg-acc); border-color: var(--vdg-acc); color: #fff !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vdg-acc) 35%, transparent); }

/* Carte */
.vdg-card { padding: 24px 26px; border-radius: 18px; border: 1px solid var(--vdg-bd); background: var(--vdg-card); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8); line-height: 1.65; }
.vdg-q { --vvp-base: 1.45em; margin: 0 0 16px; line-height: 1.3; }
.vdg-img { margin: 0 auto 18px; max-width: min(100%, var(--vdg-imgw, 100%)); text-align: center; }
.vdg-img img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .8); }
.vdg-imgs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 18px; max-width: min(100%, var(--vdg-imgw, 100%)); }
.vdg-imgs .vdg-img { flex: 0 1 auto; margin: 0; max-width: 100%; }
.vdg-imgs .vdg-img img { width: auto; max-width: 100%; }
.vdg-img figcaption { margin: 8px 0 0; font-style: italic; color: var(--muted, #8a90ad); }
.vdg-text p { margin: 0 0 .8em; }
.vdg-sol { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; border-left: 4px solid var(--vdg-sold); background: var(--vdg-solb); }
.vdg-sol h3 { margin: 0 0 8px; font-size: 1.05em; color: var(--vdg-sold); }
.vdg-sol ul { margin: 0; padding: 0; list-style: none; }
.vdg-sol li { position: relative; margin: 0 0 6px; padding-left: 24px; }
.vdg-sol li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--vdg-sold); font-weight: 800; }
.vdg-sol p { margin: 0 0 .5em; }
.vdg-extra { margin: 18px 0 0; }
.vdg-old .wp-block-spacer { max-height: 24px; }

/* Boutons de l'étape */
.vdg-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.vdg-nav .vdg-btn { flex: 1 1 260px; max-width: 420px; }
.vdg-nav .vdg-btn--next { margin-left: auto; }
.vdg-nav--end { justify-content: center; }
.vdg-nav--end .vdg-btn--next { margin: 0; }
.vdg-sub { display: flex; justify-content: center; gap: 18px; margin: 4px 0 0; font-size: .88em; }
.vdg-sub a { color: var(--muted, #8a90ad) !important; }
.vdg-edit { margin: 10px 0 0; font-size: .82em; text-align: center; }
.vdg-empty { text-align: center; font-style: italic; color: var(--muted, #8a90ad); }

/* Fin */
.vdg-card--end { text-align: center; }
.vdg-confetti { position: fixed; inset: 0; z-index: 99999; pointer-events: none; }

@media (max-width: 640px) {
	.vdg-card { padding: 18px 16px; border-radius: 14px; }
	.vdg-nav { flex-direction: column; }
	.vdg-nav .vdg-btn { flex: none; max-width: none; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.vdg-btn { transition: none; }
}
