/* Pages publiques de la campagne (ticket 104, 12/10/2026) : /diagnostic, /webinaire (/pilote retirée le 14/10, #120) sur outils.runflow.solutions.
   Chargée après /jetons.css et /styles.css : uniquement les jetons (aucune couleur écrite en dur), aucun style en ligne
   (CSP style-src 'self'). Mobile d'abord : une colonne, gouttière de 16 px, cibles de 44 px, focus visible partout. */
[hidden] { display: none !important; }
.cp-saut { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: var(--rf-rayon); }
.cp-saut:focus { top: 12px; }
.cp-page { min-height: 100vh; display: flex; flex-direction: column; }
.cp-barre { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cp-marque { display: inline-flex; align-items: center; min-height: 44px; }
.cp-logo { height: 26px; width: auto; display: block; }
/* Thème clair ou sombre (14/10, campagne/theme.js) : logo de la variante du fond, bouton de bascule à droite du logo. */
.cp-logo-clair, :root[data-theme="light"] .cp-logo-sombre { display: none; }
:root[data-theme="light"] .cp-logo-clair { display: block; }
.cp-theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: var(--rf-rayon); background: transparent; color: var(--text); cursor: pointer; }
.cp-theme:hover { border-color: var(--rf-ligne-forte); background: var(--rf-releve); }
.cp-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cp-theme-soleil, :root[data-theme="light"] .cp-theme-lune { display: none; }
:root[data-theme="light"] .cp-theme-soleil { display: block; }
.cp-contenu { width: 100%; max-width: 680px; margin: 0 auto; padding: 28px 16px 56px; flex: 1; display: grid; gap: 28px; align-content: start; }
.cp-surtitre { margin: 0 0 10px; font-size: var(--rf-t-micro); text-transform: uppercase; letter-spacing: 1.8px; color: var(--accent); }
.cp-contenu h1 { margin: 0 0 14px; font-size: var(--rf-t-3xl); letter-spacing: -0.5px; }
.cp-contenu h2 { margin: 0 0 12px; font-size: var(--rf-t-2xl); }
.cp-contenu h3 { margin: 0 0 6px; font-size: var(--rf-t-l); }
.cp-lede { margin: 0; color: var(--text); font-size: var(--rf-t-l); }
.cp-note { margin: 0; color: var(--muted); font-size: var(--rf-t-s); }
.cp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cp-points li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.cp-points li::before { content: "✦"; color: var(--accent); }
.cp-etapes { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.cp-cadre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rf-rayon); padding: 20px 16px; display: grid; gap: 16px; }
.cp-champ { display: grid; gap: 6px; }
.cp-champ label, .cp-legende { color: var(--text); font-size: var(--rf-t-sm); }
.cp-facultatif { color: var(--muted); }
.cp-champ input, .cp-champ select, .cp-champ textarea { min-height: 44px; }
.cp-options { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.cp-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--rf-rayon); background: var(--rf-barre); min-height: 44px; }
.cp-option input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.cp-option label { color: var(--text); cursor: pointer; flex: 1; }
.cp-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-case { display: flex; gap: 10px; align-items: flex-start; font-size: var(--rf-t-s); color: var(--text); }
.cp-case input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.cp-case label { display: block; color: var(--text); font-size: var(--rf-t-s); line-height: 1.5; }
.cp-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--rf-rayon); border: 1px solid var(--accent); background: var(--accent); color: var(--ink); font-weight: 650; text-decoration: none; cursor: pointer; }
.cp-bouton:hover { background: var(--rf-accent-survol); }
.cp-bouton-retour { background: transparent; color: var(--text); border-color: var(--border); font-weight: 400; }
.cp-bouton-retour:hover { background: var(--rf-releve); }
.cp-bouton:focus-visible, .cp-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cp-lien { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cp-erreur { margin: 0; color: var(--error); font-size: var(--rf-t-s); }
.cp-statut { margin: 0; color: var(--muted); font-size: var(--rf-t-s); }
.cp-progression { display: grid; gap: 6px; }
.cp-progression p { margin: 0; color: var(--muted); font-size: var(--rf-t-s); }
.cp-barre-progres { width: 100%; height: 6px; accent-color: var(--accent); }
.cp-curseur { display: grid; gap: 8px; }
.cp-curseur input { width: 100%; accent-color: var(--accent); min-height: 44px; }
.cp-valeur { font-size: var(--rf-t-xl); font-weight: 650; color: var(--text); }
.cp-bornes { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--rf-t-xs); }
.cp-compteur { margin: 0; color: var(--muted); font-size: var(--rf-t-xs); text-align: right; }
.cp-priorites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: priorite; }
.cp-priorites li { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--rf-rayon); padding: 16px; display: grid; gap: 4px; }
.cp-priorites li p { margin: 0; color: var(--text); }
.cp-message { margin: 0; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--rf-releve); color: var(--text); }
.cp-infos { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.cp-infos dt { color: var(--muted); }
.cp-infos dd { margin: 0; color: var(--text); }
.cp-pied { border-top: 1px solid var(--border); padding: 20px 16px 28px; color: var(--muted); font-size: var(--rf-t-xs); display: grid; gap: 10px; justify-items: center; text-align: center; }
.cp-pied p { margin: 0; }
.cp-pied nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cp-pied a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
/* Diagnostic conduit par un agent (12/10) : avertissement, fil de l'entretien, saisie. */
.cp-avertissement { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 2px solid var(--rf-attention, var(--accent)); border-radius: var(--rf-rayon); background: var(--rf-releve); color: var(--text); font-size: var(--rf-t-s); }
.cp-entreprise { margin: 0; padding: 10px 12px; border-radius: var(--rf-rayon); background: var(--rf-releve); color: var(--text); font-size: var(--rf-t-s); }
.cp-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cp-fil li { max-width: 92%; padding: 10px 14px; border-radius: var(--rf-rayon); border: 1px solid var(--border); overflow-wrap: anywhere; }
.cp-fil .cp-agent { background: var(--rf-releve); color: var(--text); justify-self: start; }
.cp-fil .cp-vous { background: var(--surface); color: var(--text); justify-self: end; border-color: var(--accent); }
.cp-fil .cp-vous::before { content: "Vous : "; color: var(--muted); }
.cp-saisie { display: grid; gap: 8px; }
.cp-saisie textarea { min-height: 88px; }
.cp-donnees { margin: 0; display: grid; gap: 10px; }
.cp-donnees dt { color: var(--muted); font-size: var(--rf-t-s); }
.cp-donnees dd { margin: 0 0 6px; color: var(--text); }
.cp-version { margin: 0; color: var(--muted); font-size: var(--rf-t-xs); }
@media (min-width: 720px) {
  .cp-barre { padding: 14px 32px; }
  .cp-contenu { padding: 48px 24px 72px; }
  .cp-contenu h1 { font-size: var(--rf-t-4xl); }
  .cp-cadre { padding: 28px; }
}
/* Refonte visuelle de /diagnostic (14/10/2026, ticket 105) : page « .dg » seulement (les autres pages n'en héritent pas).
   Mobile d'abord. Un seul moment marquant : l'aperçu fictif du résultat, en cartes décalées en escalier, que l'on
   retrouve à l'identique à la fin. Repères de la charte : petit trait citron au-dessus du sur-titre, O en filigrane ton
   sur ton coupé par le bord (jamais derrière le texte principal), rayon de 4 px, ✦ seulement. */
.dg .cp-contenu { max-width: 1120px; gap: 20px; padding-top: 20px; position: relative; }
.dg .cp-barre { flex-wrap: nowrap; padding-top: 4px; padding-bottom: 4px; gap: 12px; }
.dg .cp-logo { height: 22px; }
/* Titres qui reçoivent le focus par programme (changement d'étape) : pas d'élément interactif, donc pas de cadre. */
.dg h1[tabindex="-1"]:focus, .dg h2[tabindex="-1"]:focus { outline: none; }
.dg .cp-page { overflow-x: clip; }
.dg .cp-surtitre { text-transform: none; letter-spacing: 0; font-size: var(--rf-t-sm); color: var(--muted); margin: 0 0 10px; }
.dg .cp-surtitre::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 10px; background: var(--accent); }
.dg-masque, .dg .cp-fil li::before { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dg input:focus-visible, .dg textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.dg .cp-case { align-items: flex-start; gap: 12px; min-height: 44px; }
.dg .cp-case input { width: 22px; height: 22px; margin: 1px 0 0; }
.dg .cp-case input:focus-visible { outline-offset: 3px; }
.dg .cp-lien { min-height: 24px; }
.dg .cp-bouton { padding: 12px 22px; }
.dg-bouton-principal { font-size: var(--rf-t-l); min-height: 52px; }
.dg-bouton-principal:disabled { opacity: .55; }

/* --- Accueil : promesse, départ, engagements ; aperçu du résultat. --- */
.dg-agent { display: grid; gap: 20px; }
.dg-accueil { display: grid; gap: 18px; position: relative; isolation: isolate; }
.dg-accueil::after { content: ""; position: absolute; z-index: -1; right: -96px; bottom: -80px; width: 72%; max-width: 520px; aspect-ratio: 56 / 54;
  background: color-mix(in srgb, var(--rf-foret) 45%, var(--rf-fond)); -webkit-mask: var(--rf-signe) center / contain no-repeat; mask: var(--rf-signe) center / contain no-repeat; pointer-events: none; }
.dg-promesse { display: grid; gap: 0; align-content: start; }
.dg .dg-promesse h1 { font-size: var(--rf-t-4xl); line-height: 1.05; letter-spacing: -1px; margin: 0 0 10px; max-width: 12ch; }
.dg .dg-promesse .cp-lede { font-family: var(--rf-police-titre); font-weight: 600; font-size: var(--rf-t-xl); color: var(--accent); margin: 0 0 6px; }
.dg-sous-titre { margin: 0; color: var(--muted); max-width: 46ch; }
.dg-depart { display: grid; gap: 14px; }
.dg-avant { margin: 0; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rf-rayon); }
.dg-avant-titre { margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; font-family: var(--rf-police-titre); font-weight: 600; font-size: var(--rf-t-l); color: var(--text); }
.dg-avant-titre::before { content: "✦"; color: var(--accent); font-size: var(--rf-t-s); }
.dg-avertissement { margin: 0; color: var(--text); font-size: var(--rf-t-m); line-height: 1.6; max-width: 62ch; }
.dg-accord { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.dg .dg-case { gap: 12px; align-items: flex-start; min-height: 44px; }
.dg .dg-case input { width: 24px; height: 24px; margin: 0; cursor: pointer; }
.dg .dg-case label { flex: 1; padding: 1px 0 10px; font-size: var(--rf-t-m); line-height: 1.5; cursor: pointer; }
.dg-liens-case { margin: 0; padding-left: 36px; display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--muted); font-size: var(--rf-t-s); line-height: 2; }
.dg-liens-case .cp-lien { white-space: nowrap; }
.dg-depart .cp-actions .cp-bouton { width: 100%; }
.dg-confiance { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text); font-size: var(--rf-t-sm); }
.dg-confiance li { display: flex; gap: 8px; align-items: baseline; }
.dg-confiance li::before { content: "✦"; color: var(--accent); font-size: var(--rf-t-xs); }
.dg-apercu { margin: 0; display: grid; gap: 8px; align-content: start; }
.dg-apercu figcaption { color: var(--muted); font-size: var(--rf-t-s); }
.dg-etiquette { display: inline-block; margin-right: 6px; padding: 2px 8px; border: 1px dashed var(--rf-ligne-forte); border-radius: var(--rf-rayon); color: var(--text); font-size: var(--rf-t-xs); font-weight: 650; }

