/* ============================================================
 * Preuves de Prières — app PWA (/app/)
 * Refonte design system PSP (handoff 2026-06, deliverable 2) :
 * fond clair #FBF7F1, violets profonds + or champagne, titres serif
 * (Cormorant Garamond), UI Hanken Grotesk. Cf. app-3-ecrans.html.
 * ============================================================ */

/* --- Fonts self-hostées (mêmes fichiers que la landing) ------------------ */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-600-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-var-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/eb-garamond-400-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/eb-garamond-var-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-var-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ---------------------------------------------------------------- */

:root {
  --plum-900: #190721;
  --plum-800: #240E30;
  --plum-700: #341644;
  --plum-600: #48205F;
  --violet: #7C42A6;
  --violet-glow: #B074DC;
  --gold: #C9A24C;
  --gold-soft: #E0C588;
  --gold-deep: #9C7430;
  --cream: #F3ECDD;
  --ink: #241A2C;
  --ink-soft: #5C5064;
  --lilac: #D9CBE8;
  --lilac-dim: #B2A1C4;
  --screen: #FBF7F1;
  --card-line: rgba(124, 66, 166, 0.16);
  --hair: rgba(36, 26, 44, 0.08);
  --danger: #B43C3C;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--screen);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--screen);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(124, 66, 166, 0.35);
  outline-offset: 2px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Coquille --------------------------------------------------------------- */

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.boot-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  text-align: center;
  margin: 40vh 0 0;
  color: var(--ink);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--hair);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-button .emblem,
.brand-intro .emblem {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-button .emblem svg,
.brand-intro .emblem svg {
  width: 30px;
  height: 30px;
  stroke-width: 1;
}

.brand-button .wm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.pill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 162, 76, 0.5);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.view {
  flex: 1;
  padding: 20px 22px 28px;
}

.tabs {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-around;
  padding: 11px 8px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hair);
  background: #fff;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 2px 10px;
}

.tab svg {
  width: 19px;
  height: 19px;
}

.tab.active {
  color: var(--gold-deep);
}

/* --- Têtes d'écran ------------------------------------------------------------ */

.screen-head {
  margin-bottom: 14px;
}

.kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}

.screen-head h1,
.screen-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.1;
  margin: 5px 0 0;
  color: var(--ink);
}

.lead {
  color: var(--ink-soft);
  margin: 11px 0 0;
}

.lead.small {
  font-size: 13.5px;
  line-height: 1.45;
}

.body {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* --- Bouton d'enregistrement (le geste central) -------------------------------- */

.today {
  display: flex;
  flex-direction: column;
}

.record {
  position: relative;
  margin: 22px auto 10px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #2A1A07;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 18px 40px -14px rgba(201, 162, 76, 0.9), 0 0 0 8px rgba(201, 162, 76, 0.12);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.record::after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 76, 0.4);
  pointer-events: none;
}

.record:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -14px rgba(201, 162, 76, 0.95), 0 0 0 8px rgba(201, 162, 76, 0.16);
}

.record-icon {
  display: block;
  margin-top: -16px;
}

.record-icon svg {
  width: 32px;
  height: 32px;
}

.record-label {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
}

.record.locked {
  background: linear-gradient(180deg, #EBE3F2, #DCCFE9);
  color: var(--plum-700);
  box-shadow: none;
}

.record.recording {
  background: linear-gradient(180deg, var(--violet), var(--plum-600));
  color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(124, 66, 166, 0.9), 0 0 0 8px rgba(124, 66, 166, 0.14);
}

.record-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(176, 116, 220, 0.55);
  animation: ring 1.8s ease-out infinite;
  pointer-events: none;
}

