:root {
  --bg1: #fff2e8;
  --bg2: #f2dccf;
  --card: rgba(255, 247, 242, 0.94);
  --border: rgba(196, 122, 109, 0.28);
  --text: #111111;
  --muted: #111111;
  --accent: #d38b86;
  --accent2: #b77b9c;
  --shadow-sm: 0 2px 6px rgba(169, 110, 106, 0.10);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 1px 2px rgba(120, 70, 70, 0.08), 0 6px 16px rgba(169, 110, 106, 0.10), 0 18px 40px rgba(169, 110, 106, 0.12);
  --shadow-card-hover: 0 2px 4px rgba(120, 70, 70, 0.10), 0 12px 24px rgba(169, 110, 106, 0.16), 0 28px 56px rgba(169, 110, 106, 0.18);
  --shadow-btn: 0 1px 2px rgba(120, 70, 70, 0.12), 0 8px 18px rgba(169, 110, 106, 0.18);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 247, 242, 0.30) 18%, rgba(255, 239, 243, 0.05) 55%, rgba(255, 239, 243, 0) 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color-scheme: light; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #f8e1e8;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 236, 241, 0.96) 34%, rgba(248, 220, 228, 1) 100%),
    linear-gradient(180deg, #fff7fa 0%, #f8e1e8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(211, 139, 134, 0.16), transparent 24%),
    radial-gradient(circle at 80% 14%, rgba(183, 123, 156, 0.18), transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(255, 247, 242, 0.10), transparent 26%);
}