/* --- Cartes de priorités (aperçu et résultat) : escalier, filet citron. --- */
.dg .cp-priorites { gap: 10px; }
.dg .dg-apercu .cp-priorites { gap: 6px; }
.dg .dg-apercu .cp-priorites li { padding: 8px 12px; gap: 0; }
.dg .dg-apercu .cp-priorites li p.dg-titre-carte { font-size: var(--rf-t-sm); }
.dg .cp-priorites li { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 14px 16px; gap: 4px; box-shadow: 0 10px 30px var(--rf-ombre); }
.dg .cp-priorites li:nth-child(2) { margin-left: 12px; }
.dg .cp-priorites li:nth-child(3) { margin-left: 24px; }
.dg .cp-priorites h3, .dg-titre-carte { margin: 0; font-family: var(--rf-police-titre); font-weight: 600; font-size: var(--rf-t-l); line-height: 1.25; color: var(--text); }
.dg .cp-priorites li p { margin: 0; color: var(--muted); font-size: var(--rf-t-sm); }
.dg .cp-priorites li p.dg-titre-carte { color: var(--text); font-size: var(--rf-t-l); }
.dg-priorites-apercu li { animation: dg-escalier .5s cubic-bezier(.2, .8, .2, 1.1) both; }
.dg-priorites-apercu li:nth-child(2) { animation-delay: .12s; }
.dg-priorites-apercu li:nth-child(3) { animation-delay: .24s; }
@keyframes dg-escalier { from { opacity: 0; transform: translateY(14px); } }