.record-ring.ring-two {
  animation-delay: 0.9s;
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wave {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 10px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: rgba(243, 236, 221, 0.85);
  animation: bounce 0.9s ease-in-out infinite;
}

.wave i:nth-child(2) { animation-delay: 0.15s; }
.wave i:nth-child(3) { animation-delay: 0.3s; }
.wave i:nth-child(4) { animation-delay: 0.45s; }

@keyframes bounce {
  0%, 100% { height: 4px; }
  50% { height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .record-ring,
  .wave i {
    animation: none;
  }
}

/* --- Stats ----------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 12px 14px;
}

.stat.wide {
  grid-column: 1 / -1;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--plum-700);
  line-height: 1;
}

.stat span {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* --- Note du dernier audio --------------------------------------------------------- */

.note-panel {
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid rgba(124, 66, 166, 0.18);
  border-radius: 16px;
  padding: 15px;
  margin: 6px 0 4px;
}

.note-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 3px 0 0;
  color: var(--ink);
}

.note-panel .body {
  margin: 6px 0 0;
  font-size: 12.5px;
}

.textarea {
  width: 100%;
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(36, 26, 44, 0.12);
  border-radius: 11px;
  padding: 11px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  min-height: 72px;
  resize: vertical;
}

.textarea::placeholder {
  color: #9a8fa3;
}

.action-row {
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

/* --- Boutons ------------------------------------------------------------------------- */

.primary {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: #2A1A07;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 26px -12px rgba(201, 162, 76, 0.8);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 30px -12px rgba(201, 162, 76, 0.95);
}

.primary svg {
  width: 15px;
  height: 15px;
}

.primary.compact {
  flex: 1;
  padding: 10px 16px;
  font-size: 12.5px;
}

.secondary {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(124, 66, 166, 0.3);
  color: var(--plum-700);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.secondary:hover {
  border-color: var(--violet);
  background: #FAF6FD;
}

/* --- Mini-liste « dernières preuves » (écran Aujourd'hui) ----------------------------- */

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-entry {
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 12px 14px;
}

.mini-entry span {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-soft);
}

.mini-entry strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-top: 2px;
}

.mini-entry p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- Paywall ---------------------------------------------------------------------------- */

.paywall {
  margin-top: 16px;
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid rgba(201, 162, 76, 0.7);
  box-shadow: 0 0 0 1px rgba(201, 162, 76, 0.4);
  border-radius: 16px;
  padding: 15px 16px;
}

.paywall strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.paywall p {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* --- Historique : le carnet de preuves ---------------------------------------------------- */

.list {
  display: grid;
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid rgba(124, 66, 166, 0.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(72, 32, 95, 0.06);
}

.card.draft {
  border-style: dashed;
  opacity: 0.85;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-soft);
}

.tag {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  color: var(--gold-deep);
  background: rgba(201, 162, 76, 0.14);
  border: 1px solid rgba(201, 162, 76, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.transcript {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 12px;
  line-height: 1.45;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--plum-600));
  color: var(--gold-soft);
  flex: 0 0 auto;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn.danger {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(36, 26, 44, 0.12);
  color: var(--ink-soft);
}

.icon-btn.danger:hover {
  color: var(--danger);
  border-color: rgba(180, 60, 60, 0.4);
}

.waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  flex: 1;
  margin: 0 12px;
}

.waves i {
  flex: 1;
  background: rgba(124, 66, 166, 0.3);
  border-radius: 2px;
}

/* --- État vide ------------------------------------------------------------------------------ */

.empty {
  text-align: center;
  padding: 56px 12px 30px;
}

.empty .mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 76, 0.6);
  color: var(--gold-deep);
  background: radial-gradient(120% 120% at 30% 25%, rgba(176, 116, 220, 0.28), rgba(255, 255, 255, 0.6) 72%);
}

.empty h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}

.empty .body {
  margin-top: 6px;
}

/* --- Réglages ---------------------------------------------------------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
}

.field {
  display: block;
}

.label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 20px 0 8px;
}

.settings-inline {
  display: flex;
  gap: 9px;
}

.input {
  flex: 1;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(36, 26, 44, 0.14);
  border-radius: 13px;
  padding: 11px 15px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
}

input.input[type="email"],
input.input[type="text"],
input.input:not([type="time"]) {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
}

.field .body {
  margin: 8px 0 0;
  font-size: 12px;
}

.settings-inline .secondary {
  flex: 0 0 auto;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: #2A1A07;
  border-color: transparent;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 15px;
  margin-top: 11px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  width: 100%;
}

.settings-row svg {
  width: 17px;
  height: 17px;
  color: var(--gold-deep);
  flex: 0 0 auto;
}

.settings-row::after {
  content: "›";
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
}

.settings-row.danger-text {
  color: var(--danger);
}

.settings-row.danger-text svg {
  color: var(--danger);
}

/* --- Plans -------------------------------------------------------------------------------------- */

.plan {
  position: relative;
  margin-top: 11px;
  border-radius: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(124, 66, 166, 0.18);
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
}

.plan.pro {
  border-color: rgba(201, 162, 76, 0.7);
  box-shadow: 0 0 0 1px rgba(201, 162, 76, 0.4);
}

.plan.pro::before {
  content: "Recommandé";
  position: absolute;
  top: -9px;
  right: 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2A1A07;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 3px 9px;
  border-radius: 999px;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.plan-head strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.plan-head span {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-deep);
  white-space: nowrap;
  flex: 0 0 auto;
}