a { color: inherit; text-decoration: none; }
.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.98) 0%, rgba(255, 239, 243, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-highlight);
  pointer-events: none;
  opacity: 0.9;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 240, 244, 0.92) 100%);
  box-shadow: var(--shadow-card);
}
.topbar,
.hero,
.grid .card,
.panel {
  text-align: center;
}
.topbar > div:first-child {
  position: relative;
  padding: 6px 12px;
  border-radius: 16px;
  overflow: hidden;
  min-width: 210px;
}
.topline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
}
.nav a:hover {
  background: rgba(219, 154, 171, 0.12);
  color: var(--accent2);
}
.hero {
  padding: 44px;
  margin-bottom: 24px;
}
.eyebrow {
  position: relative;
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.topline {
  position: relative;
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.topbar > div:first-child {
  position: relative;
  padding: 6px 12px;
  border-radius: 16px;
  overflow: hidden;
  min-width: 210px;
}
.topbar > div:first-child::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 132px;
  height: 132px;
  background: url("assets/logo-mf-watermark.png") center/contain no-repeat;
  opacity: 1;
  pointer-events: none;
}
.lead {
  max-width: 56ch;
  margin: 18px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.btn.primary {
  color: #111;
  background: linear-gradient(135deg, rgba(245, 219, 224, 0.98), rgba(219, 154, 171, 0.98));
  box-shadow: var(--shadow-btn);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(120, 70, 70, 0.14), 0 14px 28px rgba(169, 110, 106, 0.24);
}
.btn.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn.ghost {
  color: #111;
  background: rgba(255, 251, 248, 0.72);
  border-color: rgba(211, 139, 134, 0.22);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.btn.ghost:active { transform: translateY(0); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
}
.split .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px 36px;
}
.split .card p { max-width: 38ch; }
.grid .card, .note { padding: 24px; }
.grid .card p { max-width: 34ch; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 26px 24px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.app-card .ico {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent2);
  filter: none;
}
.app-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: #101010;
}
.app-card p {
  margin: 0;
  text-align: left;
  max-width: 38ch;
  font-size: 0.94rem;
}
h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  color: #101010;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
p, li {
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
ul {
  margin: 14px auto 0;
  padding-left: 18px;
  padding-bottom: 4px;
  max-width: 42ch;
  text-align: left;
}
.contact { padding: 36px 28px; }
.contact .actions { margin-top: 22px; }
.contact-note {
  margin: 22px auto 0;
  font-size: 0.95rem;
  color: var(--accent2);
  font-weight: 600;
}
.soon {
  text-align: center;
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--accent2);
  font-size: 0.98rem;
}
.more-link {
  text-align: center;
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 1rem;
}
.more-link a { color: var(--accent2); font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.steps { margin-bottom: 24px; }
.steps-title {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: #101010;
  margin: 0 0 16px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step { padding: 24px; }
.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent2);
  font-weight: 700;
}
.step p { max-width: 36ch; text-align: center; }
.collapse > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1;
}
.collapse[open] > summary::after { content: "\2212"; }
.collapse > summary h2,
.collapse > summary h3 { margin: 0; }
@media (max-width: 840px) {
  .hero { padding: 28px; }
  .grid,
  .split,
  .steps-grid { grid-template-columns: 1fr; }
}
.app-section { padding: 32px 28px; margin-bottom: 24px; text-align: left; }
.app-section h2 { text-align: center; }
.app-section p { text-align: center; }
.today-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 18px auto 8px;
  text-align: center;
}
.today-thought {
  max-width: 38ch;
  font-size: 1rem;
  font-style: italic;
  color: var(--accent2);
  font-weight: 600;
  margin: 0;
  text-align: center;
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px auto; max-width: 420px; text-align: left; }
.field label { font-weight: 600; font-size: 0.92rem; color: #101010; }
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 250, 0.95);
  color: var(--text);
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 2px solid var(--accent2); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.hint { font-size: 0.82rem; color: var(--accent2); opacity: 0.8; margin: 6px 0 0; }
.mini { flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; background: rgba(219,154,171,0.2); border: 1px solid rgba(211,139,134,0.35); color: var(--accent2); font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mini:hover { background: rgba(219,154,171,0.34); }
.mini:disabled { opacity: 0.55; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.chip { border: 1px solid rgba(211,139,134,0.4); background: rgba(219,154,171,0.14); color: var(--accent2); border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.chip:hover:not(:disabled) { background: rgba(219,154,171,0.28); }
.chip:disabled { opacity: 0.5; cursor: default; }
.trend-wrap { margin: 16px auto 0; max-width: 560px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 70%; max-width: 34px; background: linear-gradient(180deg, #e0a4b4, #c98aa0); border-radius: 8px 8px 0 0; min-height: 2px; transition: height 0.2s ease; }
.bar-l { font-size: 0.72rem; color: var(--accent2); margin-top: 6px; font-weight: 600; }
hr.soft { border: none; border-top: 1px solid var(--border); margin: 22px 0 4px; }
.parcours { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.parcours-item { background: rgba(255, 252, 250, 0.92); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.parcours-item.locked { opacity: 0.6; }
.parcours-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.parcours-head h3 { margin: 0; font-size: 1.02rem; color: var(--accent2); }
.badge { font-size: 0.78rem; color: var(--accent2); opacity: 0.8; }
.parcours-note { margin: 8px 0 12px; font-size: 0.92rem; }
.habitudes { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.habitude-card { background: rgba(255, 252, 250, 0.92); border: 1px solid var(--border); border-radius: 18px; padding: 16px; text-align: center; }
.hab-titre { font-weight: 600; color: var(--accent2); margin-bottom: 4px; }
.hab-meta { font-size: 0.84rem; opacity: 0.8; margin-bottom: 12px; }
.pause-circle { width: 200px; height: 200px; border-radius: 50%; margin: 18px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--accent2) 100%, rgba(219,154,171,0.18) 0); transition: background 0.4s linear; }
.pause-time { font-size: 2.4rem; font-weight: 700; color: #3a2a2e; }
.pause-instr { font-size: 0.86rem; color: var(--accent2); text-align: center; max-width: 160px; padding: 0 8px; }
.resume-box { white-space: pre-wrap; background: rgba(255, 252, 250, 0.92); border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 0.88rem; line-height: 1.6; margin-top: 14px; max-height: 360px; overflow: auto; }
.tips { margin: 8px 0 0; padding-left: 20px; }
.tips li { margin: 8px 0; line-height: 1.6; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.app-section .row { margin-top: 14px; }
.app-section .btn { width: 100%; max-width: 340px; margin: 0 auto; }
.btn { justify-content: center; text-align: center; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.96rem; }
.btn.danger { color: #111; background: rgba(232, 200, 200, 0.85); border-color: rgba(196,122,109,0.4); }
.list li button {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(219, 154, 171, 0.16);
  border: 1px solid rgba(211, 139, 134, 0.3);
  color: var(--accent2);
  font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s ease;
}
.list li button:hover { background: rgba(219, 154, 171, 0.3); }
.list { list-style: none; padding: 0; margin: 16px auto 0; max-width: 560px; text-align: left; }
.list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 252, 250, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
  max-width: none;
}
.list li .txt { flex: 1; }
.list li .meta { font-size: 0.82rem; color: var(--accent2); font-weight: 600; }
.empty { text-align: center; color: var(--muted); opacity: 0.7; margin: 18px auto; max-width: 40ch; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px auto 0; max-width: 720px; }
.dash-card { background: rgba(255, 252, 250, 0.92); border: 1px solid var(--border); border-radius: 18px; padding: 18px; text-align: center; }
.dash-card .sub { font-size: 0.78rem; color: var(--accent2); opacity: 0.75; margin-top: 4px; }
.dash-card .v { font-size: 1.5rem; font-weight: 700; color: #101010; }
.dash-card .l { font-size: 0.82rem; color: var(--accent2); font-weight: 600; margin-top: 4px; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 16px auto 0; max-width: 620px; }
.score { background: rgba(255, 252, 250, 0.9); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; text-align: center; }
.score .k { font-size: 0.78rem; color: var(--muted); }
.score .n { font-size: 1.15rem; font-weight: 700; color: #101010; }
.note-safe { text-align: center; font-size: 0.9rem; color: var(--accent2); font-weight: 600; margin: 18px auto 0; max-width: 46ch; }
.backlink { display: block; text-align: center; margin: 8px auto 0; color: var(--accent2); font-weight: 600; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* ===== Étapes profondeur: animations, typographie, uniformisation ===== */

/* Micro-animations douces (étape 5) */
@keyframes mf-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mf-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.reveal {
  opacity: 0;
  animation: mf-fade-up 0.6s var(--ease) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.04s; }
.reveal:nth-child(2) { animation-delay: 0.10s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.22s; }
.reveal:nth-child(5) { animation-delay: 0.28s; }
.reveal:nth-child(6) { animation-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
}
.pause-circle.breathing { animation: mf-breathe 4s ease-in-out infinite; }

/* Hiérarchie typographique marquée (étape 6) */
h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.55);
}
h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  letter-spacing: -0.02em;
}
h3 { letter-spacing: -0.01em; }
p, li { font-size: 0.98rem; line-height: 1.7; }

/* Uniformisation des petites cartes (étape 8) */
.dash-card,
.score,
.parcours-item,
.habitude-card,
.list li {
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.dash-card:hover,
.score:hover,
.parcours-item:hover,
.habitude-card:hover,
.list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Anneaux de progression (étape 7) */
.ring {
  --pct: 0;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, rgba(255, 252, 250, 0.96) 70%, transparent 71% 100%),
    conic-gradient(var(--accent2) calc(var(--pct) * 1%), rgba(219,154,171,0.20) 0);
  box-shadow: var(--shadow-sm);
}
.ring .ring-v { font-size: 1.15rem; font-weight: 700; color: #101010; }
.ring-lg { width: 120px; height: 120px; }
.ring-lg .ring-v { font-size: 1.5rem; }

/* Cercle Pause plus profond */
.pause-circle { box-shadow: var(--shadow-card), inset 0 2px 8px rgba(255,255,255,0.25); }