/* --- Parcours en 4 étapes. --- */
.dg-parcours { position: relative; list-style: none; margin: 0 auto; padding: 0 0 22px; width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: dg-pas; }
.dg-parcours li { counter-increment: dg-pas; display: grid; gap: 6px; font-size: var(--rf-t-xs); color: var(--muted); }
.dg-parcours li::before { content: ""; height: 4px; border-radius: var(--rf-rayon-fin); background: var(--border); }
.dg-parcours li.dg-fait::before, .dg-parcours li[aria-current="step"]::before { background: var(--accent); }
.dg-num { display: none; }
.dg-parcours li[aria-current="step"] { color: var(--text); font-weight: 650; }
.dg-parcours li:not([aria-current="step"]) .dg-lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-parcours li[aria-current="step"] .dg-lib { position: absolute; left: 0; bottom: 0; white-space: nowrap; }
.dg-parcours li[aria-current="step"] .dg-lib::before { content: "Étape " counter(dg-pas) " sur 4 : "; font-weight: 400; color: var(--muted); }

/* --- Étapes d'identification et de code : une colonne de lecture. --- */
.dg-etape { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.dg .dg-etape h2 { font-size: var(--rf-t-3xl); margin: 0; }
.dg .cp-champ label { display: block; font-size: var(--rf-t-sm); color: var(--text); }
.dg .cp-champ input { min-height: 48px; font-size: var(--rf-t-l); }
.dg-ligne { display: flex; gap: 8px; }
.dg-ligne input { flex: 1; }
.dg-ligne .cp-bouton { flex: none; }
.dg .cp-entreprise { border-left: 3px solid var(--accent); padding: 12px 14px; font-size: var(--rf-t-sm); }
.dg .cp-entreprise::before { content: "✦ Établissement trouvé au registre : "; color: var(--muted); }
.dg-code { letter-spacing: 8px; font-family: var(--rf-police-titre); font-size: var(--rf-t-2xl) !important; max-width: 240px; }

/* --- Entretien façon messagerie. --- */
.dg-entretien { width: 100%; max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.dg-entretien .cp-progression { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--border); }
.dg-entretien .cp-etape { color: var(--text); font-weight: 650; font-size: var(--rf-t-sm); }
.dg .cp-barre-progres { -webkit-appearance: none; appearance: none; height: 4px; border: 0; border-radius: var(--rf-rayon-fin); background: var(--border); overflow: hidden; }
.dg .cp-barre-progres::-webkit-progress-bar { background: var(--border); }
.dg .cp-barre-progres::-webkit-progress-value { background: var(--accent); transition: width .3s ease; }
.dg .cp-barre-progres::-moz-progress-bar { background: var(--accent); }
.dg .cp-fil { gap: 12px; }
.dg .cp-fil li { position: relative; max-width: 86%; padding: 12px 14px; line-height: 1.5; border-radius: var(--rf-rayon); animation: dg-bulle .25s ease-out both; }
.dg .cp-fil .cp-agent { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 0; }
.dg .cp-fil .cp-vous { background: var(--rf-foret); border: 1px solid var(--rf-foret); color: var(--rf-ivoire); border-bottom-right-radius: 0; }
.dg .cp-fil .cp-agent::before { content: "Assistant : "; }
/* Refonte (ticket 156), écran v2 seulement (body.dg-v2 ; l'écran v1 du public ne change pas) : messages plus longs
   (retours à la ligne gardés) ; « Ce que je retiens » distingué (filet d'accent, titre) ; bandeau de la recette de l'équipe. */
.dg-v2 .cp-fil .cp-agent { white-space: pre-line; }
.dg-v2 .dg-recette { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-left: 3px solid var(--accent); border-radius: var(--rf-rayon); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.dg-v2 .dg-recette p { margin: 0; }
.dg-v2 .dg-recette .dg-recette-titre { color: var(--muted); font-size: var(--rf-t-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dg .cp-fil .dg-retenu { display: grid; gap: 4px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); border-left: 3px solid var(--accent); }
.dg .cp-fil .dg-retenu::before { content: none; }
.dg .cp-fil .dg-retenu p { margin: 0; }
.dg .cp-fil .dg-retenu .dg-retenu-titre { color: var(--muted); font-size: var(--rf-t-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dg .cp-fil .cp-vous::before { content: "Vous : "; }
@keyframes dg-bulle { from { opacity: 0; transform: translateY(6px); } }
.dg-ecrit { margin: 0; display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rf-rayon); border-bottom-left-radius: 0; color: var(--muted); font-size: var(--rf-t-s); }
.dg-points { display: inline-flex; gap: 4px; }
.dg-points span { width: 6px; height: 6px; border-radius: var(--rf-rayon-rond); background: var(--accent); animation: dg-point 1s ease-in-out infinite; }
.dg-points span:nth-child(2) { animation-delay: .15s; }
.dg-points span:nth-child(3) { animation-delay: .3s; }
@keyframes dg-point { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.dg .cp-saisie { position: sticky; bottom: 0; z-index: 2; gap: 6px; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--rf-barre); border-top: 1px solid var(--border); }
.dg-composeur { display: flex; gap: 8px; align-items: flex-end; }
.dg-composeur textarea:focus-visible { outline-offset: 0; }
.dg-composeur textarea { flex: 1; min-height: 52px; max-height: 160px; resize: none; font-size: var(--rf-t-l); }
.dg-envoyer { flex: none; min-height: 52px; }
.dg-pied-saisie { display: flex; justify-content: space-between; gap: 12px; }
.dg-aide { margin: 0; color: var(--muted); font-size: var(--rf-t-xs); }

/* --- Résultat. --- */
.dg-resultat { width: 100%; max-width: 680px; margin: 0 auto; display: grid; gap: 18px; }
.dg-resultat h2 { font-size: var(--rf-t-3xl); margin: 0; }
.dg-point { color: var(--accent); }
.dg .dg-resultat .cp-message { border-left-width: 3px; }

/* --- Repli (formulaire du ticket 104). --- */
.dg-repli { width: 100%; max-width: 680px; margin: 0 auto; }
.dg .dg-repli section { display: grid; gap: 14px; }
.dg .dg-repli section > p, .dg .dg-repli section > h1, .dg .dg-repli section > h2 { margin: 0; }
.dg .dg-repli h1 { font-size: var(--rf-t-3xl); line-height: 1.1; }
.dg .cp-option { min-height: 48px; align-items: center; }
.dg .cp-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.dg .cp-option label { display: block; color: var(--text); font-size: var(--rf-t-m); }

/* --- Diagnostic en formulaire (ticket #210, 19/10) : questions, compléments, chiffre en heures, « et après », rappel. --- */
.dg .dg-questions section { display: grid; gap: 14px; }
.dg .dg-questions section > h2 { font-size: var(--rf-t-2xl); line-height: 1.2; margin: 0; }
.dg .dg-questions section > p { margin: 0; }
.dg-complement { padding-top: 6px; }
.dg .dg-complement textarea { min-height: 64px; resize: vertical; }
.dg .cp-legende { padding: 0; margin: 0 0 6px; font-size: var(--rf-t-sm); color: var(--text); }
.dg-chiffre { margin: 0; padding: 18px 18px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--rf-rayon); background: var(--surface); display: grid; gap: 6px; }
.dg-chiffre p { margin: 0; }
.dg-chiffre-phrase { font-family: var(--rf-police-titre); font-weight: 600; font-size: var(--rf-t-2xl); line-height: 1.2; color: var(--text); }
.dg-chiffre-detail { color: var(--muted); font-size: var(--rf-t-m); }
.dg .cp-priorites li p.dg-etapres { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); font-size: var(--rf-t-sm); line-height: 1.5; }
.dg-etapres strong { color: var(--accent); font-weight: 650; }
.dg-rappel { margin: 6px 0 0; padding: 18px 16px; border: 1px solid var(--border); border-radius: var(--rf-rayon); background: var(--rf-releve); display: grid; gap: 12px; }
.dg .dg-rappel h3 { margin: 0; font-family: var(--rf-police-titre); font-weight: 600; font-size: var(--rf-t-xl); color: var(--text); }
.dg-rappel-form { display: grid; gap: 12px; }
.dg-rappel .cp-actions .dg-bouton-principal { flex: 1 1 auto; }
@media (max-width: 480px) {
  .dg-v2 .cp-fil li { max-width: 94%; }
  .dg-rappel .cp-actions .cp-bouton { width: 100%; }
}
@media (min-width: 720px) {
  .dg .cp-contenu { padding-top: 32px; }
  .dg .cp-barre { padding-top: 14px; padding-bottom: 14px; }
  .dg .cp-logo { height: 26px; }
  .dg .dg-promesse h1 { font-size: var(--rf-t-5xl); }
  .dg-parcours { padding-bottom: 0; }
  .dg-parcours li[aria-current="step"] .dg-lib { position: static; }
  .dg .dg-apercu .cp-priorites { gap: 10px; }
  .dg .dg-apercu .cp-priorites li { padding: 14px 16px; gap: 4px; }
  .dg .dg-apercu .cp-priorites li p.dg-titre-carte { font-size: var(--rf-t-l); }
  .dg .cp-priorites li:nth-child(2) { margin-left: 28px; }
  .dg .cp-priorites li:nth-child(3) { margin-left: 56px; }
  .dg .cp-saisie { margin: 0; border: 1px solid var(--border); border-radius: var(--rf-rayon); }
  .dg-depart .cp-actions .cp-bouton { width: auto; }
  .dg-parcours li .dg-lib, .dg-parcours li:not([aria-current="step"]) .dg-lib { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .dg-parcours li[aria-current="step"] .dg-lib::before { content: none; }
  .dg-avant { padding: 22px 24px 18px; }
}
@media (min-width: 1000px) {
  .dg-accueil { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "promesse apercu" "depart apercu" "confiance apercu"; column-gap: 64px; row-gap: 22px; align-items: start; padding: 24px 0 48px; }
  .dg-promesse { grid-area: promesse; }
  .dg-depart { grid-area: depart; }
  .dg-confiance { grid-area: confiance; }
  .dg-apercu { grid-area: apercu; align-self: center; }
  .dg-sous-titre { font-size: var(--rf-t-l); }
  .dg-accueil::after { right: -140px; bottom: -120px; width: 56%; }
  .dg-apercu .cp-priorites li { padding: 18px 20px; }
}
/* Thème clair : filigrane ton sur ton, à peine plus foncé que le fond (charte : sauge sur sauge). */
:root[data-theme="light"] .dg-accueil::after { background: color-mix(in srgb, var(--rf-foret) 7%, var(--rf-fond)); }
@media (prefers-reduced-motion: reduce) {
  .dg-priorites-apercu li, .dg .cp-fil li { animation: none; }
  .dg-points span { animation: none; opacity: .8; }
  .dg .cp-barre-progres::-webkit-progress-value { transition: none; }
}
