/* Aide sur un champ de formulaire — rendu visiteur (formulaire public + tunnel).
   Voir lf-form-aide.php. Couleur : --lfch-acc posée par lf-form-aide.js (couleur du formulaire). */
.lfch-x,.lfch-x *{box-sizing:border-box}
.lfch-x{--lfch-a:var(--lfch-acc,#ff7a3d);--lfch-a50:color-mix(in srgb,var(--lfch-a) 7%,#fff);--lfch-a100:color-mix(in srgb,var(--lfch-a) 18%,#fff);--lfch-a700:color-mix(in srgb,var(--lfch-a) 76%,#000);
  --lfch-ink:#1A1815;--lfch-ink2:#6B6660;--lfch-line:#E9E5DE;font-family:inherit;line-height:1.5;color:var(--lfch-ink);text-align:left;letter-spacing:normal;text-transform:none}
.lfch-ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}

/* contenu de l'aide */
.lfch-html{font-size:13.5px;line-height:1.55;color:var(--lfch-ink);font-weight:400;overflow-wrap:anywhere}
.lfch-html p{margin:0 0 8px}
.lfch-html ul,.lfch-html ol{margin:0 0 8px;padding-left:20px}
.lfch-html ul{list-style:disc outside}.lfch-html ol{list-style:decimal outside}
.lfch-html li{margin:0 0 2px;display:list-item}
.lfch-html h1,.lfch-html h2,.lfch-html h3,.lfch-html h4{font-size:15px;font-weight:800;margin:0 0 6px;line-height:1.3}
.lfch-html img{max-width:100%;height:auto;border-radius:10px;display:block;margin:6px 0}
.lfch-html iframe{width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:10px;display:block;margin:6px 0}
.lfch-html a{color:var(--lfch-a700);font-weight:600;text-decoration:underline}
.lfch-html>*:last-child{margin-bottom:0}

/* déclencheurs */
.lfch-i{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--lfch-acc,#ff7a3d);color:#fff;cursor:pointer;vertical-align:middle;margin:0 0 0 6px;flex:none;transition:transform .12s}
.lfch-i:hover,.lfch-i[aria-expanded="true"]{transform:scale(1.08)}
.lfch-i:focus-visible{outline:3px solid color-mix(in srgb,var(--lfch-acc,#ff7a3d) 35%,#fff);outline-offset:1px}
.lfch-i .lfch-ic{width:13px;height:13px;stroke-width:2.6}
.lfch-lien{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;margin-top:8px;cursor:pointer;color:var(--lfch-a700);font-weight:700;font-size:13px;line-height:1.3;font-family:inherit}
.lfch-lien:hover span:last-child{text-decoration:underline}
.lfch-lien:focus-visible{outline:2px solid var(--lfch-a100);outline-offset:2px;border-radius:6px}
.lfch-lien .lfch-pt{width:20px;height:20px;border-radius:50%;background:var(--lfch-a);color:#fff;display:grid;place-items:center}
.lfch-lien .lfch-pt .lfch-ic{width:12px;height:12px;stroke-width:2.6}
/* libellé du formulaire public : l'astérisque « obligatoire » reste collé au texte, la pastille vient après */
h3.lfch-lab{display:inline-flex!important;align-items:center;flex-wrap:wrap;column-gap:0}
h3.lfch-lab::after{order:2}
h3.lfch-lab>.lfch-i{order:3}
.lfch-blk{display:block;width:100%}

/* 1. infobulle */
.lfch-tip{position:fixed;z-index:2147483000;width:320px;max-width:calc(100vw - 24px);max-height:min(70vh,520px);overflow:auto;background:#fff;border-radius:16px;padding:14px 16px;
  box-shadow:0 14px 38px rgba(26,24,21,.2),0 0 0 1px rgba(26,24,21,.06);opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s;pointer-events:none}
.lfch-tip.on{opacity:1;transform:none;pointer-events:auto}

/* 2. fenêtre — 4. panneau latéral : fond */
.lfch-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(26,24,21,.45);display:flex;align-items:center;justify-content:center;padding:18px;opacity:0;transition:opacity .15s}
.lfch-ov.on{opacity:1}
.lfch-mod{background:#fff;border-radius:22px;width:100%;max-width:520px;max-height:calc(100vh - 36px);display:flex;flex-direction:column;box-shadow:0 22px 60px rgba(0,0,0,.28);transform:translateY(8px);transition:transform .15s}
.lfch-ov.on .lfch-mod{transform:none}
.lfch-hd{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--lfch-line)}
.lfch-hd b{flex:1;font-size:15.5px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.lfch-hd .lfch-pa{width:32px;height:32px;border-radius:10px;background:var(--lfch-a);color:#fff;display:grid;place-items:center;flex:none}
.lfch-hd .lfch-pa .lfch-ic{stroke-width:2.3;width:17px;height:17px}
.lfch-x .lfch-ferme{all:unset;box-sizing:border-box;width:32px;height:32px;border-radius:50%;background:#F1EEE9;display:grid;place-items:center;cursor:pointer;color:var(--lfch-ink);flex:none}
.lfch-x .lfch-ferme:hover{background:#E7E2DA}
.lfch-x .lfch-ferme .lfch-ic{width:16px;height:16px}
.lfch-bd{padding:16px;overflow:auto}
.lfch-ft{padding:0 16px 16px}
.lfch-x .lfch-ok{all:unset;box-sizing:border-box;display:block;width:100%;text-align:center;border-radius:999px;background:var(--lfch-a);color:#fff;font-weight:700;font-size:14px;padding:10px;cursor:pointer;font-family:inherit}
.lfch-x .lfch-ok:hover{filter:brightness(.95)}

/* 3. encadré dépliable */
.lfch-acc{display:block;width:100%;margin-top:8px;border-radius:14px;background:var(--lfch-a50);border:1px solid var(--lfch-a100);overflow:hidden}
.lfch-acc .lfch-ah{all:unset;box-sizing:border-box;display:flex;width:100%;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;font-size:13px;font-weight:700;color:var(--lfch-a700);font-family:inherit}
.lfch-acc .lfch-ah .lfch-pt{width:20px;height:20px;border-radius:50%;background:var(--lfch-a);color:#fff;display:grid;place-items:center;flex:none}
.lfch-acc .lfch-ah .lfch-pt .lfch-ic{width:12px;height:12px;stroke-width:2.6}
.lfch-acc .lfch-ah .lfch-chev{margin-left:auto;width:16px;height:16px;transition:transform .15s}
.lfch-acc.on .lfch-ah .lfch-chev{transform:rotate(180deg)}
.lfch-acc .lfch-ab{display:none;padding:0 12px 12px}
.lfch-acc.on .lfch-ab{display:block}

/* 4. panneau latéral (volet du bas sur téléphone) */
.lfch-ov.lfch-ovd{justify-content:flex-end;align-items:stretch;padding:0}
.lfch-drw{background:#fff;width:440px;max-width:92vw;height:100%;display:flex;flex-direction:column;box-shadow:-14px 0 40px rgba(0,0,0,.18);transform:translateX(100%);transition:transform .2s}
.lfch-ov.on .lfch-drw{transform:none}
.lfch-drw .lfch-hd{background:linear-gradient(115deg,var(--lfch-a700),var(--lfch-a));color:#fff;border:0;padding:18px 16px}
.lfch-drw .lfch-hd .lfch-ferme{background:rgba(255,255,255,.22);color:#fff}
.lfch-drw .lfch-bd{flex:1}
@media (max-width:640px){
  .lfch-ov.lfch-ovd{align-items:flex-end}
  .lfch-drw{width:100%;max-width:none;height:auto;max-height:85vh;border-radius:22px 22px 0 0;transform:translateY(100%)}
  .lfch-drw .lfch-hd{border-radius:22px 22px 0 0}
  .lfch-tip{width:calc(100vw - 24px)}
}

/* 5. conseil à la saisie */
.lfch-foc{display:none;width:100%;margin-top:8px;gap:10px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:14px;padding:11px 12px}
.lfch-foc.on{display:flex}
.lfch-foc .lfch-pa{width:28px;height:28px;border-radius:9px;background:#F59E0B;color:#fff;display:grid;place-items:center;flex:none}
.lfch-foc .lfch-pa .lfch-ic{stroke-width:2.3;width:15px;height:15px}
.lfch-foc .lfch-html{flex:1;min-width:0}
