/* HumanOrigin — assistant « première preuve » de /telecharger. Styles isolés sous .hofph
   et .hofph-*. Les couleurs et polices sont les jetons de /style.css (Brand Master V1),
   avec une valeur de repli identique pour que le module reste lisible seul. Le site n'a
   pas de thème sombre : l'assistant n'en introduit pas. Aucune ressource externe. */

/* Point d'entrée dans le guide : un lien discret, mais une cible tactile de 44 px. */
.hofph-entree{margin:22px 0 0;font-size:15px}
.hofph-entree a{display:inline-flex;align-items:center;min-height:44px;
  color:var(--marine,#012454);text-decoration:underline;text-underline-offset:3px}
.hofph-entree a:focus-visible{outline:3px solid var(--bleu-encre,#2C5C8F);outline-offset:2px;border-radius:4px}

/* Bloc replié qui contient l'assistant, juste après le guide. */
section.hofph-section{padding:40px 0}
details.hofph-repli{border-top:0;border-bottom:0;padding:0}
details.hofph-repli > summary{display:flex;align-items:center;min-height:44px;
  color:var(--marine,#012454)}
details.hofph-repli > summary:focus-visible{outline:3px solid var(--bleu-encre,#2C5C8F);outline-offset:3px;border-radius:4px}
details.hofph-repli[open] > summary{margin-bottom:14px}
details.hofph-repli > summary::after{float:none;margin-left:auto;padding-left:12px}

.hofph{box-sizing:border-box;max-width:100%;margin:0;padding:22px;
  background:var(--carte,#FFFFFF);color:var(--encre,#1A1E24);
  border:1px solid var(--ligne,#E6E2D8);border-radius:12px;
  font:16px/1.6 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif);
  overflow-wrap:anywhere}
.hofph *,.hofph *::before,.hofph *::after{box-sizing:inherit}
.hofph p{margin:0 0 12px;color:var(--atone,#565E69)}
.hofph-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.hofph-title{margin:0 0 8px;font:400 22px/1.3 var(--serif,ui-serif,Georgia,"Times New Roman",serif);
  color:var(--marine,#012454)}
.hofph-privacy{font-size:13.5px;margin:16px 0 0 !important}
.hofph-step{margin:6px 0 8px;font:600 17px/1.4 var(--sans,system-ui,sans-serif);color:var(--encre,#1A1E24)}
.hofph-step:focus{outline:none}
.hofph-step:focus-visible{outline:3px solid var(--bleu-encre,#2C5C8F);outline-offset:3px}
.hofph-sub{margin:16px 0 6px;font:600 15px/1.4 var(--sans,system-ui,sans-serif);color:var(--encre,#1A1E24)}
.hofph-body{margin-top:6px}
.hofph-steps{margin:0;padding-left:22px;color:var(--atone,#565E69)}
.hofph-steps li{margin:6px 0}
.hofph-steps strong{color:var(--encre,#1A1E24)}
.hofph-choices{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.hofph-btn,.hofph-lang{min-height:44px;padding:10px 16px;border-radius:10px;
  border:1px solid var(--marine,#012454);font:600 15.5px/1.35 var(--sans,system-ui,sans-serif);
  text-align:left;cursor:pointer}
.hofph-choice{background:var(--carte,#FFFFFF);color:var(--marine,#012454)}
.hofph-choice:hover{background:var(--bleu-fond,#E7EFF8)}
.hofph-secondary,.hofph-lang{background:transparent;color:var(--marine,#012454);border-color:var(--ligne,#E6E2D8)}
.hofph-lang{flex:none}
.hofph-secondary:hover,.hofph-lang:hover{text-decoration:underline}
.hofph-btn:focus-visible,.hofph-lang:focus-visible{outline:3px solid var(--bleu-encre,#2C5C8F);outline-offset:2px}
.hofph-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.hofph-tone{display:inline-block;margin:0 !important;padding:3px 10px;border-radius:999px;
  font:600 12.5px/1.4 var(--sans,system-ui,sans-serif);color:var(--encre,#1A1E24) !important;border-left:4px solid}
.hofph-tone-ok{background:var(--vert-fond,#E2F0E8);border-color:var(--vert-encre,#3E8E5A)}
.hofph-tone-todo{background:var(--bleu-fond,#E7EFF8);border-color:var(--bleu-encre,#2C5C8F)}
.hofph-tone-info{background:var(--bleu-fond,#E7EFF8);border-color:var(--atone,#565E69)}
.hofph-tone-stop{background:var(--ambre-fond,#FBF0DB);border-color:var(--ambre-encre,#A9762B)}
.hofph-limits{margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--papier,#FBFAF7);
  border-left:3px solid var(--ambre-encre,#A9762B)}
.hofph-limits ul{margin:0;padding-left:20px;color:var(--atone,#565E69);font-size:15px}
.hofph-live:empty{display:none}
.hofph-live.hofph-error{margin:8px 0;padding:8px 12px;border-left:4px solid var(--ambre-encre,#A9762B);
  background:var(--ambre-fond,#FBF0DB);color:var(--encre,#1A1E24)}
@media (max-width:480px){
  .hofph{padding:16px}
  .hofph-head{flex-direction:column}
}
@media (prefers-reduced-motion:no-preference){
  .hofph-btn{transition:background-color .15s}
}
