/* Centre d'aide (lot 5) : bouton « ? » de l'en-tête et panneau d'aide. Chargé après herbier.css ; couleurs = variables du thème (--k-*), jamais de valeur de marque en dur.
   Auteur : KYPER. Date : 22.11.2026. Maquette : MAQUETTES_REFONTE_FRONT_2026-11-22/aide-panneau.html.
   Bureau : panneau à droite (400 px), la page reste utilisable. Téléphone (moins de 640 px) : feuille plein écran. Fonds neutres, marque en accent seulement. */

/* Bouton de l'en-tête */
.content > header #role{margin-left:auto}
.aide-bouton{flex:0 0 auto;width:42px;height:42px;min-width:42px;margin-left:.75rem;padding:0;border-radius:50%;display:inline-grid;place-items:center;
 font-family:var(--k-serif,Georgia,serif);font-size:1.25rem;font-weight:600;line-height:1;background:var(--k-surface,#fff);color:var(--k-texte,#1d2328);border:1px solid var(--k-bordure,#b8c2ae);cursor:pointer}
.aide-bouton:hover{background:var(--k-survol,#f0ebd9)}
.aide-bouton[aria-expanded="true"]{background:var(--k-bouton,#153f34);color:var(--k-texte-bouton,#fff);border-color:var(--k-bouton,#153f34)}

/* Panneau */
.aide-panneau{position:fixed;top:0;right:0;bottom:0;z-index:60;width:400px;max-width:calc(100vw / var(--k-echelle,1));box-sizing:border-box;display:flex;flex-direction:column;
 background:var(--k-surface,#fff);color:var(--k-texte,#1d2328);border-left:1px solid var(--k-bordure,#b8c2ae);box-shadow:-14px 0 34px -24px rgba(0,0,0,.45);overflow:hidden}
.aide-panneau[hidden]{display:none}
.aide-panneau *,.aide-panneau *::before{box-sizing:border-box}
.aide-entete{display:flex;align-items:center;gap:.6rem;padding:1rem 1.1rem .6rem;border-bottom:1px solid var(--k-bordure,#b8c2ae)}
.aide-titre{flex:1 1 auto;margin:0;font-family:var(--k-serif,Georgia,serif);font-size:1.4rem;font-weight:500;line-height:1.2}
.aide-fermer{flex:0 0 auto;min-height:40px;padding:.4rem .8rem}
.aide-recherche{padding:.9rem 1.1rem .4rem;display:grid;gap:.35rem}
.aide-recherche label{font-weight:600;font-size:.95rem}
.aide-recherche-ligne{display:flex;gap:.5rem;min-width:0}
.aide-recherche input{flex:1 1 auto;min-width:0;min-height:44px;padding:.5rem .7rem;font-size:1rem}
.aide-recherche button{flex:0 0 auto;min-height:44px;padding:.4rem .9rem}
.aide-annonce{margin:0;padding:0 1.1rem;font-size:max(.9rem,calc(13px / var(--k-echelle,1)));color:var(--k-texte-doux,#4e6256);min-height:1.2em}
.aide-corps{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:.4rem 1.1rem 1.6rem;overflow-wrap:anywhere}
.aide-corps h3{font-family:var(--k-serif,Georgia,serif);font-weight:500;font-size:1.1rem;margin:1.1rem 0 .4rem}
.aide-corps .aide-grand{font-size:1.45rem;line-height:1.2;margin:.6rem 0 .5rem}
.aide-discret,.aide-attente{color:var(--k-texte-doux,#4e6256);font-size:.95rem}
.aide-erreur{color:var(--k-texte,#1d2328);border-left:3px solid var(--k-bouton,#153f34);padding-left:.6rem}

/* Liens, listes */
.aide-panneau .aide-lien{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--k-accent-2,#235246);font:inherit;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.aide-panneau .aide-lien:hover{background:none;color:var(--k-texte,#1d2328)}
.aide-retour{flex:0 0 auto;text-decoration:none}
.aide-liste,.aide-sujets,.aide-resultats{list-style:none;margin:0;padding:0}
.aide-liste li{padding:.55rem 0;border-top:1px solid var(--k-bordure,#b8c2ae);display:grid;gap:.15rem}
.aide-liste li:first-child{border-top:0}
.aide-chemin{font-size:max(.82rem,calc(13px / var(--k-echelle,1)));color:var(--k-texte-doux,#4e6256)}
.aide-sujets{display:grid;gap:.5rem}
.aide-panneau .aide-sujet{width:100%;display:grid;gap:.15rem;text-align:left;padding:.7rem .8rem;background:var(--k-fond,#f3f1e5);border:1px solid var(--k-bordure,#b8c2ae);border-radius:var(--k-rayon,4px);color:var(--k-texte,#1d2328);font-weight:400}
.aide-panneau .aide-sujet:hover{border-color:var(--k-bouton,#153f34);background:var(--k-survol,#f0ebd9)}
.aide-sujet strong{font-family:var(--k-serif,Georgia,serif);font-weight:500;font-size:1.05rem}
.aide-sujet span{font-size:max(.9rem,calc(13px / var(--k-echelle,1)));color:var(--k-texte-doux,#4e6256)}
.aide-sujet .aide-compte{font-size:max(.8rem,calc(13px / var(--k-echelle,1)))}
.aide-resultats li{padding:.75rem 0;border-top:1px solid var(--k-bordure,#b8c2ae);display:grid;gap:.15rem}
.aide-resultats li:first-child{border-top:0}
.aide-panneau .aide-resultat{font-family:var(--k-serif,Georgia,serif);font-weight:500;font-size:1.08rem}
.aide-extrait{margin:.15rem 0 0;color:var(--k-texte-doux,#4e6256);font-size:.93rem}
.aide-panneau mark{background:var(--k-selection,#e1ebb6);color:var(--k-texte,#1d2328);padding:0 2px;border-radius:2px}

/* Article */
.aide-fil{font-size:max(.88rem,calc(13px / var(--k-echelle,1)));color:var(--k-texte-doux,#4e6256);margin-top:.6rem}
.aide-fil .aide-lien{font-weight:500;color:var(--k-texte-doux,#4e6256)}
.aide-resume{font-size:1.05rem;color:var(--k-texte-doux,#4e6256);margin:0 0 1rem}
.aide-pas{counter-reset:pas;list-style:none;margin:0 0 1rem;padding:0}
.aide-pas li{counter-increment:pas;display:grid;grid-template-columns:34px minmax(0,1fr);gap:.7rem;padding:.7rem 0;border-top:1px solid var(--k-bordure,#b8c2ae)}
.aide-pas li::before{content:counter(pas);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:max(.9rem,calc(13px / var(--k-echelle,1)));
 background:var(--k-surface-douce,#e4ead8);color:var(--k-texte,#1d2328);border:1px solid var(--k-bouton,#153f34)}
.aide-pas b{display:block;font-weight:600}
.aide-pas span{display:block;margin-top:.15rem;color:var(--k-texte-doux,#4e6256)}
.aide-texte{margin:.5rem 0}
.aide-encart{margin:.8rem 0;padding:.7rem .8rem;border-radius:var(--k-rayon,4px);background:var(--k-fond,#f3f1e5);border:1px solid var(--k-bordure,#b8c2ae);border-left:4px solid var(--k-bouton,#153f34)}
.aide-utile{margin:1.2rem 0;padding:.8rem;border:1px solid var(--k-bordure,#b8c2ae);border-radius:var(--k-rayon,4px);background:var(--k-fond,#f3f1e5)}
.aide-utile p{margin:0 0 .5rem;font-weight:600}
.aide-utile-boutons{display:flex;gap:.5rem}
.aide-utile-boutons button{min-height:40px;min-width:72px}
.aide-merci{margin:0;font-weight:600}
.aide-vide{padding:.4rem 0}
.aide-vide h3{margin-top:.6rem}
.aide-contact{margin-top:.4rem;min-height:44px;padding:.4rem .9rem}

/* Téléphone : feuille plein écran */
@media (max-width:640px){
 .aide-panneau{width:calc(100vw / var(--k-echelle,1));left:0;border-left:0;box-shadow:none}
 html.aide-ouverte,html.aide-ouverte body{overflow:hidden}
 .aide-bouton{margin-left:.5rem}
}
@media (prefers-reduced-motion:no-preference){.aide-panneau:not([hidden]){animation:aide-entree .16s ease-out}}
@keyframes aide-entree{from{transform:translateX(16px);opacity:.6}to{transform:none;opacity:1}}
@media print{.aide-bouton{display:none}.aide-panneau{position:static;width:auto;box-shadow:none;border:0}}
