:root {
  --primary: #e63946;
  --primary-dark: #b02a35;
  --secondary: #1d3557;
  --light: #f7f7f9;
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #e0e0e0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 999px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.08s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: #f1f1f4;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #ffe8ec;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Hero */
.hero {
  padding: 2.4rem 0 2.6rem;
  background: radial-gradient(circle at top left, #ffe8ec 0, #f7f7f9 40%, #f7f7f9 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0.6rem 0 0.75rem;
  color: var(--secondary);
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta strong {
  color: var(--secondary);
}

.hero-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.3rem 1.3rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--secondary);
}

.hero-card-location {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: #eef4ff;
  color: #2b4a8a;
  font-weight: 600;
}

.hero-card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.hero-card-prices .old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card-prices .new {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background-color: #f0f0f4;
  overflow: hidden;
  margin: 0.3rem 0 0.2rem;
}

.hero-progress-bar {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--primary), #ffb703);
}

.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-foot-text {
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-foot-text strong {
  color: var(--secondary);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

/* Sections */
section {
  padding: 2.4rem 0;
}

section:nth-of-type(even) {
  background-color: #fafbff;
}

.section-header {
  text-align: center;
  margin-bottom: 1.9rem;
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--secondary);
}

.section-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Comment ça marche */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.step-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--secondary);
}

.step-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Offres en cours */
.offers-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.offers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.filter-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: #fff;
  cursor: pointer;
}

.filter-pill.active {
  border-color: var(--primary);
  background-color: #ffe8ec;
  color: var(--primary-dark);
  font-weight: 600;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.offer-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.offer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.offer-title {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.15rem;
}

.offer-location {
  font-size: 0.78rem;
  color: var(--muted);
}

.offer-prices {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.offer-prices .old {
  text-decoration: line-through;
  font-size: 0.8rem;
  color: var(--muted);
}

.offer-prices .new {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--primary-dark);
}

.offer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.offer-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: #f0f0f4;
  overflow: hidden;
}

.offer-progress-bar {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--primary), #ffb703);
}

.offer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.offer-foot span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Commerçants */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: center;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.list-check span.icon {
  font-size: 1rem;
  line-height: 1.4;
}

.box-muted {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Local & transparent */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
}

.pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background-color: #eef4ff;
  color: #2b4a8a;
  border: 1px solid #d7e0ff;
}

/* Newsletter */
.newsletter {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.3rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.newsletter-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 0.3rem;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

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

.field input[type="email"],
.field input[type="text"] {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.88rem;
}

.field input[type="email"]:focus,
.field input[type="text"]:focus {
  border-color: var(--primary);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Contact / CTA bas de page */
.bottom-cta {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  padding: 1.3rem 0;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .hero-inner,
  .two-cols,
  .newsletter,
  .offers-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.7rem 0 2rem;
  }
  section {
    padding: 1.9rem 0;
  }
  .offers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-card {
    margin-top: 0.5rem;
  }
  .header-cta {
    display: none;
  }
}
/* Formulaires contact / newsletter */
.contact-form {
  max-width: 520px;
  margin: 1.4rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
}

.contact-form textarea {
  min-height: 160px;
}

.contact-form button {
  cursor: pointer;
  width: 100%;
}

/* Champ honeypot invisible pour les bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Section merci */
.thankyou-section {
  padding: 4rem 0;
}

.thankyou-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.thankyou-box h1 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.thankyou-box p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
