/* Horizon Talent — espace partenaires. Tout est préfixé .he-app pour ne pas interférer avec le thème. */
.he-app{
  --he-bg:#F4F5FA; --he-surface:#FFFFFF; --he-fg:#1E2240; --he-muted:#5B6078; --he-line:#E2E4EE;
  --he-soft:color-mix(in srgb,var(--he-primary) 12%,#fff);
  --he-accent-soft:color-mix(in srgb,var(--he-accent) 16%,#fff);
  color:var(--he-fg); font-size:16px; line-height:1.5; box-sizing:border-box;
  max-width:1160px; margin:0 auto;
}
.he-app *,.he-app *::before,.he-app *::after{box-sizing:border-box}
.he-app button,.he-app input,.he-app select,.he-app textarea{font:inherit}
.he-app :focus-visible{outline:2px solid var(--he-primary);outline-offset:2px}
.he-loading{color:var(--he-muted)}

/* Coquille de la plateforme : en-tête, contenu, pied de page */
.ht-shell{--he-primary:#26336B;--he-accent:#B3A46E;--he-title:'Bricolage Grotesque','Nunito Sans',system-ui,sans-serif;font-family:'Nunito Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#1E2240;font-size:16px;line-height:1.5}
.ht-shell h2,.ht-shell h3,.ht-brand__name{font-family:var(--he-title)}
.ht-shell h2{font-weight:800}
.ht-shell *,.ht-shell *::before,.ht-shell *::after{box-sizing:border-box}
.ht-bar{border-bottom:3px solid var(--he-accent);background:var(--he-primary);color:#fff;border-radius:10px}
.ht-bar__in{max-width:1160px;margin:0 auto;display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between;padding:14px 20px}
.ht-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}
.ht-brand:hover,.ht-brand:focus{color:#fff}
.ht-brand__logo{height:40px;width:auto;background:#fff;border-radius:6px;padding:4px}
.ht-brand__text{display:flex;flex-direction:column;line-height:1.15}
.ht-brand__name{font-size:22px;letter-spacing:-.01em}
.ht-brand__org{font-size:13px;opacity:.85}
.ht-nav{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;font-size:15px}
.ht-nav a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.ht-nav a:hover,.ht-nav a:focus{color:#fff;opacity:.85}
.ht-nav__user{font-weight:600;padding:3px 10px;border:1px solid rgba(255,255,255,.45);border-radius:999px}
.ht-main{padding:8px 0 40px}
.ht-foot{border-top:3px solid var(--he-accent);background:#F4F6F8;color:#5A6676;font-size:14px;border-radius:10px}
.ht-foot__in{max-width:1160px;margin:0 auto;padding:22px 20px;display:flex;flex-direction:column;gap:6px}
.ht-foot p{margin:0}
.ht-foot__brand{color:#1A2430;font-size:16px}
.ht-foot__note{max-width:70ch}
.ht-foot a{color:var(--he-primary)}
.ht-foot__mail{user-select:all}
.ht-foot__copy{font-size:13px}
/* Mode pleine page */
body.ht-standalone{margin:0;background:#fff}
body.ht-standalone .ht-shell{min-height:100vh;display:flex;flex-direction:column}
body.ht-standalone .ht-main{flex:1;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
body.ht-standalone .ht-bar,body.ht-standalone .ht-foot{border-radius:0}
body.ht-standalone .ht-bar__in{padding-top:calc(14px + env(safe-area-inset-top,0px))}

/* En-tête du vivier */
.he-head{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-end;justify-content:space-between;padding:24px 0 16px;border-bottom:2px solid var(--he-primary);margin-bottom:20px}
.he-eyebrow{margin:0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--he-primary)}
.he-head h2{margin:4px 0 0;font-size:clamp(24px,3.5vw,32px);line-height:1.15;text-wrap:balance}
.he-head__meta{display:flex;gap:16px;align-items:center;font-size:14px;color:var(--he-muted)}
.he-head__meta a{color:var(--he-muted)}
.he-count{font-variant-numeric:tabular-nums}

/* Filtres */
.he-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.he-filters input,.he-filters select{padding:10px 12px;border:1px solid var(--he-line);border-radius:8px;background:var(--he-surface);color:var(--he-fg);min-width:0}
.he-filters input{flex:1 1 280px}
.he-filters select{flex:0 1 240px}
.he-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.he-chip{padding:6px 12px;border-radius:999px;border:1px solid var(--he-line);background:var(--he-surface);color:var(--he-fg);cursor:pointer;font-size:14px;line-height:1.3}
.he-chip[aria-pressed="true"]{background:var(--he-primary);border-color:var(--he-primary);color:#fff}
.he-chip{border-radius:999px}

/* Grille de fiches */
.he-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.he-card{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;background:var(--he-surface);border:1px solid var(--he-line);border-radius:10px;padding:18px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.he-card:hover{border-color:var(--he-primary);box-shadow:0 4px 14px rgba(20,30,40,.08)}
.he-card:focus-visible{outline:2px solid var(--he-primary);outline-offset:2px}
.he-card__top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.he-ref{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--he-muted);letter-spacing:.03em}
.he-new{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;background:#EFEBDD;color:#6E6236;padding:2px 8px;border-radius:999px}
.he-card h3{margin:0;font-size:18px;line-height:1.25;color:var(--he-fg)}
.he-tags{display:flex;flex-wrap:wrap;gap:6px}
.he-tag{font-size:13px;padding:2px 8px;border-radius:5px;background:var(--he-bg);color:var(--he-fg)}
.he-tag--sector{background:var(--he-soft);color:var(--he-primary);font-weight:600}
.he-card p{margin:0;color:var(--he-muted);font-size:15px}
.he-empty{color:var(--he-muted);padding:40px 0;text-align:center}

/* Panneau de détail */
.he-scrim{position:fixed;inset:0;background:rgba(10,16,22,.45);z-index:99998}
.he-app.he-panel{max-width:none;margin:0}
.he-panel{position:fixed;top:0;right:0;bottom:0;width:min(660px,100%);background:var(--he-bg);z-index:99999;overflow-y:auto;border-left:1px solid var(--he-line);
  padding:calc(20px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px))}
body.admin-bar .he-panel{top:32px}
.he-panel__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.he-panel h3.he-title{margin:4px 0 10px;font-size:24px;line-height:1.2;text-wrap:balance}
.he-close{background:var(--he-surface);border:1px solid var(--he-line);color:var(--he-fg);border-radius:8px;padding:6px 12px;cursor:pointer}
.he-sec{margin-top:22px}
.he-sec h4{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--he-muted);margin:0 0 10px;font-weight:700}
.he-sec ul{margin:0;padding-left:18px}
.he-sec li{margin:2px 0}
.he-pitch{background:var(--he-surface);border:1px solid var(--he-line);border-radius:10px;padding:14px 16px;margin:0}
.he-xp{display:grid;grid-template-columns:110px 1fr;gap:4px 14px;padding:10px 0;border-top:1px solid var(--he-line)}
.he-xp:first-of-type{border-top:0}
.he-xp__d{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;color:var(--he-muted);padding-top:3px}
.he-xp b{display:block}
.he-xp span{color:var(--he-muted);font-size:15px}
.he-xp ul{grid-column:2;font-size:15px}

/* Demande de contact */
.he-cta{margin-top:26px;background:var(--he-surface);border:1px solid var(--he-primary);border-radius:12px;padding:18px}
.he-cta h4{font-size:19px;margin:0 0 4px;text-transform:none;letter-spacing:0;color:var(--he-fg)}
.he-cta > p{margin:0 0 12px;color:var(--he-muted);font-size:15px}
.he-form{display:grid;gap:10px}
.he-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.he-form label{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:4px}
.he-form input,.he-form textarea{font-weight:400;padding:9px 11px;border:1px solid var(--he-line);border-radius:8px;background:var(--he-bg);color:var(--he-fg);width:100%}
.he-btn{font-weight:700;background:var(--he-primary);color:#fff;border:0;border-radius:999px;padding:11px 18px;cursor:pointer;justify-self:start}
.he-btn[disabled]{opacity:.6;cursor:wait}
.he-err{margin:0;color:#A2311F;font-weight:600}
.he-ok{background:var(--he-soft);border-radius:10px;padding:14px 16px}
.he-ok b{color:var(--he-primary)}

/* Écran de connexion */
.he-gate{padding:32px 0}
.he-gate__card{max-width:520px;margin:0 auto;background:var(--he-surface);border:1px solid var(--he-line);border-top:4px solid var(--he-primary);border-radius:10px;padding:28px}
.he-gate__card h2{margin:4px 0 10px;font-size:26px}
.he-gate__card p{color:var(--he-muted)}
.he-gate__card form p{display:flex;flex-direction:column;gap:4px;color:var(--he-fg)}
.he-gate__card input[type=text],.he-gate__card input[type=password]{padding:10px 12px;border:1px solid var(--he-line);border-radius:8px}
.he-gate__card .login-remember{flex-direction:row}
.he-gate__card input[type=submit]{background:var(--he-primary);color:#fff;border:0;border-radius:8px;padding:11px 18px;font-weight:700;cursor:pointer}
.he-small{font-size:14px}

@media (max-width:560px){.he-row{grid-template-columns:1fr}.he-xp{grid-template-columns:1fr}.he-xp ul{grid-column:1}}
@media (prefers-reduced-motion:reduce){.he-card{transition:none}}
.ht-brand__name b,.ht-foot__brand b{font-weight:700}

/* Connexion Horizon Talent (sur le modèle de Cap Horizon) */
.ht-login{max-width:440px;margin:48px auto;padding:32px;background:#fff;border:1px solid #E2E4EE;border-radius:22px;box-shadow:0 12px 30px rgba(30,34,64,.08);display:flex;flex-direction:column;gap:12px}
.ht-login__eyebrow{margin:0;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6E6236}
.ht-login__title{margin:0;font-family:var(--he-title);font-weight:800;font-size:28px;line-height:1.15;color:#1A2350}
.ht-login__intro{margin:0;color:#5B6078}
.ht-login__err{margin:0;padding:10px 14px;border-radius:12px;background:#FBEDEA;color:#8A3227;font-weight:700;font-size:14px}
.ht-login__form{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.ht-login__form label{font-size:13px;font-weight:800;color:#3C4160}
.ht-login__form input[type=text],.ht-login__form input[type=password]{min-height:46px;padding:0 12px;border:1.5px solid #D5D8E6;border-radius:12px;font-size:15px;width:100%;background:#fff;color:#1E2240;margin-bottom:8px}
.ht-login__form input:focus{outline:2px solid var(--he-primary);outline-offset:1px}
.ht-login__remember{display:flex !important;align-items:center;gap:8px;font-weight:600 !important;margin:2px 0 10px}
.ht-login__form button{min-height:50px;border-radius:25px;border:none;background:var(--he-primary);color:#fff;font-weight:800;font-size:15px;cursor:pointer;font-family:inherit}
.ht-login__form button:hover{background:#1A2350}
.ht-login__links{margin:4px 0 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:14px}
.ht-login__links a{color:var(--he-primary);font-weight:700}
@media (max-width:480px){.ht-login{margin:24px auto;padding:24px}}
