:root {
  --er-blue: #1f3864;
  --er-blue-hover: #172a4c;
  --er-bg: #fdfdfd;
  --er-text: #14181f;
  --er-muted: #4a5568;
  --er-border: #d8dee8;
  --er-soft: #eef2f8;
  --er-warn: #8a5a00;
  --er-warn-bg: #fff8e8;
  --er-error: #9b1c1c;
  --er-error-bg: #fdeaea;
  --er-ok: #1f3864;
  --content-max: 760px;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--er-text);
  background: var(--er-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--er-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4c7bd9;
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--content-max));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
}

.brand {
  font-weight: 700;
  color: var(--er-blue);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.hero {
  padding: 1.5rem 0 2rem;
}

.badge {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--er-blue);
  background: var(--er-soft);
  border: 1px solid var(--er-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.25;
  color: var(--er-blue);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--er-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--er-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--er-blue-hover);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero-visual {
  margin: 0 0 1.75rem;
}

.hero-visual img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(20, 24, 31, 0.28);
}

.btn-participer {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
}

@media (min-width: 640px) {
  .btn-participer {
    width: auto;
    padding-inline: 2rem;
  }
}

.cta-bottom {
  margin-top: 2rem;
  text-align: center;
}

.turnstile-box {
  margin: 1.5rem 0 1rem;
  min-height: 65px;
}

.btn-secondary {
  background: #fff;
  color: var(--er-blue);
  border: 1px solid var(--er-blue);
}

.btn-secondary:hover {
  background: var(--er-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--er-blue);
  border: 1px dashed var(--er-border);
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--er-border);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  color: var(--er-blue);
}

.section p {
  margin: 0 0 1rem;
  color: var(--er-text);
}

.box {
  background: var(--er-soft);
  border: 1px solid var(--er-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.faq details {
  border-bottom: 1px solid var(--er-border);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--er-blue);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq details p {
  margin: 0.5rem 0 0.25rem;
  color: var(--er-muted);
}

.signature {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.signature img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.signature figcaption {
  font-size: 0.95rem;
  color: var(--er-muted);
}

.form-shell {
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--er-border);
}

.form-shell h2 {
  margin: 0 0 0.5rem;
  color: var(--er-blue);
}

.form-intro {
  color: var(--er-muted);
  margin-bottom: 1.5rem;
}

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: var(--er-error-bg);
  color: var(--er-error);
  border: 1px solid #f0c0c0;
}

.alert-warn {
  background: var(--er-warn-bg);
  color: var(--er-warn);
  border: 1px solid #f0d9a0;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label,
.field .label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hint {
  display: block;
  font-size: 0.875rem;
  color: var(--er-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--er-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--er-text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 44px;
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox label {
  font-weight: 400;
}

.group {
  border: 1px solid var(--er-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

.group legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.check-grid {
  display: grid;
  gap: 0.35rem;
}

.op-card {
  border: 1px solid var(--er-border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.op-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.op-card__head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--er-blue);
}

.op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.op-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.5rem 0 1.5rem;
}

.lots-types-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.lot-type-row {
  margin-bottom: 0;
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .lot-type-row {
    grid-template-columns: 5rem 1fr;
    align-items: center;
  }

  .lot-type-row label {
    margin-bottom: 0;
  }
}

.sub-note {
  font-size: 0.9rem;
  color: var(--er-muted);
  margin-top: 0.65rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.merci {
  display: none;
  padding: 3rem 0 4rem;
  text-align: left;
}

.merci.is-visible {
  display: block;
}

.merci h1 {
  color: var(--er-blue);
  margin-top: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.25rem, var(--content-max));
  }

  .signature {
    align-items: flex-start;
  }
}
