/* Hympyr Espace client : connexion et ouverture de compte, d'après la maquette (panneau brun + formulaire). */
body.hy-connexion-page .woocommerce{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hy-graphite,#1D2226);max-width:1180px;margin:0 auto;padding:24px 16px 48px;display:block}
body.hy-connexion-login .page-header,body.hy-connexion-login .entry-title,body.hy-connexion-login h1.page-title{display:none}

.hy-auth{--hy-ligne:#DAD3C6;--hy-ok:#1F704F;--hy-ko:#A33A2A;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);min-height:min(740px,calc(100vh - 140px));border-radius:32px;overflow:hidden;background:var(--hy-craie,#F5F4F0);border:1px solid var(--hy-ligne);box-shadow:0 1px 2px rgba(29,34,38,.06),0 32px 64px -32px rgba(61,36,8,.45)}
.hy-auth *,.hy-auth *::before,.hy-auth *::after{box-sizing:border-box}
.hy-auth h1,.hy-auth h2,.hy-auth p,.hy-auth ul{margin:0}

/* ----- panneau brun ----- */
.hy-aside{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:32px;padding:44px 52px;color:var(--hy-matiere,#EEE2D0);--logo-a:#CB7A28;--logo-b:#F5F4F0;
  background:radial-gradient(60% 56% at 92% 4%,rgba(203,122,40,.58),transparent 64%),radial-gradient(50% 50% at 0% 108%,rgba(152,97,42,.58),transparent 68%),linear-gradient(160deg,#35200a,#241405)}
.hy-aside::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;background-image:radial-gradient(rgba(238,226,208,.14) 1px,transparent 1.4px);background-size:22px 22px;-webkit-mask-image:linear-gradient(160deg,transparent 30%,#000);mask-image:linear-gradient(160deg,transparent 30%,#000)}
.hy-aside .hy-logo,.hy-auth-logo .hy-logo{height:30px;width:auto;display:block}
.hy-aside h2{font:700 clamp(1.8rem,2.6vw,2.5rem)/1.08 "Poppins",system-ui,sans-serif;letter-spacing:-.04em;color:var(--hy-craie,#F5F4F0);max-width:15ch;text-wrap:balance}
.hy-aside h2 em{font-style:normal;color:var(--hy-orange,#CB7A28)}
.hy-kick{display:block;font:700 .66rem "Poppins",system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#7a6f60}
.hy-aside .hy-kick{color:rgba(238,226,208,.74);margin-bottom:16px}
.hy-perks{list-style:none;padding:0;display:grid;gap:18px}
.hy-perks li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:center}
.hy-pi{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:var(--hy-orange,#CB7A28);background:rgba(238,226,208,.1);border:1px solid rgba(238,226,208,.18)}
.hy-pi svg{width:22px;height:22px}
.hy-perks b{display:block;font:600 .95rem "Poppins",system-ui,sans-serif;color:var(--hy-craie,#F5F4F0);letter-spacing:-.01em}
.hy-perks li>span:last-child>span{display:block;font-size:.84rem;color:rgba(238,226,208,.76);line-height:1.4}
.hy-aside-foot{font-size:.84rem;color:rgba(238,226,208,.76)}
.hy-aside-foot a{color:var(--hy-craie,#F5F4F0);font-weight:600;text-underline-offset:3px}

/* ----- zone du formulaire ----- */
.hy-auth-main{display:flex;flex-direction:column;min-width:0}
.hy-auth-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 32px 0;min-height:64px}
.hy-auth-logo{display:none;--logo-a:#CB7A28;--logo-b:#3D2408}
.hy-retour{display:inline-flex;gap:8px;align-items:center;font:500 .92rem "Poppins",system-ui,sans-serif;color:var(--hy-graphite,#1D2226);text-decoration:none;min-height:44px;margin-left:auto}
.hy-retour:hover{color:var(--hy-action,#98612A)}
.hy-retour svg{width:18px;height:18px}
.hy-retour-carte{margin:0 0 -6px;justify-self:start}
.hy-auth-corps{flex:1;display:grid;align-items:center;padding:16px 32px 56px}
.hy-auth-corps>*{min-width:0}
.hy-auth-carte{width:min(440px,100%);margin-inline:auto;display:grid;gap:22px;animation:hy-entree 320ms cubic-bezier(.2,.8,.2,1) backwards}
.hy-auth-carte h1{font:700 clamp(1.7rem,3vw,2.15rem)/1.08 "Poppins",system-ui,sans-serif;letter-spacing:-.04em;color:var(--hy-brun,#3D2408)}
.hy-auth-carte h1:focus{outline:none}
.hy-auth-carte .hy-kick+h1{margin-top:-8px}
.hy-sous{color:#6f6a60;font-size:.98rem;line-height:1.55;max-width:56ch;margin-top:-10px!important}
@keyframes hy-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* une seule vue à la fois (sans script, « Ouvrir un compte » recharge la page sur la bonne vue) */
.hy-auth[data-vue=connexion] .hy-vue-inscription,.hy-auth[data-vue=inscription] .hy-vue-connexion{display:none}

/* ----- champs ----- */
.hy-auth .hy-form-auth,.woocommerce form.hy-form-auth.login,.woocommerce form.hy-form-auth.register{display:grid;gap:18px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;text-align:left}
.hy-form-auth.register{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px}
.hy-form-auth>*{grid-column:1/-1;min-width:0}
.hy-form-auth .form-row-first{grid-column:1}
.hy-form-auth .form-row-last{grid-column:2}
.hy-auth .form-row,.hy-auth .woocommerce-form-row{float:none!important;width:auto!important;margin:0!important;padding:0!important}
.hy-auth label{display:block;margin:0 0 6px;font:500 .88rem/1.3 "Poppins",system-ui,sans-serif;color:var(--hy-graphite,#1D2226);white-space:normal}
.hy-auth .required{color:var(--hy-ko);text-decoration:none;border:0}
.hy-auth input.input-text,.hy-auth input[type=text],.hy-auth input[type=email],.hy-auth input[type=tel],.hy-auth input[type=password],.hy-auth select,.hy-auth textarea{display:block;width:100%;min-height:48px;padding:13px 14px;font:500 16px "Poppins",system-ui,sans-serif;color:var(--hy-graphite,#1D2226);background:#fff;border:1.5px solid var(--hy-ligne)!important;border-radius:12px!important;box-shadow:none;line-height:1.3;transition:border-color 150ms ease,box-shadow 150ms ease}
.hy-auth input::placeholder{color:#a9a396}
.hy-auth input:focus,.hy-auth select:focus,.hy-auth textarea:focus{outline:none;border-color:var(--hy-orange,#CB7A28)!important;box-shadow:0 0 0 4px rgba(203,122,40,.18)}
.hy-auth select{appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233D2408' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.hy-auth .password-input{position:relative;display:block;width:100%}
.hy-auth .password-input input{padding-right:52px}
.hy-auth .show-password-input{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;margin:0;padding:0;border:0;border-radius:10px;background:none;cursor:pointer;display:grid;place-items:center;color:var(--hy-brun,#3D2408)}
.hy-auth .show-password-input::before{margin:0}
.hy-auth .show-password-input:hover{background:rgba(61,36,8,.07)}
.hy-auth .woocommerce-password-strength{margin-top:8px;padding:8px 12px;border-radius:10px;font-size:.84rem;font-weight:500;text-align:left;background:#fff;border:1px solid var(--hy-ligne)}
.hy-auth .woocommerce-password-strength.short,.hy-auth .woocommerce-password-strength.bad{color:var(--hy-ko);border-color:var(--hy-ko)}
.hy-auth .woocommerce-password-strength.good{color:#8A5A00;border-color:#CB7A28}
.hy-auth .woocommerce-password-strength.strong{color:var(--hy-ok);border-color:var(--hy-ok)}
.hy-auth .woocommerce-password-hint{display:block;margin-top:6px;font-size:.8rem;color:#6f6a60;line-height:1.45}

.hy-opts{display:flex;justify-content:space-between;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:-4px}
.hy-auth .hy-case{display:flex;gap:12px;align-items:flex-start;margin:0;font-size:.9rem;font-weight:400;cursor:pointer;line-height:1.45}
.hy-auth .hy-case input{flex:none;width:22px;height:22px;min-height:0;margin:0;padding:0;accent-color:var(--hy-orange,#CB7A28);cursor:pointer}
.hy-lien-simple{font:500 .88rem "Poppins",system-ui,sans-serif;color:var(--hy-action,#98612A);text-underline-offset:3px;text-decoration:underline;padding:8px 2px}
.hy-lien-simple:hover{color:var(--hy-brun,#3D2408)}
.hy-fine{font-size:.82rem;color:#6f6a60;line-height:1.5}
.hy-auth .woocommerce-privacy-policy-text p,.hy-auth .woocommerce-privacy-policy-text{font-size:.8rem;color:#6f6a60;line-height:1.5}
.hy-auth .woocommerce-privacy-policy-text a{color:var(--hy-action,#98612A)}

/* choix « Je suis » (ajouté par compte.php) */
.hy-auth .hy-type{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0;padding:0;border:0;min-width:0}
.hy-auth .hy-type legend{grid-column:1/-1;padding:0;margin:0 0 2px;font:500 .88rem "Poppins",system-ui,sans-serif;float:none;width:auto}
.hy-auth .hy-choix{display:flex;gap:10px;align-items:flex-start;margin:0;padding:14px;background:#fff;border:1.5px solid var(--hy-ligne);border-radius:16px;cursor:pointer;transition:border-color 150ms ease,background 150ms ease}
.hy-auth .hy-choix input{flex:none;width:18px;height:18px;min-height:0;margin:3px 0 0;padding:0;accent-color:var(--hy-orange,#CB7A28)}
.hy-auth .hy-choix:has(input:checked){border-color:var(--hy-orange,#CB7A28);background:#FFF6EC}
.hy-auth .hy-choix b{display:block;font:600 .92rem/1.25 "Poppins",system-ui,sans-serif;color:var(--hy-brun,#3D2408)}
.hy-auth .hy-choix small{display:block;margin-top:3px;font-size:.78rem;line-height:1.4;color:#6f6a60}
.hy-auth .hy-choix span{min-width:0}

/* liste « Type d'utilisateur » de B2BKing, si elle est activée dans ses réglages */
.hy-auth .b2bking_registration_roles_dropdown_section{margin:0}

/* ----- boutons ----- */
.hy-btn-go{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:4px 0 0;padding:7px 7px 7px 26px;border:1.5px solid transparent;border-radius:999px;background:var(--hy-action,#98612A);color:#fff;font:600 .95rem/1 "Poppins",system-ui,sans-serif;text-transform:none;letter-spacing:0;white-space:normal;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 24px -12px rgba(152,97,42,.85);transition:background 200ms ease,transform 160ms ease}
.hy-btn-go:hover{background:#7f4f1f;color:#fff}
.hy-btn-go:active{transform:scale(.98)}
.hy-btn-go:focus-visible,.hy-btn-ligne:focus-visible{outline:3px solid rgba(203,122,40,.55);outline-offset:3px}
.hy-fleche{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--hy-brun,#3D2408);color:var(--hy-matiere,#EEE2D0);transition:transform 260ms cubic-bezier(.2,.8,.2,1)}
.hy-fleche svg{width:18px;height:18px}
.hy-btn-go:hover .hy-fleche{transform:translateX(3px)}
.hy-btn-ligne{display:flex;align-items:center;justify-content:center;min-height:56px;padding:16px 28px;border:1.5px solid rgba(61,36,8,.28);border-radius:999px;background:transparent;color:var(--hy-brun,#3D2408);font:600 .95rem/1 "Poppins",system-ui,sans-serif;text-decoration:none;transition:background 200ms ease}
.hy-btn-ligne:hover{background:var(--hy-matiere,#EEE2D0);color:var(--hy-brun,#3D2408)}
.hy-ou{display:flex;align-items:center;gap:14px;color:#7a6f60;font-size:.8rem}
.hy-ou::before,.hy-ou::after{content:"";flex:1;height:1px;background:var(--hy-ligne)}

/* ----- messages WooCommerce (erreurs, confirmations) ----- */
.hy-auth .woocommerce-notices-wrapper{width:min(440px,100%);margin:0 auto 18px}
.hy-auth .woocommerce-error,.hy-auth .woocommerce-message,.hy-auth .woocommerce-info{list-style:none;margin:0 0 10px;padding:14px 16px;border:1.5px solid var(--hy-ko);border-radius:16px;background:#F8E3DF;color:#6e2417;font-size:.9rem;line-height:1.5}
.hy-auth .woocommerce-message,.hy-auth .woocommerce-info{border-color:var(--hy-ok);background:#E3F1E8;color:#14513a}
.hy-auth .woocommerce-error::before,.hy-auth .woocommerce-message::before,.hy-auth .woocommerce-info::before{display:none}
.hy-auth .woocommerce-error li{margin:0;padding:0}
.hy-auth .woocommerce-error a,.hy-auth .woocommerce-message a{color:inherit;font-weight:600}

/* ----- « Mot de passe oublié » et nouveau mot de passe : carte centrée ----- */
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce{max-width:560px}
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce-ResetPassword,body.hy-connexion-page:not(.hy-connexion-login) form.lost_reset_password{background:#fff;border:1px solid #DAD3C6;border-radius:28px;padding:28px;box-shadow:0 1px 2px rgba(29,34,38,.06),0 24px 48px -28px rgba(61,36,8,.4)}
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce form .form-row{float:none;width:auto;margin:0 0 16px}
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce form .button{display:inline-block;background:var(--hy-action,#98612A);color:#fff;border:0;border-radius:999px;padding:14px 28px;font:600 .95rem "Poppins",system-ui,sans-serif;cursor:pointer}
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce form .button:hover{background:#7f4f1f}
body.hy-connexion-page:not(.hy-connexion-login) .woocommerce-notices-wrapper .woocommerce-message,body.hy-connexion-page:not(.hy-connexion-login) .woocommerce-notices-wrapper .woocommerce-error{border-radius:16px}

/* ----- tablette et mobile : le panneau brun disparaît, le logo passe en haut ----- */
@media (max-width:900px){
  body.hy-connexion-page .woocommerce{padding:12px 12px 36px}
  .hy-auth{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:26px}
  .hy-aside{display:none}
  .hy-auth-bar{padding:12px 16px 0;min-height:56px}
  .hy-auth-logo{display:block}
  .hy-auth-logo .hy-logo{height:24px}
  .hy-auth-corps{padding:20px 20px 36px;align-items:start}
}
@media (max-width:520px){
  .hy-form-auth.register{grid-template-columns:minmax(0,1fr)}
  .hy-form-auth .form-row-first,.hy-form-auth .form-row-last{grid-column:1}
  .hy-auth .hy-type{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.hy-auth-carte{animation:none}.hy-btn-go,.hy-fleche,.hy-btn-ligne{transition:none}}

/* le style de boutons et de liens du thème (survol, focus) ne doit jamais passer devant celui de Hympyr */
body.hy-connexion-page .hy-auth .hy-btn-go:hover,body.hy-connexion-page .hy-auth .hy-btn-go:focus{background-color:#7f4f1f;color:#fff}
body.hy-connexion-page .hy-auth .hy-btn-ligne:hover,body.hy-connexion-page .hy-auth .hy-btn-ligne:focus{background-color:#EEE2D0;color:#3D2408}
body.hy-connexion-page .hy-auth .hy-lien-simple:hover,body.hy-connexion-page .hy-auth .hy-lien-simple:focus{color:#3D2408;background:none}
body.hy-connexion-page .hy-auth .hy-retour:hover,body.hy-connexion-page .hy-auth .hy-retour:focus{color:#98612A;background:none}
body.hy-connexion-page .hy-auth .show-password-input:hover,body.hy-connexion-page .hy-auth .show-password-input:focus{background-color:rgba(61,36,8,.07);color:#3D2408}
body.hy-connexion-page .hy-auth .hy-btn-go,body.hy-connexion-page .hy-auth .hy-btn-go:hover{border-color:transparent}

/* icônes rondes ou carrées : taille fixe, jamais écrasées */
.hy-pi,.hy-fleche{flex:none;aspect-ratio:1/1}
