/* DînApp — site vitrine
   Charte reprise de mobile/src/theme/theme.ts :
   vert profond (spiritualité) + or discret (savoir/lumière) */

:root {
  --primary: #0B3D2E;
  --primary-light: #145C43;
  --accent: #C9A24B;
  --accent-light: #E0B84A;
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-on-primary: #FFFFFF;
  --text-muted-on-primary: #D9E8DF;
  --border: #E5E1D8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --shadow: 0 20px 45px -20px rgba(11, 61, 46, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-secondary); }

a { color: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-on-primary) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}
.mobile-menu.open {
  max-height: 320px;
  border-top-color: var(--border);
}
.mobile-menu a {
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, #0d3527 60%, #0a2e21 100%);
  color: var(--text-on-primary);
  padding-block: 84px 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--accent-light);
}
.hero-eyebrow::before { background: var(--accent-light); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  background: rgba(224, 184, 74, 0.12);
  border: 1px solid rgba(224, 184, 74, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  margin-top: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.hero p.lead {
  color: var(--text-muted-on-primary);
  font-size: 18px;
  max-width: 46ch;
  margin-top: 20px;
}

/* ---------- Store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.store-badges.center { justify-content: center; }
.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.store-badge img { display: block; height: 53px; width: auto; }
a.store-badge:hover { transform: translateY(-2px); }
.store-badge.disabled {
  position: relative;
  filter: grayscale(1);
  opacity: 0.55;
  cursor: default;
}
.badge-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  font-style: normal;
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #21180a;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  filter: none;
  opacity: 1;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.35);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--accent);
  color: #21180a;
}
.btn-gold:hover { background: var(--accent-light); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; }
.btn-outline.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.hero-trust {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted-on-primary);
}
.hero-trust strong { color: #fff; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art .frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  border: 6px solid rgba(255,255,255,0.14);
  background: var(--primary-light);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screen-scroll {
  display: flex;
  flex-direction: column;
}
.hero-art .frame img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}
html.js .screen-scroll {
  animation: screenScroll 22s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
/* 5 stacked screenshots (4 unique + 1 repeat of the first for a seamless
   loop) inside .screen-scroll — translateY percentages resolve against the
   wrapper's OWN total height (5 images), so one image = 100%/5 = 20%. */
@keyframes screenScroll {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-20%); }
  50%, 70%  { transform: translateY(-40%); }
  75%, 95%  { transform: translateY(-60%); }
  100%      { transform: translateY(-80%); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .screen-scroll { animation: none; }
}
.hero-art .glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 30%, rgba(201,162,75,0.35), transparent 60%);
  z-index: -1;
}
.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 70px;
}

/* ---------- Sections ---------- */
section { padding-block: 88px; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 12px; }
.section-head p { font-size: 17px; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: #EAF5EE;
  margin-bottom: 18px;
  font-size: 22px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Split / highlight sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-text ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}
.split-text li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.split-text li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tone-band {
  background: var(--primary);
  color: var(--text-on-primary);
}
.tone-band p { color: var(--text-muted-on-primary); }
.tone-band .split-text li::before { background: var(--accent); color: #21180a; }

/* ---------- Premium ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.highlight::before {
  content: 'Le plus populaire';
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #21180a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 4px;
}
.plan .price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); font-family: 'Karla', sans-serif; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; flex: 1; }
.plan li { font-size: 14.5px; display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.plan .btn { justify-content: center; width: 100%; }
.plan.free .price { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(circle at 20% 20%, #12503b, var(--primary) 55%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-muted-on-primary); max-width: 50ch; margin-inline: auto; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand span { color: var(--primary); }
.footer-brand p { margin-top: 12px; font-size: 14px; max-width: 32ch; }
.footer-col h4 {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14.5px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Motion: scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}
html.js .features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
html.js .features-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
html.js .features-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
html.js .pricing .reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .pricing .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hover / focus polish ---------- */
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }

.btn { transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.plan {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.highlight:hover { transform: translateY(-6px); }

.split-media img {
  transition: transform 0.4s ease;
}
.split-media:hover img { transform: scale(1.02); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .hero-art .frame { max-width: 240px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-text,
  .split .split-media, .split .split-text { order: initial; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding-block: 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta-band { padding: 40px 22px; }
}
