/* =============================================================
   RecetteMoi — espace web (gamme AppMoi)
   Identité RecetteMoi conservée : violet #7C3AED.
   Zéro JS, zéro ressource externe, fonts système.
   Registre brand · couleur committed (le violet porte l'identité)
   · thème clair (usage : cuisine, jour, appétit).
   ============================================================= */

:root {
  /* Violet identitaire (RecetteMoi) */
  --violet:        oklch(0.53 0.245 293);   /* #7C3AED */
  --violet-bright: oklch(0.62 0.20 293);    /* #8b5cf6 */
  --violet-deep:   oklch(0.44 0.20 293);
  --violet-wash:   oklch(0.965 0.018 293);
  --violet-wash-2: oklch(0.945 0.028 293);

  /* Accent chaud, appétit — usage rare */
  --ember:         oklch(0.71 0.185 47);    /* ~#f97316 */

  /* Neutres teintés vers le violet (jamais #000 / #fff) */
  --bg:            oklch(0.995 0.004 293);
  --surface:       oklch(0.978 0.009 293);
  --card:          oklch(1 0.002 293);
  --ink:           oklch(0.29 0.035 293);
  --ink-2:         oklch(0.50 0.028 293);
  --ink-3:         oklch(0.63 0.02 293);
  --line:          oklch(0.91 0.014 293);
  --line-strong:   oklch(0.85 0.02 293);

  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   999px;
  --maxw:          1080px;

  --shadow-soft:   0 1px 2px oklch(0.4 0.05 293 / 0.06),
                   0 10px 30px oklch(0.4 0.08 293 / 0.08);
  --shadow-lift:   0 2px 6px oklch(0.4 0.05 293 / 0.08),
                   0 24px 60px oklch(0.45 0.12 293 / 0.18);

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

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--violet-deep); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2.5px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.995 0.004 293 / 0.92);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--violet-bright), var(--violet-deep));
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.15);
}
.brand__mark span { transform: translateY(-0.5px); }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__menu a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav__menu a:hover { color: var(--ink); text-decoration: none; }
.nav__cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--violet-deep); text-decoration: none; }
.nav__hide-sm { display: none; }
@media (min-width: 620px) { .nav__hide-sm { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.22,1,0.36,1), background 0.15s, box-shadow 0.15s;
}
.btn--primary {
  background: var(--violet);
  color: #fff !important;
  box-shadow: 0 8px 24px oklch(0.53 0.24 293 / 0.30);
}
.btn--primary:hover { background: var(--violet-deep); text-decoration: none; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-deep) !important; text-decoration: none; }
.btn--block { display: flex; justify-content: center; width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 17px; }

/* ---------- Section rhythm ---------- */
section { position: relative; }
.band { padding: 72px 0; }
.band--tint { background: var(--surface); }
.band--tight { padding: 54px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin: 0 0 14px;
}
.eyebrow--ember { color: var(--ember); }

