:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --border: rgba(255,255,255,.12);
  --orange: #f5a623;
  --orange-2: #e8722a;
  --grad: linear-gradient(120deg, #f5a623 0%, #e8722a 100%);
  --white: #ffffff;
  --text-muted: #9a9a9a;
  --error: #ff5b5b;
  --success: #29c17a;
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.req { color: var(--orange); }
.hint { color: var(--text-muted); font-weight: 400; font-size: .85em; }
.container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ===== Banner ===== */
.banner { width: 100%; background: #000; }
.banner-img { width: 100%; height: auto; }

/* ===== Language toggle ===== */
.lang-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lang-bar-inner { display: flex; justify-content: flex-end; padding: 10px 20px; }
.lang-toggle {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--grad); color: #0a0a0a; }
[dir="rtl"] .lang-bar-inner { justify-content: flex-start; }

/* ===== Page / intro ===== */
.page { padding: 48px 0 80px; }
.intro {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.intro p {
  color: rgba(255,255,255,.75);
  font-size: .98rem;
  line-height: 1.85;
  margin: 0;
}
[dir="rtl"] .intro p { line-height: 2; font-size: 1.02rem; }

/* ===== Form ===== */
.nom-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--panel-2);
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,166,35,.15);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239a9a9a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
[dir="rtl"] select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 36px;
}
select option { background: var(--panel-2); color: var(--white); }
input[type="date"] { color-scheme: dark; }

.word-count { align-self: end; font-size: .78rem; color: var(--text-muted); }
.word-count.over { color: var(--error); font-weight: 700; }

/* ===== Sector radios ===== */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: .88rem;
  transition: border-color .2s ease, background .2s ease;
}
.radio-pill:has(input:checked) {
  border-color: var(--orange);
  background: rgba(245,166,35,.1);
}
.radio-pill input { accent-color: var(--orange); }

/* ===== File input ===== */
.file-input {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  font-family: inherit;
  font-size: .88rem;
  background: var(--panel-2);
  color: var(--text-muted);
  cursor: pointer;
}
.file-msg { font-size: .8rem; color: var(--text-muted); min-height: 1em; }
.file-msg.error { color: var(--error); font-weight: 700; }

/* ===== Declaration ===== */
.declaration {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.declaration > p { margin: 0; font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.75); }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  cursor: pointer;
}
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--orange); }

/* ===== Submit ===== */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 14px 30px -10px rgba(232,114,42,.55);
}
.submit-btn:hover { transform: translateY(-2px); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-status {
  text-align: center;
  margin: -6px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(41,193,122,.14);
  color: var(--success);
  font-weight: 700;
}
.form-status--error { background: rgba(255,91,91,.12); color: var(--error); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
}
.footer-title { color: var(--text-muted); font-size: .85rem; margin: 0 0 10px; }
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.footer-contacts a { font-size: .88rem; color: rgba(255,255,255,.8); }
.footer-contacts a:hover { color: var(--orange); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .nom-form { padding: 24px 18px; }
  .intro { padding: 20px; }
}
