/* Page d'inscription — s'appuie sur accueil.css (couleurs, boutons, en-tête). */
.signup-body { background: #fff; }
.signup-header { position: static; backdrop-filter: none; }
.signup-switch { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--text); font-size: 14px; }

.signup-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 56px 6% 80px; }
.signup-aside { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.signup-aside h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -2px; }

.signup-card { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(26, 45, 52, .08); }
.signup-card h2 { margin-bottom: 22px; font-size: 26px; letter-spacing: -.8px; }
#signup-form { display: grid; gap: 18px; }

.profile-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.profile-choice legend { margin-bottom: 10px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 700; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: 4px; height: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.choice-body strong { color: var(--navy); font-size: 15px; }
.choice-body small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.choice:hover .choice-body { border-color: #b7c4c9; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--green); outline-offset: 2px; }
.choice-buyer input:checked + .choice-body { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 3px rgba(20, 110, 90, .12); }
.choice-manufacturer input:checked + .choice-body { border-color: #a8560c; background: #fdf1e3; box-shadow: 0 0 0 3px rgba(168, 86, 12, .12); }
/* « Les deux » : dégradé vert → orange sur toute la case. */
.choice-both .choice-body { border-color: transparent; background: linear-gradient(135deg, #e9f4f0 0%, #fdf1e3 100%); }
.choice-both:hover .choice-body { border-color: transparent; }
.choice-both input:checked + .choice-body { background: linear-gradient(135deg, #146e5a 0%, #a8560c 100%); box-shadow: 0 8px 20px rgba(20, 110, 90, .22); }
.choice-both input:checked + .choice-body strong, .choice-both input:checked + .choice-body small { color: #fff; }
.choice-both input:focus-visible + .choice-body { outline-color: #a8560c; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; color: var(--navy); font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfd8dc; border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px "DM Sans", sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.field input::placeholder { color: #a3adb2; }
.field input:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px rgba(20, 110, 90, .15); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { min-height: 0; color: #b3261e; font-size: 13px; font-weight: 500; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 96px; }
.password-toggle { position: absolute; top: 6px; right: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--green); font: 600 13px "DM Sans", sans-serif; cursor: pointer; }
.password-toggle:hover { background: var(--mint); }
.strength { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: #e8ecee; }
.strength i { display: block; width: 0; height: 100%; background: #d9a441; transition: width .25s ease, background .25s ease; }
.strength i[data-level="1"], .strength i[data-level="0"] { background: #c8553d; }
.strength i[data-level="3"], .strength i[data-level="4"] { background: var(--green); }

.terms { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; line-height: 1.45; cursor: pointer; }
.terms input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--green); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.submit { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.submit:disabled { opacity: .7; cursor: progress; transform: none; }
.signup-foot { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .signup-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 5% 56px; }
  .signup-aside { gap: 14px; padding-top: 0; }
}
@media (max-width: 700px) {
  .signup-header { flex-wrap: nowrap; }
  .signup-switch { font-size: 13px; gap: 8px; }
  .signup-switch .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .signup-card { padding: 22px 18px; border-radius: 14px; box-shadow: none; }
  .profile-choice { grid-template-columns: 1fr; }
  .choice-body { grid-template-columns: 1fr; padding: 12px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .field input { font-size: 16px; }
}


/* Vie : entrée en scène, illustration flottante, bouton qui suit le profil. */
.signup-lead { margin: 0; max-width: 460px; color: var(--text); font-size: 17px; line-height: 1.6; }
.signup-art { position: relative; max-width: 460px; margin-top: 8px; }
.signup-art .hero-art { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .35s both; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(26, 45, 52, .12); white-space: nowrap; }
.float-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-out infinite; }
.chip-nda { top: -14px; right: -8px; animation: rise .6s ease .9s both, chip-float 5s ease-in-out 1.6s infinite; }
.chip-offers { bottom: 26px; left: -14px; animation: rise .6s ease 1.1s both, chip-float 6s ease-in-out 1.2s infinite reverse; }
.chip-cert { bottom: -16px; right: 28px; animation: rise .6s ease 1.3s both, chip-float 5.5s ease-in-out 1.9s infinite; }
.chip-offers i { background: #e5a064; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.signup-aside > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.signup-aside > :nth-child(2) { animation-delay: .1s; }
.signup-aside > :nth-child(3) { animation-delay: .2s; }
.signup-card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
#signup-form > * { animation: rise .5s ease both; }
#signup-form > :nth-child(1) { animation-delay: .3s; }
#signup-form > :nth-child(2) { animation-delay: .4s; }
#signup-form > :nth-child(3) { animation-delay: .45s; }
#signup-form > :nth-child(4) { animation-delay: .5s; }
#signup-form > :nth-child(5) { animation-delay: .55s; }

.choice-body { transition: transform .2s ease, border-color .18s ease, background .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .choice:hover .choice-body { transform: translateY(-3px); } }
.choice input:checked + .choice-body strong::after { content: "✓"; display: inline-block; margin-left: 8px; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.field input:focus { transform: translateY(-1px); }
.field input { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }

/* Le bouton prend la couleur du profil choisi. */
.submit { transition: background .3s ease, transform .18s ease, box-shadow .18s ease; }
#signup-form[data-profile="manufacturer"] .submit { background: #a8560c; }
#signup-form[data-profile="manufacturer"] .submit:hover { background: #8a4608; }
#signup-form[data-profile="both"] .submit { background: linear-gradient(120deg, #146e5a, #a8560c); }
#signup-form[data-profile="manufacturer"] .field input:focus { border-color: #a8560c; box-shadow: 0 0 0 3px rgba(168, 86, 12, .15); }
#signup-form[data-profile="manufacturer"] .terms input { accent-color: #a8560c; }
.signup-art .gear-a { transition: fill .4s ease; }
body[data-profile="manufacturer"] .signup-art .gear-a { fill: #a8560c; }
body[data-profile="manufacturer"] .signup-art .gear-b { fill: #146e5a; }
body[data-profile="both"] .signup-art .gear-a { fill: #146e5a; }

@media (max-width: 900px) {
  .signup-art { max-width: 400px; }
  .chip-nda { right: 4px; }
  .chip-offers { left: 4px; }
}
@media (max-width: 700px) {
  .signup-art { display: none; }
  .signup-lead { font-size: 15px; }
}

.terms a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
