:root {
  --bg: #ffffff;
  --card: #29233f;
  --text: #111827;
  --muted: #5b626f;
  --line: rgba(0, 0, 0, .08);

  /* Nouvelles variables pour les fonds sombres (Inverse) */
  --text-inv: #ffffff;
  --muted-inv: #d2dae5;

  /* Couleur “spirale” du logo */
  --brand: #58B73A;
  --brand-2: #2e6f1f;

  --radius: 18px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(88, 183, 58, .08), transparent 55%),
    radial-gradient(1000px 500px at 90% 10%, rgba(88, 183, 58, .05), transparent 60%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, .05);
  text-decoration: none;
}

.nav-cta {
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(88, 183, 58, .18);
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.main {
  padding: 28px 0 50px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  color: var(--text-inv);
}

.card-dark h1,
.card-dark h2,
.card-dark h3 {
  color: var(--text-inv) !important;
}

.card-dark p {
  color: var(--muted-inv) !important;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 12px 0;
  letter-spacing: .2px;
  color: #111827;
}

h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin: 18px 0 10px;
  color: #58B73A;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  margin: 16px 0 8px;
  color: #1f2937;
  font-weight: 600;
}

p {
  line-height: 1.6;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.2fr .8fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
}

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

/* Form */
form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--text);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  justify-self: start;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

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