:root {
  --brand: #0d7a6f;
  --brand-dark: #0a5f56;
  --ink: #1b1b1b;
  --muted: #666;
  --line: #e4e4e4;
  --bg: #f6f7f8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 18px 60px; }
header.bar {
  background: var(--brand);
  color: #fff;
  padding: 16px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .3px;
}

/* Choix de langue */
.lang-screen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.lang-screen p { color: var(--muted); margin: 0; }
.lang-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lang-btn {
  min-width: 160px;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
  border-radius: 14px;
  cursor: pointer;
}
.lang-btn:active { background: var(--brand); color: #fff; }

h1.title { font-size: 22px; margin: 18px 0 6px; }
.intro { color: #333; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

.contract { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 18px; margin-top: 16px; }
.contract h2 { font-size: 17px; margin: 20px 0 6px; color: var(--brand-dark); }
.contract p { margin: 8px 0; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 18px; }
.form h2 { margin: 0 0 12px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input[type=text] {
  width: 100%;
  padding: 13px 12px;
  font-size: 16px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
}
.accept { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; }
.accept input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.accept label { font-weight: 600; }
.note { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
button.submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
button.submit:disabled { opacity: .6; }
.msg { margin-top: 14px; padding: 14px; border-radius: 10px; font-weight: 600; display: none; }
.msg.ok { background: #e6f5ec; color: #1a6b38; display: block; }
.msg.ko { background: #fbeaea; color: #a12626; display: block; }
.hidden { display: none; }

/* RTL */
[dir=rtl] .accept { flex-direction: row-reverse; }
[dir=rtl] .field label, [dir=rtl] .accept label { text-align: right; }
