:root {
  --bg: #f3f4f6;
  --bg-muted: #e5e7eb;
  --card-bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #16a34a; /* vert */
  --primary-dark: #15803d;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --radius-lg: 16px;
  --radius-md: 10px;
}

/* Reset léger */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.logo span {
  color: var(--primary);
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
}

.main {
  padding: 2.5rem 0 3rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.hero-text h1 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-text p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Cards */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.form-card {
  margin-top: 1.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

/* Form */

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

/* Helpers */

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section-muted {
  background: var(--bg-muted);
  padding: 2rem 0;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Lists */

.bullet-list {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.bullet-list li {
  margin-bottom: 0.25rem;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.info-list li {
  margin-bottom: 0.25rem;
}

/* Company info */

.company-info {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Actions */

.actions {
  margin-top: 1.25rem;
}

/* Payment */

.payment-box {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Checkbox */

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal {
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav a {
    margin-left: 0;
    margin-right: 0.75rem;
  }
}
