/* Parentis share landing — DA alignée sur l’app (tokens + typo + composants) */
:root {
  --accent: #ffbb2c;
  --marine: #1e3a5f;
  --ocean: #1f6a8a;
  --mustard: #b8791e;
  --brick: #a8462f;
  --background: #f0efeb;
  --card: #ffffff;
  --card-peach: #f2d4cc;
  --card-lavender: #e1dafb;
  --card-sand: #dedccd;
  --text: #2a2f36;
  --muted: #5c6773;
  --border: #e4eaf0;
  --radius-card: 16px;
  --radius-btn: 999px;
  --shadow-card: 0 1px 0 rgba(30, 58, 95, 0.04);
  --font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

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

/* ——— Layout type viewer in-app ——— */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: min(440px, 100%);
  margin: 0 auto;
}

.scroll {
  flex: 1;
  padding: 20px 20px 28px;
  padding-bottom: 8px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: var(--accent);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

/* ScreenHeader-like */
.hero {
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero .subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card.tinted-peach {
  background: var(--card-peach);
}

.card.tinted-sand {
  background: var(--card-sand);
}

.card.tinted-lavender {
  background: var(--card-lavender);
}

.card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

.meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 187, 44, 0.22);
  color: var(--marine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Métriques type fiche app */
.metric {
  margin-top: 16px;
}

.metric + .metric {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.metric-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.metric-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric-hint {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Takeaway compare */
.takeaway {
  border: 1px solid rgba(255, 187, 44, 0.45);
  background: rgba(255, 187, 44, 0.12);
}

.takeaway.warn {
  border-color: rgba(168, 70, 47, 0.35);
  background: rgba(168, 70, 47, 0.06);
}

.takeaway .body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

/* Sections Décrypteur */
.section {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.section.action {
  border: 1px solid rgba(255, 187, 44, 0.35);
}

.section.locked {
  border: 1px dashed var(--border);
  background: rgba(240, 239, 235, 0.85);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--background);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--marine);
}

.section.action .section-icon {
  background: rgba(255, 187, 44, 0.25);
  color: var(--text);
}

.section.locked .section-icon {
  background: var(--card);
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--marine);
  line-height: 1.25;
}

.section.locked .section-title {
  color: var(--muted);
}

.section-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}

.section.locked .section-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-locked-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--marine);
}

.preview-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 187, 44, 0.22);
  color: var(--marine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.sheet-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* CTA sticky bas — PublicShareCtaFooter */
.cta-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--background);
  border-top: 1px solid var(--border);
}

.cta-footer .reassurance {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.actions {
  display: grid;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary {
  background: var(--marine);
  color: #fff;
}

.footer-note {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.state {
  padding: 36px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.state.loading::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 187, 44, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  color: var(--brick);
}

@media (min-width: 480px) {
  .scroll {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}
