/* Moodstone : page d'accueil. Couleurs = tokens de l'app (mobile/src/theme/tokens.json). */
:root {
  --bg: #ffffff;
  --surface: #f4f1ed;
  --surface-raised: #ffffff;
  --border: #e6e0d9;
  --text: #1f1a17;
  --text-muted: #615851;
  --accent: #4b3d33;
  --accent-soft: #ede5dd;
  --on-accent: #ffffff;
  --focus: #2f6fdf;
  --mood-5: #bd7c00;
  --mood-4: #3f9a4a;
  --mood-3: #7d8a95;
  --mood-2: #4f74d9;
  --mood-1: #8a46b8;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 8px 24px rgb(31 26 23 / 0.12);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

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

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* en-tête */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; color: var(--text); }
.stone { width: 28px; height: 22px; border-radius: 52% 48% 46% 54% / 60% 58% 42% 40%; background: var(--accent); }
.top nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; margin-left: 20px; }
.top nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 32px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.hero p { font-size: 19px; color: var(--text-muted); margin: 0 0 28px; max-width: 34em; }
.moods { display: flex; gap: 8px; margin-bottom: 28px; }
.moods span { width: 14px; height: 14px; border-radius: 50%; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(1.12); }

.phone { justify-self: center; width: auto; height: min(560px, 72vh); max-width: 78vw; object-fit: cover; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--accent); background: var(--bg); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg); }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
.lead { color: var(--text-muted); max-width: 40em; margin: 0 0 32px; }

.problems { display: grid; gap: 16px; }
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
section.alt .card { background: var(--surface); border-color: transparent; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-muted); }

.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--text); font-weight: 700;
}

.features { display: grid; gap: 16px; }
.basics { color: var(--text-muted); margin-top: 24px; font-size: 15px; }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 20px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 28px; box-shadow: var(--shadow); border: 4px solid var(--accent); }
.shots figcaption { color: var(--text-muted); font-size: 15px; margin-top: 12px; }

.prices { display: grid; gap: 16px; }
.price .amount { font-size: 32px; font-weight: 700; margin: 4px 0 12px; }
.price.main { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--text); padding: 2px 10px; border-radius: 999px; }

.faq details { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 12px; }
section.alt .faq details { background: var(--surface); border-color: transparent; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-muted); margin: 12px 0 0; }

.final { text-align: center; }
.final .lead { margin-inline: auto; }

footer { padding: 32px 0 48px; color: var(--text-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--text-muted); }

/* page de texte (confidentialité) */
.prose { max-width: 42em; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 16px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-muted); }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .problems, .prices { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .top nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
