*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00e5a0;
  --green-dim: rgba(0,229,160,0.08);
  --green-border: rgba(0,229,160,0.2);
  --bg: #080a0a;
  --surface: #0f0f0f;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.1);
  --text: #e0e0e0;
  --muted: #555;
  --white: #ffffff;
}

[data-theme=light] {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.12);
  --text: #1a1a1a;
  --muted: #888;
  --white: #0a0a0a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  transition: background .3s;
}

.nav-left { flex: 1; }



.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
[data-theme=light] nav { background: rgba(245,245,242,0.9); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: .04em;
}

.nav-right { display: flex; align-items: center; gap: 8px; }

.pill {
  display: flex;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pb {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
}
.pb.on { background: var(--green); color: #080a0a; }

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.container {
  width: 100%;
  max-width: 560px;
}

.header {
  text-align: center;
  margin-bottom: 48px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-dim);
  border: 0.5px solid var(--green-border);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
h1 em { font-style: normal; color: var(--green); }

.subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* FORM CARD */
.form-card {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 20px;
  padding: 36px 32px;
}

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
label span { color: var(--green); margin-left: 2px; }

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.08);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: none; height: 110px; line-height: 1.6; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select option { background: #0f0f0f; color: #e0e0e0; }

/* RADIO */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-item { position: relative; }
.radio-item input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-item label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 0.5px solid var(--border2);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  margin: 0;
  white-space: nowrap;
}
.radio-item input[type=radio]:checked + label {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
  font-weight: 500;
}

.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 24px 0;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  background: var(--green);
  color: #080a0a;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s, transform .2s;
  letter-spacing: -.01em;
  position: relative;
}
.submit-btn:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform .2s;
  flex-shrink: 0;
}
.submit-btn:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }

.btn-loader { display: none; }
.submit-btn.loading .btn-text { opacity: 0.5; }
.submit-btn.loading .btn-loader { display: flex; }
.submit-btn.loading .btn-arrow { display: none; }

.spinner {
  width: 18px;
  height: 18px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ERROR */
.error-msg {
  display: none;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #ff6b6b;
  line-height: 1.5;
}
.error-msg.visible { display: block; }

/* SUCCESS */
.success-state {
  display: none;
  text-align: center;
  padding: 48px 32px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { width: 28px; height: 28px; }
.success-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.success-sub { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* NOTE */
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* LANG */
[data-lang=fr] .en { display: none; }
[data-lang=en] .fr { display: none; }

/* MOBILE */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .form-card { padding: 24px 20px; }
  .radio-group { gap: 8px; }
}

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .form-card { padding: 24px 20px; }
  .radio-group { gap: 8px; }
  .pill { display: none; }  /* ← ajoute cette ligne */
}