/* ============================================================
   MyReklam - Landing & pages legales
   Identite reelle : vert Myreklam + accent or ("my's")
   ============================================================ */

:root {
  /* Charte de marque : VERT (primaire) + ORANGE (secondaire) */
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-darker: #166534;
  --brand-soft: #dcfce7;
  --brand-soft-2: #f0fdf4;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-darker: #c2410c;
  --accent-soft: #fff7ed;

  --bg: #ffffff;
  --bg-alt: #f6faf3;
  --surface: #ffffff;
  --text: #16231a;
  --muted: #586b5c;
  --line: #e2ece0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(20, 50, 25, 0.06);
  --shadow: 0 20px 50px rgba(20, 60, 28, 0.12);
  --shadow-lg: 0 30px 80px rgba(20, 60, 28, 0.20);
  --container: 1140px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

h3 { font-size: 1.18rem; margin-bottom: 8px; }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-darker);
  background: var(--brand-soft);
  border: 1px solid #cfe7c4;
  border-radius: 999px;
}

.lead { font-size: 1.16rem; color: var(--muted); max-width: 60ch; }

/* ---------- Maintenance top bar ---------- */
.maintenance-bar {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 16px;
}
.maintenance-bar strong { font-weight: 800; }
.maintenance-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
}
.brand img { width: 34px; height: 34px; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}
.nav a:hover { color: var(--brand-dark); }
.nav .btn-sm { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.30);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft-2); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Store badges ---------- */
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 11px 22px;
  background: #101a12;
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .store-text small { font-size: 0.7rem; opacity: 0.78; font-weight: 600; }
.store-badge .store-text strong { font-size: 1.06rem; font-weight: 800; }
.helper-text { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0 84px;
}
.hero-copy .lead { margin-bottom: 6px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.hero-points li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: min(440px, 100%);
  filter: drop-shadow(0 30px 50px rgba(20, 60, 28, 0.22));
}

/* ---------- Generic sections ---------- */
section.block { padding: 78px 0; }
.block.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 16px;
}
.feature-ico.is-accent { background: var(--accent-soft); color: var(--accent-dark); }
.feature-ico svg { width: 24px; height: 24px; }
.feature-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Rewards / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Split (apps mobile / web) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.app-card.is-live { border-color: #bfe3b0; background: var(--brand-soft-2); }
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag.live { background: var(--brand); color: #fff; }
.tag.soon { background: var(--accent-soft); color: var(--accent-darker); border: 1px solid #fed7aa; }
.app-card p { color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.legal .back-link:hover { color: var(--brand-dark); }
.legal > header { margin-bottom: 8px; }
.legal h1 { margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
.legal section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.legal section:first-of-type { border-top: none; }
.legal h2 { font-size: 1.3rem; }
.legal p, .legal li { color: #38483b; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-dark); font-weight: 600; }

.callout {
  background: var(--brand-soft-2);
  border: 1px solid #cfe7c4;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}
.callout strong { color: var(--brand-darker); }

/* ---------- Contact / cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.18rem; }
.contact-card p { color: var(--muted); }
.contact-card a.mail {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 24px;
  padding: 56px 44px;
  text-align: center;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0 auto 26px; }
.cta-band .store-badge { background: #0c140d; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0e1a10;
  color: #c9d6cc;
  padding: 52px 0 32px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer .brand { color: #fff; }
.site-footer p { color: #93a597; font-size: 0.94rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d6cc; text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.86rem;
  color: #93a597;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(320px, 80%); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.compact { display: flex; gap: 14px; }
  .nav.compact a:not(.btn-sm) { display: none; }
  section.block { padding: 56px 0; }
  .split, .card-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 22px; }
}

@media (max-width: 520px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .store-badge { min-width: 0; flex: 1; }
}
