/* ─────────────────────────────────────────────────────────────────────────
   MyAsso — charte graphique « Émeraude » portée en CSS.
   Source des tokens : lib/shared/theme/app_colors.dart (app Flutter).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette canonique */
  --emeraude:      #22A06B;
  --emeraude-dark: #1A7F57;
  --petrole:       #0F766E;
  --rose:          #C46B7E;
  --rose-soft:     #F6E3E9;
  --rose-ink:      #8A3A52;
  --bg:            #EEF1F6;
  --surface:       #FFFFFF;
  --ink:           #1F2937;
  --ink-soft:      #64748B;
  --tag-bg:        #DCF2E7;
  --tag-ink:       #1A7F57;
  --border:        #E7ECF1;
  --divider:       #D0D9E4;
  --success:       #2E7D32;
  --error:         #D92D20;

  /* Rayons (AppRadius) */
  --r-sm:    8px;
  --r-md:   12px;
  --r-field:20px;
  --r-card: 22px;
  --r-xxl:  28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);

  --maxw: 1080px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--petrole); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header / nav ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand img { height: 38px; width: 38px; object-fit: contain; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--emeraude); text-decoration: none; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: var(--r-pill);
  border: none; cursor: pointer; transition: all .18s ease; text-align: center;
}
.btn-primary { background: var(--emeraude); color: #fff; }
.btn-primary:hover { background: var(--emeraude-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--emeraude); color: var(--emeraude); text-decoration: none; }
.btn-block { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--tag-bg); color: var(--tag-ink);
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--emeraude); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Maquette téléphone */
.phone-mock {
  justify-self: center;
  width: 280px; height: 560px; border-radius: 44px;
  background: linear-gradient(160deg, var(--emeraude), var(--petrole));
  padding: 14px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--surface); border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
}
.phone-screen img { width: 96px; height: 96px; }
.phone-screen .ps-title { font-weight: 800; font-size: 22px; }
.phone-screen .ps-sub { color: var(--ink-soft); font-size: 14px; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--tag-bg); color: var(--emeraude-dark);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ── CTA bandeau ───────────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--emeraude), var(--petrole)); border-radius: var(--r-xxl); padding: 56px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 17px; opacity: .92; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--emeraude-dark); }
.cta-band .btn-primary:hover { background: #f1fff8; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Pages de contenu (legal / support) ───────────────────────────────── */
.page { padding: 56px 0 88px; }
.page-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 48px; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.page-inner h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.page-inner .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.page-inner h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.page-inner h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.page-inner p, .page-inner li { color: var(--ink); font-size: 15.5px; margin-bottom: 12px; }
.page-inner ul { padding-left: 22px; }
.page-inner li { margin-bottom: 6px; }
.callout { background: var(--tag-bg); border-radius: var(--r-md); padding: 16px 18px; color: var(--tag-ink); font-size: 14.5px; margin: 18px 0; }
.callout.warn { background: var(--rose-soft); color: var(--rose-ink); }

/* ── Formulaire (reset) ────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 40px; max-width: 460px; margin: 56px auto; box-shadow: var(--shadow-md); }
.form-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.form-card .sub { color: var(--ink-soft); text-align: center; margin-bottom: 28px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--r-field);
  background: var(--surface); transition: border-color .15s ease;
}
.field input:focus { outline: none; border-color: var(--emeraude); box-shadow: 0 0 0 3px rgba(34, 160, 107, .12); }
.field input.code { letter-spacing: 8px; text-align: center; font-weight: 700; }
.form-msg { font-size: 14.5px; padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--tag-bg); color: var(--success); }
.form-msg.err { background: var(--rose-soft); color: var(--error); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink); font-size: 15px; margin-bottom: 9px; font-weight: 500; }
.footer-col a:hover { color: var(--emeraude); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 24px; color: var(--ink-soft); font-size: 13.5px; text-align: center; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-mock { order: -1; }
  .hero h1 { font-size: 40px; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .cta-band { padding: 40px 24px; }
  .page-inner, .form-card { padding: 28px; }
}