h1, h2, h3 { letter-spacing: -0.025em; color: var(--ink); }
.h-lead {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
}
.h-sec {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 14px;
}
.lede {
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 26px;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
/* eyebrow centré = bloc autonome (portage de l'ancien style inline,
   requis pour rester sous CSP style-src 'self') */
.eyebrow.center { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 24px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero__accent { color: var(--violet); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__reassure { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; }

/* Screenshot in an ambient device frame (no blur, box-shadow glow) */
.shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.4);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: auto -12% -30% 20%;
  height: 60%;
  background: radial-gradient(closest-side, oklch(0.62 0.20 293 / 0.35), transparent 70%);
  z-index: -1;
  filter: none;
}

/* ---------- Steps (numbered, connected) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
  margin-top: 8px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { position: relative; padding-top: 18px; }
.step__n {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--violet-wash);
  color: var(--violet-deep);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 760px) {
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 39px; left: 58px; right: -14px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
  }
}

/* ---------- Split (text + phone) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--rev .split__media { order: -1; }
}
.tick {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
}
.tick li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 16px;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--violet-wash-2);
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
.tick li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 6px; height: 9px;
  border: solid var(--violet-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Phone frame */
.phone {
  width: min(300px, 78%);
  margin: 0 auto;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 6px;
  border-radius: 3px;
  background: oklch(1 0 0 / 0.22);
  z-index: 2;
}
.phone img {
  border-radius: 26px;
  width: 100%;
}

/* ---------- Feature row (not boxed cards) ---------- */
.feats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
@media (min-width: 760px) { .feats { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.feat__ico {
  width: 40px; height: 40px;
  color: var(--violet);
  margin-bottom: 14px;
}
.feat h3 { font-size: 18px; margin: 0 0 7px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Proof strip (restrained, not hero-metric) ---------- */
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  align-items: baseline;
}
.proof__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.proof__k { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.proof__sep { color: var(--line-strong); }
@media (max-width: 620px) { .proof__sep { display: none; } .proof { flex-direction: column; align-items: center; gap: 14px; } }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 34px auto 0;
}
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.plan--feat {
  border-color: var(--violet);
  box-shadow: 0 2px 6px oklch(0.4 0.05 293 / 0.08), 0 20px 48px oklch(0.53 0.15 293 / 0.16);
}
.plan__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--violet);
  padding: 4px 11px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.plan h3 { font-size: 20px; margin: 0 0 4px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.plan__amt { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--ink-3); font-size: 15px; }
.plan__note { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.plan .tick { margin: 6px 0 22px; flex: 1; }
.plan .tick li { font-size: 15px; }
.credits-badge {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--violet-wash-2); color: var(--violet-deep);
  font-size: 12.5px; font-weight: 800;
  margin-right: 4px;
}
.packs {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
}
.packs__title { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.packs__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  background: var(--card);
  min-width: 128px;
}
.pack--best { border-color: var(--violet); }
.pack__amt { font-size: 22px; font-weight: 800; }
.pack__lbl { color: var(--ink-3); font-size: 13px; }
.pack__price { display: block; margin-top: 6px; font-weight: 700; color: var(--violet-deep); }
.pack__bonus { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }

/* ---------- CTA band (committed violet) ---------- */
.cta-band {
  background: linear-gradient(155deg, var(--violet-deep), var(--violet));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  text-align: center;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band .btn--primary {
  background: #fff; color: var(--violet-deep) !important;
  box-shadow: 0 10px 30px oklch(0.2 0.05 293 / 0.3);
}
.cta-band .btn--primary:hover { background: oklch(0.97 0.02 293); }
.cta-band__sub { color: oklch(0.92 0.04 293); font-size: 14.5px; margin: 16px 0 0; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a { color: var(--ink-2); font-size: 14px; }
.foot__links a:hover { color: var(--violet-deep); }
.foot__appmoi {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-3); font-size: 13.5px; margin-top: 8px;
  width: 100%;
}
.foot__appmoi b { color: var(--ink-2); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal { padding: 44px 0 12px; }
.legal__wrap { max-width: 720px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 0 0 6px; }
.legal__date { color: var(--ink-3); font-size: 14px; margin: 0 0 30px; }
.legal h2 {
  font-size: 20px; font-weight: 750;
  margin: 32px 0 10px; padding-top: 6px;
}
.legal h3 { font-size: 16.5px; font-weight: 700; margin: 20px 0 6px; color: var(--ink); }
.legal p { margin: 0 0 12px; color: var(--ink); }
.legal ul { margin: 6px 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; color: var(--ink); }
.legal li::marker { color: var(--violet); }
.legal strong { font-weight: 700; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 8px 0 18px;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left; padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal th { background: var(--violet-wash); font-weight: 700; }
.legal__tools {
  display: block; overflow-x: auto;
}

/* ---------- Page introuvable (404) ---------- */
.nf { text-align: center; padding: clamp(24px, 6vh, 64px) 0; }
.nf__code {
  font-size: clamp(80px, 20vw, 168px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--violet);
  margin: 8px 0 14px;
  font-variant-numeric: tabular-nums;
}
.nf .h-lead { margin-left: auto; margin-right: auto; max-width: 16ch; }
.nf .lede { margin-left: auto; margin-right: auto; }
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
