/* Diagnostic Ads : mêmes codes que l'accueil (bordure marine, ombre décalée, jaune en accent) */
.dg-hero{padding-top:6rem;background:hsl(var(--background))}
.dg-eyebrow{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--structure));background:hsl(var(--ads));border:2px solid hsl(var(--structure));border-radius:999px;padding:.2rem .8rem}
.dg-h1{font-size:clamp(2.6rem,7vw,4.5rem);line-height:1;color:hsl(var(--structure));margin:1rem 0}
.dg-h1 mark{background:hsl(var(--ads));color:inherit;padding:0 .15em;border-radius:.2em}
.dg-intro{font-size:1.15rem;line-height:1.6;color:hsl(var(--structure));max-width:42rem}
.dg-intro-small{font-size:.95rem;color:hsl(var(--muted-foreground));margin-top:.75rem;max-width:42rem}
.dg-wrap .section-padding{padding-top:0}
.dg-card,.dg-result{background:#fff;border:3px solid hsl(var(--structure));border-radius:1rem;box-shadow:var(--shadow-block);padding:1.5rem;max-width:46rem}
@media(min-width:768px){.dg-card,.dg-result{padding:2.5rem}}
.dg-progress{height:10px;border:2px solid hsl(var(--structure));border-radius:999px;overflow:hidden;margin-bottom:.75rem}
.dg-progress span{display:block;height:100%;width:20%;background:hsl(var(--craft));transition:width .3s}
.dg-step-count{font-size:.85rem;color:hsl(var(--muted-foreground));margin-bottom:1.25rem}
.dg-h2{font-size:1.75rem;color:hsl(var(--structure));margin-bottom:1.25rem}
.dg-q{border:0;padding:0;margin:0 0 1.5rem;min-width:0}
.dg-label{display:block;font-family:Sora,sans-serif;font-weight:700;font-size:1rem;color:hsl(var(--structure));margin-bottom:.6rem;padding:0}
.dg-muted{font-weight:400;color:hsl(var(--muted-foreground))}
.dg-input,.dg-select{width:100%;font:inherit;font-family:Sora,sans-serif;font-size:1rem;color:hsl(var(--structure));background:#fff;border:2px solid hsl(var(--structure));border-radius:.6rem;padding:.75rem .9rem}
.dg-input:focus,.dg-select:focus{outline:3px solid hsl(var(--ads));outline-offset:1px}
.dg-opts{display:grid;gap:.5rem}
@media(min-width:640px){.dg-opts{grid-template-columns:1fr 1fr}}
.dg-opt{position:relative;display:flex;cursor:pointer}
.dg-opt input{position:absolute;opacity:0;pointer-events:none}
.dg-opt span{flex:1;font-family:Sora,sans-serif;font-size:.95rem;line-height:1.35;color:hsl(var(--structure));border:2px solid hsl(var(--border));border-radius:.6rem;padding:.7rem .9rem;transition:border-color .15s,background .15s}
.dg-opt:hover span{border-color:hsl(var(--structure))}
.dg-opt input:checked+span{border-color:hsl(var(--structure));background:hsl(var(--ads));font-weight:600}
.dg-opt input:focus-visible+span{outline:3px solid hsl(var(--craft));outline-offset:1px}
.dg-q.dg-missing .dg-label{color:hsl(var(--destructive))}
.dg-consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.85rem;line-height:1.5;color:hsl(var(--muted-foreground));margin:.5rem 0 1rem}
.dg-consent input{margin-top:.25rem;width:1.1rem;height:1.1rem;accent-color:hsl(var(--structure));flex-shrink:0}
.dg-p{color:hsl(var(--structure));margin-bottom:1.25rem}
.dg-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dg-error{color:hsl(var(--destructive));font-weight:600;font-size:.9rem;margin-bottom:1rem}
.dg-nav{display:flex;gap:.75rem;justify-content:space-between;flex-wrap:wrap;margin-top:.5rem}
.dg-nav .dg-btn:only-child{margin-left:auto}
.dg-btn{display:inline-flex;align-items:center;justify-content:center;font-family:Tanker,Sora,sans-serif;text-transform:uppercase;letter-spacing:.02em;font-size:1rem;height:3rem;padding:0 1.75rem;border:3px solid hsl(var(--structure));border-radius:.6rem;background:hsl(var(--ads));color:hsl(var(--structure));box-shadow:-6px 6px 0 0 hsl(var(--structure));cursor:pointer;transition:transform .15s,box-shadow .15s;text-decoration:none}
.dg-btn:hover{transform:translateY(-2px)}
.dg-btn:active{transform:translate(3px,3px);box-shadow:-2px 2px 0 0 hsl(var(--structure))}
.dg-btn[disabled]{opacity:.6;cursor:wait}
.dg-btn-ghost{background:#fff;box-shadow:none}
.dg-loading{text-align:center;padding:2rem 0;color:hsl(var(--structure))}
.dg-spinner{width:2.5rem;height:2.5rem;margin:0 auto 1rem;border:4px solid hsl(var(--border));border-top-color:hsl(var(--structure));border-radius:50%;animation:dg-spin .8s linear infinite}
@keyframes dg-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.dg-spinner{animation-duration:3s}.dg-progress span{transition:none}}

/* Résultat */
.dg-result{font-family:Sora,sans-serif;color:hsl(var(--structure))}
.dg-r-top{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;margin-bottom:1.5rem}
.dg-r-score{font-family:Tanker,Sora,sans-serif;font-size:4.5rem;line-height:1}
.dg-r-score small{font-size:1.5rem;color:hsl(var(--muted-foreground))}
.dg-r-niveau{display:inline-block;background:hsl(var(--ads));border:2px solid hsl(var(--structure));border-radius:.4rem;padding:.15rem .6rem;font-weight:700}
.dg-r-sub{font-size:.9rem;color:hsl(var(--muted-foreground));margin-top:.4rem}
.dg-r-syn{font-size:1.05rem;line-height:1.6;margin-bottom:1.5rem}
.dg-r-sec{border-top:2px solid hsl(var(--border));padding-top:1.25rem;margin-top:1.25rem}
.dg-r-sec h3{font-family:Tanker,Sora,sans-serif;text-transform:uppercase;font-size:1.3rem;margin-bottom:.9rem}
.dg-axe{display:grid;grid-template-columns:7.5rem 1fr 3.5rem;gap:.6rem;align-items:center;font-size:.9rem;margin-bottom:.5rem}
.dg-axe-bar{height:.75rem;border:2px solid hsl(var(--structure));border-radius:999px;overflow:hidden}
.dg-axe-bar span{display:block;height:100%;background:hsl(var(--craft))}
.dg-axe b{text-align:right}
.dg-reco{font-size:1.4rem;font-weight:700;margin-bottom:.6rem}
.dg-reco mark{background:hsl(var(--ads));color:inherit;padding:0 .2em;border-radius:.2em}
.dg-list{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}
.dg-list li{line-height:1.5;font-size:.95rem}
.dg-check{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;align-items:start}
.dg-tag{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border:2px solid hsl(var(--structure));border-radius:.35rem;padding:.1rem .45rem;white-space:nowrap;margin-top:.1rem}
.dg-tag.ok{background:hsl(var(--craft));color:#fff}
.dg-tag.revoir{background:hsl(var(--ads))}
.dg-tag.inconnu{background:#fff}
.dg-check p{grid-column:2;font-size:.9rem;color:hsl(var(--muted-foreground))}
.dg-action{display:grid;grid-template-columns:2.25rem 1fr;gap:.75rem}
.dg-num{font-family:Tanker,Sora,sans-serif;font-size:1.25rem;width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;background:hsl(var(--ads));border:2px solid hsl(var(--structure));border-radius:.5rem}
.dg-action p{font-size:.92rem;color:hsl(var(--muted-foreground));margin-top:.2rem}
.dg-cta{margin-top:2rem;padding:1.25rem;border:2px dashed hsl(var(--structure));border-radius:.8rem}
.dg-cta p{margin-bottom:1rem}
.dg-consent a{color:hsl(var(--structure));text-decoration:underline}
