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

:root {
  --blue: #F07C21;
  --blue-dark: #d96710;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --red: #dc2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9fafb;
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: #F07C21;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Grille de points décoratifs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-content h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-content p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-top: 6px;
}

/* ===== FORM SECTION ===== */
.form-section {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 24px 64px;
}

.form-wrapper {
  width: 100%;
  max-width: 700px;
}

/* ===== INTRO ===== */
.form-intro {
  margin-bottom: 36px;
  line-height: 1.7;
  color: var(--gray-600);
  font-size: .95rem;
}

.intro-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.intro-greeting::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 4px;
}

/* ===== FIELDS ===== */
.field-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.field-row-submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.field-row label {
  padding-top: 9px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-800);
  text-align: right;
}

.req { color: var(--red); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--gray-800);
  background: white;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(240, 124, 33, .18);
}

textarea { resize: vertical; }

/* Ligne split (civilité + prénom + nom) */
.field-row-split label { padding-top: 9px; }
.split-inputs {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 8px;
}

/* File input */
.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="file"] { display: none; }

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-800);
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.file-label:hover { border-color: var(--blue); background: #fff4e8; color: var(--blue); }

.file-name {
  font-size: .8rem;
  color: var(--gray-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* Submit row */
.field-row-submit label { display: none; }
.field-row-submit { grid-template-columns: 180px 1fr; }

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F07C21;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 11px 32px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.btn-submit:hover { background: #d96710; }
.btn-submit:active { transform: scale(.97); }

/* ===== SUCCESS STATE ===== */
.success-state {
  text-align: center;
  padding: 60px 20px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-state h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.success-state p { color: var(--gray-600); font-size: .95rem; margin-bottom: 6px; }
.success-state p#success-ref { font-weight: 600; color: var(--blue); font-size: 1rem; }
.success-sub { max-width: 420px; margin: 0 auto 28px; line-height: 1.6; }

/* ===== CHECKBOX ===== */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding-top: 7px;
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 5px;
  background: white;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
  position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-text { font-size: .875rem; color: var(--gray-800); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: .8rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  background: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-row label { text-align: left; padding-top: 0; }
  .split-inputs { grid-template-columns: 70px 1fr 1fr; }
  .field-row-submit { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}
