/* Test « Derrière l'organigramme » : mêmes couleurs et mêmes principes que les autres tests. */
.kaqi-dlo{
  --kd-accent:var(--wp--preset--color--accent-1,#E8791F); --kd-dark:var(--wp--preset--color--accent-3,#B3560A);
  --kd-pale:var(--wp--preset--color--accent-2,#FCEBDD); --kd-ink:var(--wp--preset--color--contrast,#111111);
  --kd-grey:var(--wp--preset--color--accent-4,#686868); --kd-cream:var(--wp--preset--color--accent-5,#FBFAF3);
  --kd-base:var(--wp--preset--color--base,#FFFFFF); --kd-line:#DDD6CC;
  color:var(--kd-ink); font-family:inherit; line-height:1.6; max-width:42rem; margin-left:auto; margin-right:auto; scroll-margin-top:5rem;
}
.kaqi-dlo *,.kaqi-dlo *::before,.kaqi-dlo *::after{box-sizing:border-box}
.kaqi-dlo p{margin:0 0 1rem;max-width:66ch}
.kaqi-dlo [hidden]{display:none!important}
.kaqi-dlo .kd-title{color:var(--kd-dark);margin:0 0 1rem;line-height:1.2;font-size:1.6rem;outline:none}
.kaqi-dlo .kd-h2{font-size:2rem}
.kaqi-dlo .kd-lede{font-size:1.15rem;color:var(--kd-grey);margin-top:-.5rem}
.kaqi-dlo .kd-h3{font-size:1.2rem;font-weight:700;color:var(--kd-dark);margin:2.25rem 0 .75rem;line-height:1.25}
.kaqi-dlo .kd-hint{font-weight:400;font-size:.875rem;color:var(--kd-grey)}
.kaqi-dlo .kd-muted{color:var(--kd-grey)}
.kaqi-dlo .kd-beta{display:inline-block;font-size:.75rem;font-weight:700;color:var(--kd-dark);background:var(--kd-pale);border-radius:9999px;padding:.15rem .7rem;margin-bottom:.6rem}
.kaqi-dlo .kd-progress{font-size:.875rem;color:var(--kd-grey);margin-bottom:1.25rem}
.kaqi-dlo .kd-segs{display:flex;gap:.25rem;margin-top:.4rem}
.kaqi-dlo .kd-segs i{flex:1;height:.3rem;border-radius:2px;background:#EEE9E2}
.kaqi-dlo .kd-segs i.kd-done{background:var(--kd-dark)}
.kaqi-dlo .kd-segs i.kd-now{background:var(--kd-accent)}

/* Les quatre formes, dans la disposition de la grille */
.kaqi-dlo .kd-quad{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:0 0 1rem}
.kaqi-dlo .kd-quad figure{margin:0}
.kaqi-dlo .kd-quad img{width:100%;height:auto;display:block;border-radius:6px;aspect-ratio:3/2;object-fit:cover}
.kaqi-dlo .kd-quad figcaption{font-size:.85rem;font-weight:700;margin-top:.15rem}

/* Réponses */
.kaqi-dlo .kd-lead{font-style:italic;color:var(--kd-grey)}
.kaqi-dlo .kd-question{font-weight:600;font-size:1.05rem}
.kaqi-dlo .kd-prompt{background:var(--kd-pale);border-radius:6px;padding:.7rem .9rem;max-width:none}
.kaqi-dlo .kd-prompt span{font-size:.9rem}
.kaqi-dlo .kd-prompt2{background:var(--kd-cream);border:1px dashed var(--kd-dark)}
.kaqi-dlo .kd-answers{display:grid;gap:.6rem}
.kaqi-dlo .kd-answer{font:inherit;text-align:left;line-height:1.45;padding:.85rem 1rem;min-height:2.75rem;border:1px solid #BDB6AC;border-radius:6px;background:var(--kd-base);color:var(--kd-ink);cursor:pointer}
.kaqi-dlo .kd-answer:hover:not(:disabled){border-color:var(--kd-accent)}
.kaqi-dlo .kd-answer:disabled{cursor:default;opacity:1;color:var(--kd-ink)}
.kaqi-dlo .kd-answer[aria-pressed=true],.kaqi-dlo .kd-answer.kd-is-real{border-color:var(--kd-dark);background:var(--kd-pale);box-shadow:inset 0 0 0 1px var(--kd-dark)}
.kaqi-dlo .kd-answer.kd-is-pref:not(.kd-is-real){border:2px dashed var(--kd-dark);background:var(--kd-cream)}
.kaqi-dlo .kd-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}
.kaqi-dlo .kd-tag{font-size:.75rem;font-weight:700;border-radius:9999px;padding:.1rem .6rem}
.kaqi-dlo .kd-tag-real{background:var(--kd-dark);color:var(--kd-base)}
.kaqi-dlo .kd-tag-pref{border:1px dashed var(--kd-dark);color:var(--kd-dark);background:var(--kd-base)}
.kaqi-dlo .kd-under{margin:.9rem 0 0;min-height:2.75rem;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.kaqi-dlo .kd-na{margin:0;font-weight:600}
.kaqi-dlo .kd-warning{background:var(--kd-cream);border-left:4px solid var(--kd-accent);padding:.9rem 1rem;margin:1.5rem 0 0;font-size:.95rem}
.kaqi-dlo .kd-warning p{margin:0}
.kaqi-dlo .kd-forms{display:grid;gap:.6rem}
@media (min-width:40rem){.kaqi-dlo .kd-forms{grid-template-columns:1fr 1fr}}
.kaqi-dlo .kd-form{font:inherit;text-align:left;padding:0;border:1px solid #BDB6AC;border-radius:8px;background:var(--kd-base);color:var(--kd-ink);cursor:pointer;overflow:hidden;display:grid;grid-template-columns:7rem 1fr;align-items:stretch}
.kaqi-dlo .kd-form img{width:100%;height:100%;min-height:5.5rem;object-fit:cover;display:block}
.kaqi-dlo .kd-form-t{padding:.6rem .8rem;display:block;font-size:.9rem;line-height:1.4}
.kaqi-dlo .kd-form-t strong{display:block;margin-bottom:.2rem;font-size:.95rem}
.kaqi-dlo .kd-form[aria-pressed=true]{border-color:var(--kd-dark);background:var(--kd-pale);box-shadow:inset 0 0 0 2px var(--kd-dark)}
@media (min-width:40rem){.kaqi-dlo .kd-form{grid-template-columns:1fr}.kaqi-dlo .kd-form img{aspect-ratio:3/2;height:auto}}

/* Boutons */
.kaqi-dlo .kd-row{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center;margin-top:1.5rem}
.kaqi-dlo .kd-btn{display:inline-block;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;min-height:2.75rem}
.kaqi-dlo .kd-btn:disabled{opacity:.5;cursor:progress}
.kaqi-dlo .kd-ghost{background:transparent;color:var(--kd-dark);border:1px solid var(--kd-dark);border-radius:9999px;padding:.6rem 1.4rem}
.kaqi-dlo .kd-ghost:hover{background:var(--kd-pale)}
.kaqi-dlo .kd-link{background:none;border:none;color:var(--kd-dark);font:inherit;font-size:.95rem;cursor:pointer;padding:.3rem;text-decoration:underline;min-height:2.75rem}
.kaqi-dlo button:focus-visible,.kaqi-dlo a:focus-visible,.kaqi-dlo input:focus-visible,.kaqi-dlo textarea:focus-visible,.kaqi-dlo summary:focus-visible{outline:3px solid var(--kd-accent);outline-offset:2px}
.kaqi-dlo .kd-error{color:#B23A48;font-size:.9rem;margin-top:.75rem;min-height:1.2em}
.kaqi-dlo .kd-later{margin:1.25rem 0 0}
.kaqi-dlo .kd-later .kd-link{border:1px solid var(--kd-dark);border-radius:9999px;padding:.55rem 1.2rem;font-size:1rem;font-weight:600;text-decoration:none;margin-left:.25rem}
.kaqi-dlo .kd-resume{background:var(--kd-pale);border-radius:8px;padding:1rem 1.2rem}
.kaqi-dlo .kd-resume p{margin:0;font-weight:600}
.kaqi-dlo .kd-resume .kd-row{margin-top:.75rem}

/* Résultat */
.kaqi-dlo .kd-opening{font-size:1.1rem}
.kaqi-dlo .kd-jump{margin:-.5rem 0 1rem}
.kaqi-dlo .kd-jump .kd-link,.kaqi-dlo .kd-with .kd-link{font-weight:600;padding-left:0}
.kaqi-dlo .kd-gridwrap{max-width:26rem;margin:0 auto}
.kaqi-dlo .kd-grid svg{display:block;width:100%;height:auto}
.kaqi-dlo .kd-ax{font-size:.8rem;color:var(--kd-dark);text-align:center;margin:.3rem 0;max-width:none}
.kaqi-dlo .kd-legend{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;font-size:.85rem;color:var(--kd-grey);max-width:none}
.kaqi-dlo .kd-legend b{display:inline-block;width:.9rem;height:.9rem;border-radius:50%;vertical-align:-2px;margin-right:.3rem}
.kaqi-dlo .kd-dot{background:var(--kd-grey)}
.kaqi-dlo .kd-ring{border:2px dashed var(--kd-grey)}
.kaqi-dlo .kd-details{border-top:1px solid var(--kd-line);border-bottom:1px solid var(--kd-line);margin:1rem 0}
.kaqi-dlo .kd-details summary{cursor:pointer;font-weight:600;color:var(--kd-dark);padding:.7rem 0;min-height:2.75rem}
.kaqi-dlo .kd-plist{list-style:none;padding:0;margin:0 0 1rem;font-size:.9rem}
.kaqi-dlo .kd-plist li{padding:.4rem 0;border-top:1px solid #EEE9E2;display:flex;gap:.5rem;flex-wrap:wrap}
.kaqi-dlo .kd-plist b{min-width:1.4rem;color:var(--kd-dark)}
.kaqi-dlo .kd-plist span{margin-left:auto;font-size:.85rem}
.kaqi-dlo .kd-plist i{font-style:normal;font-weight:700}
.kaqi-dlo .kd-reminder{font-size:.9rem;color:var(--kd-grey)}
.kaqi-dlo .kd-fcard{margin:0 0 1.25rem}
.kaqi-dlo .kd-fimg{width:100%;height:auto;aspect-ratio:3/1.2;object-fit:cover;border-radius:8px;display:block;margin-bottom:.9rem}
.kaqi-dlo .kd-fcard ul{margin:0;padding-left:1.1rem}
.kaqi-dlo .kd-fcard li{margin:0 0 .4rem}
.kaqi-dlo .kd-with{font-weight:600}
.kaqi-dlo .kd-leads{padding-left:1.1rem;margin:0 0 1rem}
.kaqi-dlo .kd-leads li{margin:0 0 .9rem}
.kaqi-dlo .kd-joins{display:inline-block;font-size:.8rem;font-weight:600;color:var(--kd-dark);background:var(--kd-pale);border-radius:9999px;padding:.05rem .6rem}
.kaqi-dlo .kd-caution{font-size:.9rem;background:var(--kd-cream);border-left:4px solid var(--kd-accent);padding:.8rem 1rem;margin-top:1.5rem;max-width:none}
.kaqi-dlo .kd-cta{background:var(--kd-pale);border-radius:8px;padding:1.5rem 1.4rem;margin-top:2rem;scroll-margin-top:5rem}
.kaqi-dlo .kd-cta .kd-h3{margin-top:.5rem}
.kaqi-dlo .kd-hook{font-weight:700;color:var(--kd-dark)}
.kaqi-dlo .kd-hook a{color:inherit;text-decoration:none;padding:0 .3rem}
.kaqi-dlo .kd-hook2{font-weight:600}
.kaqi-dlo .kd-label{display:block;font-weight:600;font-size:.95rem;margin:1.1rem 0 .4rem}
.kaqi-dlo input[type=text],.kaqi-dlo input[type=email],.kaqi-dlo textarea{width:100%;font:inherit;font-size:1rem;padding:.65rem .8rem;border:1px solid #BDB6AC;border-radius:4px;background:var(--kd-base);color:var(--kd-ink)}
.kaqi-dlo .kd-consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;margin-top:1.1rem}
.kaqi-dlo .kd-consent input{margin-top:.3rem;width:1.1rem;height:1.1rem;flex:none;accent-color:var(--kd-dark)}
.kaqi-dlo .kd-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.kaqi-dlo .kd-status{margin:1rem 0 0;font-weight:600}
.kaqi-dlo .kd-status.kd-ok{color:var(--kd-dark)}
.kaqi-dlo .kd-fb{border-top:1px solid var(--kd-line);margin-top:2.5rem}
.kaqi-dlo .kd-stars{display:flex;gap:.4rem}
.kaqi-dlo .kd-stars button{font:inherit;width:2.75rem;height:2.75rem;border:1px solid #BDB6AC;border-radius:50%;background:var(--kd-base);color:var(--kd-ink);cursor:pointer}
.kaqi-dlo .kd-stars button[aria-pressed=true]{background:var(--kd-dark);color:var(--kd-base);border-color:var(--kd-dark)}
.kaqi-dlo .kd-scale{display:flex;justify-content:space-between;font-size:.8rem;color:var(--kd-grey);max-width:15.4rem;margin-top:.25rem}
.kaqi-dlo .kd-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}
.kaqi-dlo .kd-seg button{font:inherit;font-size:.9rem;min-height:2.75rem;border:1px solid #BDB6AC;background:var(--kd-base);color:var(--kd-ink);border-radius:4px;cursor:pointer}
.kaqi-dlo .kd-seg button[aria-pressed=true]{background:var(--kd-dark);color:var(--kd-base);border-color:var(--kd-dark)}
.kaqi-dlo .kd-thanks{font-weight:600;color:var(--kd-dark);margin-top:2rem}
.kaqi-dlo .kd-sources{font-size:.85rem;color:var(--kd-grey);margin-top:2rem}
.kaqi-dlo .kd-disclaimer{font-size:.8rem;color:var(--kd-grey);margin-top:1rem}
/* Rien ne recouvre le test : bouton flottant d'abonnement masqué sur cette page. */
body:has(.kaqi-dlo) .jetpack-subscribe-floating-button,body:has(.kaqi-dlo) .wp-block-jetpack-subscriptions__floating-button,body:has(.kaqi-dlo) .kaqi-abonnement-fermer{display:none!important}

/* Accueil : bandeau des quatre formes, sur grand écran seulement (sur téléphone, le bouton passe d'abord). */
.kaqi-dlo .kd-strip{display:none}
@media (min-width:40rem){
  .kaqi-dlo .kd-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin:0 0 1.5rem}
  .kaqi-dlo .kd-strip img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;border-radius:6px}
}

/* Choix du collectif : une ligne d'explication sous chaque libellé. */
.kaqi-dlo .kd-answer .kd-sub{display:block;font-size:.9rem;color:var(--kd-grey);margin-top:.15rem}

/* Téléphone : une pratique tient sur un écran. Pavés resserrés,
   et la barre « Suivant » reste visible en bas de l'écran. */
@media (max-width:40rem){
  /* L'en-tête du site ne reste pas affiché sur téléphone : l'écran du test remonte tout en haut. */
  .kaqi-dlo{scroll-margin-top:.4rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-progress{margin-bottom:.6rem;font-size:.8rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-title{font-size:1.3rem;margin-bottom:.5rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-lead{margin-bottom:.5rem;font-size:.9rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-prompt{padding:.4rem .7rem;margin-bottom:.6rem;line-height:1.35}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-prompt span{font-size:.82rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-answers{gap:.4rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-answer{padding:.5rem .7rem;font-size:.92rem;line-height:1.33}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-tags{margin-top:.25rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-tag{font-size:.7rem;padding:0 .5rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-under{margin-top:.3rem;min-height:2.2rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-under .kd-link{min-height:2.2rem;font-size:.88rem}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-error{margin-top:0;min-height:0}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-error:empty{display:none}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-row{position:sticky;bottom:0;margin:.3rem -.5rem 0;padding:.5rem .5rem calc(.5rem + env(safe-area-inset-bottom,0px));background:var(--kd-base);box-shadow:0 -6px 8px -6px rgba(0,0,0,.12);z-index:3}
  .kaqi-dlo .kd-screen[data-screen^="p"] .kd-row .kd-btn{min-height:2.6rem}
}