.plan p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 7px 0 0;
  line-height: 1.4;
}

/* Les cartes Pro/Lifetime sont des boutons cliquables (CTA loggué). */
button.plan {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.plan:hover {
  transform: translateY(-1px);
}

button.plan:active {
  transform: translateY(0);
}

.plan-cta {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--gold-deep);
}

.plan.lifetime .plan-cta {
  color: var(--plum, #7C42A6);
}

/* --- Onboarding (premier lancement, in-app) -------------------------------------------------------- */

.onboarding {
  padding-top: 26px;
}

.brand-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.start-badge {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 162, 76, 0.5);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

.hero-kicker {
  color: var(--gold-deep);
}

.hero-subline {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--violet);
  margin: 9px 0 0;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.04;
  margin: 6px 0 0;
  color: var(--ink);
}

.hero-copy .lead {
  font-size: 15px;
}

.purpose {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 14px 16px;
}

.purpose strong {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.purpose p {
  margin: 7px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.compact-steps {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.compact-steps .step {
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 11px 14px;
}

.compact-steps .step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 76, 0.6);
  color: var(--gold-deep);
  background: radial-gradient(120% 120% at 30% 25%, rgba(176, 116, 220, 0.28), rgba(255, 255, 255, 0.6) 72%);
  flex: 0 0 auto;
}

.compact-steps .step svg {
  width: 16px;
  height: 16px;
}

.compact-steps .step strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.doubt-block {
  margin-top: 22px;
}

.doubt-block p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.doubt-block p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 0;
}

.onboarding .field {
  margin-top: 22px;
}

.onboarding .primary {
  width: 100%;
  margin-top: 24px;
  padding: 15px 22px;
  font-size: 15px;
}

/* --- Social proof ------------------------------------------------------------------------------------ */

.social-proof {
  margin-top: 26px;
}

.live-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 11px;
}

.live-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 76, 0.2);
}

.live-line strong {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-card {
  display: flex;
  gap: 12px;
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 13px 14px;
}

.social-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.social-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.social-head strong {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--plum-700);
}

.social-head span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
}

.social-event {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 1px 0 3px;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 12px;
}

.social-card p:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  margin: 5px 0 0;
}

/* --- Comment ça marche / FAQ ---------------------------------------------------------------------------- */

.how-it-works {
  margin-top: 26px;
}

.how-it-works h2,
.faq h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}

.how-it-works ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.how-it-works li {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.how-it-works li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-deep);
}

.faq {
  margin-top: 26px;
}

.faq details {
  border-bottom: 1px solid rgba(36, 26, 44, 0.14);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 76, 0.6);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 15px;
  transition: transform 0.3s, background 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: rgba(201, 162, 76, 0.12);
}

.faq p {
  padding: 0 2px 14px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --- Email capture ------------------------------------------------------------------------------------------ */

.email-capture {
  background: linear-gradient(180deg, #FAF6FD, #F2EBF9);
  border: 1px solid rgba(201, 162, 76, 0.5);
  border-radius: 16px;
  padding: 15px;
  margin: 6px 0 10px;
}

.email-capture h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 3px 0 0;
  color: var(--ink);
}

.email-capture .body {
  margin: 6px 0 0;
  font-size: 12.5px;
}

/* Escalade visuelle : plus le jour avance, plus la capture est appuyée. */
.email-capture.level-2 {
  border-color: rgba(201, 162, 76, 0.8);
  box-shadow: 0 0 0 1px rgba(201, 162, 76, 0.45);
}

.email-capture.level-3 {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 2px rgba(201, 162, 76, 0.6);
  background: linear-gradient(180deg, #FFF8EC, #FBEFD6);
}

.email-capture.level-3 .kicker {
  color: var(--gold-deep);
}

.email-form {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.email-form .input {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Footer / toast -------------------------------------------------------------------------------------------- */

.site-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--plum-800);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 76, 0.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  max-width: min(86vw, 480px);
  text-align: center;
}

/* --- Desktop : l'app devient une feuille centrée posée sur un fond crème,
   même traitement que la landing (bordure + fond d'une autre couleur). --- */
@media (min-width: 820px) {
  html,
  body {
    background: #ece4d5;
  }

  body {
    padding: 36px 0;
  }

  .app {
    min-height: calc(100vh - 72px);
    background: var(--screen);
    border: 1px solid var(--card-line);
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(36, 26, 44, 0.05), 0 16px 44px rgba(36, 26, 44, 0.1);
  }

  /* La barre d'onglets sticky reste collée au bas de la feuille (coins arrondis). */
  .tabs {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }
}
