:root {
  --bg: #f5efe8;
  --bg-soft: #fcf8f4;
  --surface: rgba(255, 252, 248, 0.92);
  --surface-strong: rgba(255, 252, 248, 0.98);
  --text: #312b27;
  --muted: #786d64;
  --border: #e6d8cb;
  --line: rgba(230, 216, 203, 0.85);
  --button: #efe2d5;
  --button-hover: #e7d6c5;
  --shadow: 0 14px 40px rgba(91, 72, 54, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 28%),
    linear-gradient(to bottom, var(--bg-soft), var(--bg));
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
textarea,
select {
  transition: all 0.2s ease;
}

.site-wrapper {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 16px 42px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 6px 0 26px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--surface);
  border-color: var(--border);
}

.hero-page,
.content-page {
  min-height: calc(100vh - 110px);
}

.hero-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card,
.page-intro,
.offer-card,
.steps-list,
.contact-form,
.soft-cta,
.message,
.crm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  width: 100%;
  max-width: 740px;
  text-align: center;
  padding: 56px 30px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.page-intro,
.offer-card,
.steps-list,
.contact-form,
.soft-cta,
.message,
.crm-card {
  padding: 26px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
}

.intro {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.button-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 30px 0 16px;
}

.big-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--button);
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(91, 72, 54, 0.05);
}

.big-button {
  width: 100%;
  padding: 16px 18px;
}

.small-button {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.big-button:hover,
.small-button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.big-button:active,
.small-button:active {
  transform: translateY(0);
}

.mini-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.offer-card p:last-child,
.soft-cta p:last-child,
.page-intro p:last-child {
  margin-bottom: 0;
}

.steps-list {
  display: grid;
  gap: 18px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-item:not(:last-child) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.step-number {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #d9c3ac;
  box-shadow: 0 0 0 4px rgba(231, 214, 197, 0.38);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.soft-cta {
  text-align: center;
}

.soft-cta .big-button {
  margin-top: 10px;
}

.message.success {
  background: #f3f8f0;
}

.message.error {
  background: #fbf2f1;
}

/* CRM */
.crm-table-wrapper {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.crm-table th,
.crm-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.crm-table th {
  color: var(--muted);
  font-weight: 700;
}

.crm-table tr:last-child td {
  border-bottom: none;
}

.crm-table textarea {
  min-height: 90px;
  padding: 10px 12px;
}

.crm-table select {
  min-width: 130px;
  padding: 10px 12px;
}

.crm-besoin {
  min-width: 220px;
}

.table-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .site-wrapper {
    padding: 14px 14px 30px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
  }

  .brand {
    text-align: center;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    background: rgba(255, 252, 248, 0.6);
    border: 1px solid var(--line);
  }

  .hero-card {
    padding: 38px 20px;
    border-radius: 24px;
  }

  .page-intro,
  .offer-card,
  .steps-list,
  .contact-form,
  .soft-cta,
  .message,
  .crm-card {
    padding: 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: 2rem;
  }

  .step-item {
    gap: 12px;
  }
}
.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crm-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.7);
}

.danger-button {
  background: #f6dfdc;
  border-color: #e7bdb7;
}

.danger-button:hover {
  background: #f1d1cb;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.badge-nouveau {
  background: #f4eee6;
  border-color: #e6d8cb;
}

.badge-contacté {
  background: #e8f1fb;
  border-color: #bfd5ee;
}

.badge-en-cours {
  background: #fff4df;
  border-color: #eed7a2;
}

.badge-client {
  background: #e6f4ea;
  border-color: #b7ddc2;
}

.inline-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .crm-filters {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
  }
}