/* SignalNids — Connexion / inscription Hero V2.0.0.
 * Classes de structure indépendantes de l'ancien thème auth-pages-v1.css.
 * Aucune règle ne cible le header, le footer, l'accueil ou les autres formulaires.
 */
.sn-auth-hero-v2 {
  --sna-forest: #0b382d;
  --sna-yellow: #f5c651;
  --sna-green: #00513e;
  --sna-ink: #173e32;
  --sna-muted: #5b6f65;
  --sna-border: #d7e2db;
  --sna-sticky-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: stretch;
  background: #fff;
  color: var(--sna-ink);
  line-height: 1.6;
}
.sn-auth-hero-v2 *, .sn-auth-hero-v2 *::before, .sn-auth-hero-v2 *::after { box-sizing: border-box; }
.sn-auth-hero-v2 > *, .sn-auth-hero-v2 .sn-auth-form-inner { min-width: 0; }
.sn-auth-hero-v2 [hidden] { display: none !important; }
.sn-auth-hero-v2 a:focus-visible, .sn-auth-hero-v2 button:focus-visible, .sn-auth-hero-v2 summary:focus-visible {
  outline: 3px solid #92610b; outline-offset: 4px;
}
.sn-auth-hero-v2 .sn-auth-visual {
  margin: 0; padding: 0; border-radius: 0; border: 0; box-shadow: none;
  background: var(--sna-forest); color: #fff;
}
.sn-auth-hero-v2 .sn-auth-visual-inner {
  position: sticky; top: var(--sna-sticky-top);
  display: flex; flex-direction: column; min-height: 720px;
}
.sn-auth-hero-v2 .sn-auth-copy {
  position: relative; z-index: 2;
  padding: 48px 38px 12px max(32px, calc((100vw - 1240px) / 2));
}
.sn-auth-hero-v2 .sn-auth-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .65rem; font-weight: 750; line-height: 1.7; letter-spacing: .12em;
  color: #e2eee5; margin: 0 0 20px;
}
.sn-auth-hero-v2 .sn-auth-eyebrow > span {
  display: block; flex: 0 0 7px; height: 7px; border-radius: 50%;
  background: var(--sna-yellow); box-shadow: 0 0 0 5px #f5c6511c;
}
.sn-auth-hero-v2 .sn-auth-copy h1 {
  font-size: clamp(2.65rem, 4.2vw, 4.25rem); line-height: 1.06; letter-spacing: -.045em;
  color: #fff; margin: 0 0 19px; font-weight: 720; text-wrap: balance;
}
.sn-auth-hero-v2 .sn-auth-copy h1 em { display: block; color: var(--sna-yellow); font-style: normal; }
.sn-auth-hero-v2 .sn-auth-copy > p {
  margin: 0; max-width: 490px; color: #d9e7dc; font-size: 1rem; line-height: 1.75;
}
.sn-auth-hero-v2 .sn-auth-guest {
  display: inline-block; margin: 21px 0 0; color: #cedeD2; text-decoration: none; font-size: .8rem; line-height: 1.6;
}
.sn-auth-hero-v2 .sn-auth-guest strong { display: inline-flex; gap: 7px; align-items: center; color: #fff; font-weight: 650; }
.sn-auth-hero-v2 .sn-auth-guest svg { width: 18px; height: 18px; }
.sn-auth-hero-v2 .sn-auth-guest:hover strong { text-decoration: underline; }
.sn-auth-hero-v2 .sn-auth-visual a:focus-visible { outline-color: #ffdf8d; }
.sn-auth-hero-v2 .sn-auth-jump { display: none; }
.sn-auth-hero-v2 .sn-auth-photo {
  margin: 0; position: relative; flex: 1; height: 350px; min-height: 350px;
  overflow: hidden; isolation: isolate; background: var(--sna-forest);
}
.sn-auth-hero-v2 .sn-auth-photo picture { position: absolute; inset: 0; display: block; }
.sn-auth-hero-v2 .sn-auth-photo img {
  display: block; width: 100%; height: 100% !important; max-width: none;
  object-fit: cover; object-position: 54% 50%;
}
.sn-auth-hero-v2 .sn-auth-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #0b382d 0%, #0b382d66 13%, transparent 30%, transparent 58%, #06271ddb 93%, #06271def),
    linear-gradient(90deg, #0b382d70, transparent 45%);
}
.sn-auth-hero-v2 .sn-auth-photo figcaption {
  position: absolute; z-index: 2; bottom: 22px;
  left: max(32px, calc((100vw - 1240px) / 2)); right: 28px; color: #fff;
}
.sn-auth-hero-v2 .sn-auth-photo-label small { display: block; font-size: .57rem; font-weight: 750; letter-spacing: .15em; color: #ffe296; margin-bottom: 5px; }
.sn-auth-hero-v2 .sn-auth-photo-label strong { display: block; color: #fff; font-size: 1.1rem; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.sn-auth-hero-v2 .sn-auth-credit { display: block; color: #ceddd4; font-size: .6rem; line-height: 1.7; margin-top: 9px; }
.sn-auth-hero-v2 .sn-auth-credit a { text-decoration: none; }
.sn-auth-hero-v2 .sn-auth-credit a:hover { text-decoration: underline; }

/* Moitié formulaire : surface blanche plane, sans carte ni cadre imbriqué. */
.sn-auth-hero-v2 .sn-auth-form-side {
  margin: 0; padding: 44px clamp(28px, 4.1vw, 64px) 42px;
  background: #fff; border: 0; border-radius: 0; box-shadow: none;
  display: flex; justify-content: center; align-items: center;
  scroll-margin-top: 108px;
}
.sn-auth-hero-v2 .sn-auth-form-inner { width: 100%; max-width: 510px; margin: 0; }
.sn-auth-hero-v2.sn-auth-mode-register .sn-auth-form-inner { max-width: 550px; }
.sn-auth-hero-v2.sn-auth-mode-register .sn-auth-form-side { align-items: flex-start; }
.sn-auth-hero-v2 .sn-auth-tabs {
  display: flex; align-items: stretch; gap: 28px; border-bottom: 1px solid #e4ebe5;
  margin: 0 0 32px; padding: 0;
}
.sn-auth-hero-v2 .sn-auth-tabs a {
  display: inline-flex; min-height: 44px; align-items: center; margin: 0 0 -1px;
  padding: 0 1px 12px; font-size: .9rem; text-decoration: none; color: #697a70;
  border-bottom: 2px solid transparent; font-weight: 550;
}
.sn-auth-hero-v2 .sn-auth-tabs a[aria-current="page"] { color: var(--sna-green); border-color: var(--sna-green); font-weight: 750; }
.sn-auth-hero-v2 .sn-auth-tabs a:hover { color: var(--sna-green); }
.sn-auth-hero-v2 .sn-auth-heading { margin: 0 0 26px; }
.sn-auth-hero-v2 .sn-auth-kicker { font-size: .64rem; letter-spacing: .12em; color: #40725b; font-weight: 750; margin-bottom: 10px; }
.sn-auth-hero-v2 .sn-auth-heading h2 { font-size: clamp(1.65rem, 2.1vw, 2.05rem); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; color: var(--sna-ink); margin: 0 0 12px; text-wrap: balance; }
.sn-auth-hero-v2 .sn-auth-heading > p { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--sna-muted); }
.sn-auth-hero-v2 .sn-auth-form { margin: 0; padding: 0; display: block; }
.sn-auth-hero-v2 .sn-auth-form label { display: block; font-size: .86rem; font-weight: 600; line-height: 1.5; color: #294d3e; margin: 0 0 18px; }
.sn-auth-hero-v2 .sn-auth-form label > span[aria-hidden] { color: #61776a; }
.sn-auth-hero-v2 .sn-auth-form input:not([type="checkbox"]) {
  width: 100%; min-width: 0; margin: 7px 0 0; min-height: 51px; height: auto;
  padding: 12px 13px; border: 1px solid #c6d7cc; border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: #183e30;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.sn-auth-hero-v2 .sn-auth-form input::placeholder { color: #76877c; opacity: 1; }
.sn-auth-hero-v2 .sn-auth-form input[readonly] { background: #f2f5f2; color: #536a5b; }
.sn-auth-hero-v2 .sn-auth-form input:not([type="checkbox"]):focus { border-color: #267b5b; box-shadow: 0 0 0 3px #267b5b1e; }
.sn-auth-hero-v2 .sn-auth-form input.sn-auth-touched:invalid { border-color: #a74330; }
.sn-auth-hero-v2 .sn-auth-form input.sn-auth-touched:invalid:focus { box-shadow: 0 0 0 3px #a7433015; }
.sn-auth-hero-v2 .sn-auth-password, .sn-auth-hero-v2 .password-control { position: relative; display: block; padding: 0; }
.sn-auth-hero-v2 .sn-auth-password input:not([type="checkbox"]),
.sn-auth-hero-v2 .password-control input:not([type="checkbox"]) { padding-right: 89px; }
.sn-auth-hero-v2 .sn-auth-password > button,
.sn-auth-hero-v2 .password-control > button {
  position: absolute; right: 5px; bottom: 5px; top: auto; transform: none; min-height: 40px;
  padding: 7px 9px; border: 0; border-radius: 5px; background: #f0f5f1; color: #315a43;
  font-family: inherit; font-size: .73rem; font-weight: 700; line-height: 1.3;
}
.sn-auth-hero-v2 .sn-auth-password > button:hover, .sn-auth-hero-v2 .password-control > button:hover { background: #e5eee4; }
.sn-auth-hero-v2 .sn-auth-forgot { text-align: right; margin: -5px 0 21px; font-size: .78rem; color: #33614b; }
.sn-auth-hero-v2 .sn-auth-twofa { margin: 0 0 19px; border: 0; padding: 0; background: none; }
.sn-auth-hero-v2 .sn-auth-twofa summary { font-size: .77rem; font-weight: 500; color: #577064; padding: 7px 0; }
.sn-auth-hero-v2 .sn-auth-twofa label { margin: 10px 0 0; padding: 13px 15px; background: #f5f8f4; border-radius: 8px; }
.sn-auth-hero-v2 .sn-auth-twofa input { max-width: 220px; display: block; letter-spacing: .18em; }
.sn-auth-hero-v2 .sn-auth-submit {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; border: 1px solid var(--sna-yellow); border-radius: 8px;
  padding: 13px 18px; background: var(--sna-yellow); color: #173b2c;
  font-size: .95rem; font-weight: 750; line-height: 1.45; font-family: inherit; text-decoration: none;
  cursor: pointer; box-shadow: none; margin: 0;
}
.sn-auth-hero-v2 .sn-auth-submit:hover { background: #ffda7e; border-color: #ffda7e; }
.sn-auth-hero-v2 .sn-auth-submit:disabled { cursor: wait; opacity: .65; }
.sn-auth-hero-v2 .sn-auth-submit svg { width: 21px; height: 21px; flex: 0 0 21px; }
.sn-auth-hero-v2 .sn-auth-underform { margin-top: 22px; text-align: center; }
.sn-auth-hero-v2 .sn-auth-underform p { margin: 0 0 12px; color: #5e7366; font-size: .84rem; }
.sn-auth-hero-v2 .sn-auth-underform p a { font-weight: 750; color: var(--sna-green); }
.sn-auth-hero-v2 .sn-auth-resend { display: inline-block; font-size: .75rem; line-height: 1.65; color: #5b7465; }
.sn-auth-hero-v2 .sn-auth-private { display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid #e5ece6; padding-top: 19px; margin: 24px 0 0; color: #657a6b; font-size: .7rem; line-height: 1.65; }
.sn-auth-hero-v2 .sn-auth-private svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: #4d755b; }
.sn-auth-hero-v2 .sn-auth-help { color: #637b6a; font-size: .76rem; line-height: 1.6; margin: 0 0 18px; }
.sn-auth-hero-v2 .sn-auth-submit-help { margin: 13px 0 0; text-align: center; }
.sn-auth-hero-v2 .sn-auth-success-actions { display: grid; gap: 19px; }
.sn-auth-hero-v2 .sn-auth-secondary-link { text-align: center; color: #34624b; font-size: .85rem; }
.sn-auth-hero-v2 .notice { margin: 0 0 24px; font-size: .9rem; }
.sn-auth-hero-v2 .sn-auth-confirm-info { display: flex; align-items: start; gap: 12px; margin: 0 0 25px; color: #587260; font-size: .88rem; }

/* Formulaire existant d'inscription : IDs, champs et autocomplétion conservés. */
.sn-auth-hero-v2 .register-section { margin: 0 0 22px; padding: 0 0 21px; min-width: 0; border: 0; border-bottom: 1px solid #e6ece7; }
.sn-auth-hero-v2 .register-section legend { display: flex; align-items: flex-start; width: 100%; margin: 0 0 17px; padding: 0; gap: 12px; }
.sn-auth-hero-v2 .register-section legend strong { display: block; font-size: .89rem; font-weight: 700; letter-spacing: -.01em; color: #254c39; }
.sn-auth-hero-v2 .register-section legend small { display: block; font-size: .72rem; color: #637b6d; line-height: 1.5; margin-top: 2px; }
.sn-auth-hero-v2 .register-step { display: inline-flex; width: 29px; height: 29px; flex: 0 0 29px; align-items: center; justify-content: center; border-radius: 50%; background: #edf4e9; color: #356347; font-size: .73rem; font-weight: 750; }
.sn-auth-hero-v2 .register-section .form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
.sn-auth-hero-v2 .register-section .city-register-grid { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.sn-auth-hero-v2 .register-section label { min-width: 0; margin: 0; }
.sn-auth-hero-v2 .register-section .field-status { margin-top: 7px; color: #657d6d; font-size: .73rem; line-height: 1.5; font-weight: 400; }
.sn-auth-hero-v2 .register-section .field-status.is-error { color: #a43f2e; }
.sn-auth-hero-v2 .register-section .field-status.is-success { color: #0d7350; }
.sn-auth-hero-v2 .password-checks { display: flex; flex-wrap: wrap; margin: 14px 0 0; padding: 12px; gap: 8px 12px; background: #f5f8f3; border: 0; border-radius: 7px; }
.sn-auth-hero-v2 .password-check { font-size: .71rem; line-height: 1.5; }
.sn-auth-hero-v2 .register-consent-box { margin: 0 0 19px; padding: 0; border: 0; border-radius: 0; background: none; }
.sn-auth-hero-v2 label.register-consent { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 11px; margin: 0; font-weight: 400; font-size: .78rem; line-height: 1.7; }
.sn-auth-hero-v2 .register-consent > span { min-width: 0; }
.sn-auth-hero-v2 .register-consent input { width: 19px; height: 19px; min-height: 19px; margin: 3px 0 0; flex: 0 0 19px; accent-color: var(--sna-green); }
.sn-auth-hero-v2 .city-autocomplete { position: relative; }
.sn-auth-hero-v2 .city-suggestions { top: 83px; bottom: auto; z-index: 50; margin: 0; padding: 5px; max-height: 245px; overflow-y: auto; box-shadow: 0 10px 28px #163e291a; border-color: #b8cebb; }
.sn-auth-hero-v2 .city-suggestion { padding: 11px 9px; font-size: .86rem; align-items: flex-start; flex-direction: column; gap: 2px; min-height: 44px; }
.sn-auth-hero-v2 .city-suggestion-info { font-size: .68rem; white-space: normal; }
.sn-auth-hero-v2 .city-suggestion:focus-visible, .sn-auth-hero-v2 .city-suggestion.is-active { outline: 2px solid #2c7353; outline-offset: -2px; }

@media (min-width: 980px) {
  .sn-auth-hero-v2:not(.sn-auth-mode-register) .sn-auth-visual-inner { height: 100%; }
  .sn-auth-hero-v2.sn-auth-mode-register .sn-auth-visual-inner { height: calc(100svh - var(--sna-sticky-top)); }
}
@media (min-width: 1600px) {
  .sn-auth-hero-v2 .sn-auth-copy { padding-top: 60px; padding-right: 60px; }
  .sn-auth-hero-v2 .sn-auth-photo { min-height: 390px; }
  .sn-auth-hero-v2 .sn-auth-form-side { padding-block: 55px; }
}
@media (min-width: 980px) and (max-height: 820px) { .sn-auth-hero-v2 .sn-auth-visual-inner { position: static; } }
@media (max-width: 1150px) and (min-width: 980px) {
  .sn-auth-hero-v2 .sn-auth-copy { padding: 42px 27px 15px; }
  .sn-auth-hero-v2 .sn-auth-copy h1 { font-size: 2.8rem; }
  .sn-auth-hero-v2 .sn-auth-form-side { padding: 36px 27px; }
  .sn-auth-hero-v2 .register-section .password-grid { grid-template-columns: 1fr; gap: 14px; }
}
/* Téléphone / tablette : hero court avant le formulaire, pas de carte étroite. */
@media (max-width: 979px) {
  .sn-auth-hero-v2 { grid-template-columns: minmax(0, 1fr); }
  .sn-auth-hero-v2 .sn-auth-visual-inner { position: relative; top: auto; display: block; min-height: 260px; overflow: hidden; }
  .sn-auth-hero-v2 .sn-auth-copy { padding: 31px 30px 42px; width: 66%; }
  .sn-auth-hero-v2 .sn-auth-eyebrow { font-size: .6rem; margin-bottom: 14px; gap: 10px; }
  .sn-auth-hero-v2 .sn-auth-copy h1 { font-size: clamp(2rem, 4.8vw, 2.8rem); line-height: 1.07; margin-bottom: 15px; }
  .sn-auth-hero-v2 .sn-auth-copy > p { display: none; }
  .sn-auth-hero-v2 .sn-auth-guest { display: none; }
  .sn-auth-hero-v2 .sn-auth-jump { display: inline-flex; align-items: center; gap: 9px; color: #f3f7ef; font-weight: 600; font-size: .75rem; text-decoration: none; }
  .sn-auth-hero-v2 .sn-auth-photo { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .sn-auth-hero-v2 .sn-auth-photo img { object-position: 63% 50%; }
  .sn-auth-hero-v2 .sn-auth-photo picture { inset: 0 0 0 28%; }
  .sn-auth-hero-v2 .sn-auth-photo::after { background: linear-gradient(90deg, #0b382d 12%, #0b382df7 34%, #0b382d80 56%, #0b382d05 86%), linear-gradient(0deg,#062c21df,transparent 28%); }
  .sn-auth-hero-v2 .sn-auth-photo figcaption { left: 30px; right: 24px; bottom: 10px; }
  .sn-auth-hero-v2 .sn-auth-photo-label { display: none; }
  .sn-auth-hero-v2 .sn-auth-credit { font-size: .52rem; margin: 0; }
  .sn-auth-hero-v2 .sn-auth-form-side { padding: 31px 30px 32px; scroll-margin-top: 95px; }
  .sn-auth-hero-v2 .sn-auth-form-inner { max-width: 590px; }
  .sn-auth-hero-v2 .sn-auth-tabs { margin-bottom: 25px; }
  .sn-auth-hero-v2 .sn-auth-heading h2 { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  .sn-auth-hero-v2 .sn-auth-visual-inner { min-height: 180px; }
  .sn-auth-hero-v2 .sn-auth-copy { padding: 20px 18px 28px; width: 78%; }
  .sn-auth-hero-v2 .sn-auth-eyebrow { font-size: .52rem; letter-spacing: .085em; line-height: 1.65; margin-bottom: 10px; }
  .sn-auth-hero-v2 .sn-auth-copy h1 { font-size: clamp(1.85rem, 8.1vw, 2.5rem); margin-bottom: 11px; max-width: 100%; }
  .sn-auth-hero-v2 .sn-auth-jump { font-size: .69rem; min-height: 24px; }
  .sn-auth-hero-v2 .sn-auth-photo picture { left: 24%; }
  .sn-auth-hero-v2 .sn-auth-photo img { object-position: 66% 52%; }
  .sn-auth-hero-v2 .sn-auth-photo figcaption { left: 18px; right: 15px; bottom: 8px; }
  .sn-auth-hero-v2 .sn-auth-credit { font-size: .53rem; line-height: 1.6; }
  .sn-auth-hero-v2 .sn-auth-form-side { padding: 20px 18px 28px; }
  .sn-auth-hero-v2 .sn-auth-tabs { gap: 26px; margin-bottom: 20px; }
  .sn-auth-hero-v2 .sn-auth-tabs a { font-size: .82rem; padding-bottom: 11px; }
  .sn-auth-hero-v2 .sn-auth-heading { margin-bottom: 22px; }
  .sn-auth-hero-v2 .sn-auth-heading h2 { font-size: 1.63rem; }
  .sn-auth-hero-v2 .sn-auth-heading > p { font-size: .85rem; }
  .sn-auth-hero-v2 .sn-auth-kicker { display: none; }
  .sn-auth-hero-v2 .sn-auth-forgot { margin-bottom: 12px; }
  .sn-auth-hero-v2 .sn-auth-twofa { margin-bottom: 12px; }
  .sn-auth-hero-v2 .sn-auth-twofa summary { padding-block: 4px; }
  .sn-auth-hero-v2 .sn-auth-underform { margin-top: 22px; }
  .sn-auth-hero-v2 .register-section .form-grid { gap: 14px; }
  .sn-auth-hero-v2 .register-section .city-register-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
  .sn-auth-hero-v2 .register-section .password-grid { grid-template-columns: 1fr; gap: 15px; }
  .sn-auth-hero-v2 .register-section legend small { font-size: .69rem; }
  .sn-auth-hero-v2 .register-section { padding-bottom: 19px; margin-bottom: 20px; }
  .sn-auth-hero-v2 .password-checks { display: grid; gap: 7px; }
}
@media (max-width: 359px) {
  .sn-auth-hero-v2 .sn-auth-copy { width: 91%; padding-left: 16px; }
  .sn-auth-hero-v2 .sn-auth-form-side { padding-inline: 16px; }
  .sn-auth-hero-v2 .register-section .form-grid { grid-template-columns: 1fr; }
  .sn-auth-hero-v2 .sn-auth-photo img { object-position: 70% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-auth-hero-v2 *, .sn-auth-hero-v2 *::before, .sn-auth-hero-v2 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
