/* Maelle C Coaching — charte reprise des PDF Méthode ARC */

@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url('/fonts/mukta-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url('/fonts/mukta-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url('/fonts/mukta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #faf7f2;
  --navy: #1b2a41;
  --terra: #c4622d;
  --terra-dark: #a94f20;
  --text: #1a2a1a;
  --muted: #7d7a74;
  --line: #e9dfd2;
  --beige: #f3ece2;
  --dash: #c9b8a4;
  --white: #ffffff;
  --error: #b3261e;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Segoe Print', cursive;

  --radius: 14px;
  --gutter: 20px;
  --maxw: 720px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; }
a { color: var(--terra); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

/* Décor feuillage */
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.deco--gray { top: -40px; right: -70px; width: 150px; transform: rotate(-12deg); opacity: .9; }
.deco--peach { display: none; }
body:not([data-step="intro"]) .deco--peach { display: none !important; }

/* Barre du haut */
.topbar {
  position: relative; z-index: 1;
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter) 8px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.brand { font-family: var(--script); font-weight: 600; font-size: 26px; color: var(--terra); text-decoration: none; line-height: 1; }
.topbar__title {
  display: none;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}

.page {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter) 40px;
}
.screen { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .answer { animation: none !important; transition: none !important; } }

/* Typo */
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra);
}
.cover-title {
  margin: 0;
  font-family: var(--serif); font-weight: 800; text-transform: uppercase;
  color: var(--navy); font-size: clamp(40px, 11vw, 64px); line-height: 1.02; letter-spacing: -.01em;
}
.cover-title em {
  display: inline-block; margin-top: 6px;
  font-style: italic; font-weight: 700; text-transform: none; color: var(--terra);
}
.title {
  margin: 0;
  font-family: var(--serif); font-weight: 800; color: var(--navy);
  font-size: clamp(27px, 6.6vw, 36px); line-height: 1.18;
}
.rule { display: block; width: 84px; height: 4px; border-radius: 4px; background: var(--terra); margin: 20px 0 22px; }
.lead p, .lead-p, .prose p { margin: 0 0 14px; }
.lead { max-width: 560px; margin-bottom: 30px; }
.script { font-family: var(--script); font-weight: 600; color: var(--terra); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 28px;
  border: 0; border-radius: 999px;
  font: 700 17px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, transform .1s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--terra); color: var(--white); box-shadow: 0 6px 18px -8px rgba(196, 98, 45, .6); }
.btn--primary:hover { background: var(--terra-dark); }
.btn--primary[disabled] { opacity: .65; cursor: wait; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--beige); }
.btn--block { display: flex; width: 100%; }
.btn-link {
  display: block; margin: 26px auto 0; padding: 10px;
  background: none; border: 0; color: var(--muted);
  font: 600 15px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--navy); }

.screen--intro .btn { width: 100%; }

/* Progression */
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.progress__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--terra); border-radius: 6px; transition: width .35s ease; }
.progress__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }

/* Question */
.question { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.question__num { font-family: var(--serif); font-weight: 800; color: var(--terra); font-size: 44px; line-height: .9; min-width: 30px; }
.question__text { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(22px, 5.6vw, 28px); line-height: 1.25; outline: none; }

.answers { display: grid; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 14px 18px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font: 400 17px/1.4 var(--sans); color: var(--text); text-align: left;
  cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  animation: fade .35s ease both;
}
.answer:nth-child(2) { animation-delay: .05s; }
.answer:nth-child(3) { animation-delay: .1s; }
.answer:active { transform: scale(.99); }
@media (hover: hover) { .answer:hover { border-color: var(--dash); box-shadow: 0 4px 14px -8px rgba(27, 42, 65, .25); } }
.answer__letter {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--terra); color: var(--terra);
  font-size: 13px; font-weight: 700; transition: background-color .2s, color .2s;
}
.answer[aria-checked="true"] { border-color: var(--terra); background: #fdf3ec; }
.answer[aria-checked="true"] .answer__letter { background: var(--terra); color: var(--white); }

/* Formulaire mail */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.form { margin-top: 8px; }
.form__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.form__input {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  font: 400 17px var(--sans); color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.form__input:focus { outline: none; border-color: var(--terra); background: var(--white); }
.form__input[aria-invalid="true"] { border-color: var(--error); }
.form__error { margin: 8px 0 0; color: var(--error); font-size: 15px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 6px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  border: 1.5px solid var(--dash); border-radius: 6px; background: var(--white);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.check__box::after {
  content: ''; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0;
}
.check input:checked + .check__box { background: var(--terra); border-color: var(--terra); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--terra); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--error); }
.form .btn { margin-top: 22px; }
.form__legal { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.45; }

/* Résultat */
.prose p { margin: 0 0 14px; }
.story {
  margin: 4px 0 18px; padding: 2px 0 2px 18px;
  border-left: 4px solid var(--terra); border-radius: 2px;
}
.exercise { margin-top: 28px; padding: 24px 18px; }
.exercise__title {
  margin: 0 0 16px;
  font-family: var(--serif); font-weight: 800; text-transform: uppercase; color: var(--navy);
  font-size: 19px; line-height: 1.3; letter-spacing: .01em;
}
.exercise__title .script { display: block; font-size: 28px; text-transform: none; letter-spacing: 0; line-height: 1.1; margin-bottom: 2px; }
.exercise p { margin: 0 0 14px; }
.ex-heading { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.ex-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.ex-steps li { counter-increment: s; display: flex; gap: 14px; }
.ex-steps li::before {
  content: counter(s); flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--terra); color: var(--white); font-size: 13px; font-weight: 700;
}
.ex-bullets { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ex-bullets li { position: relative; padding-left: 22px; }
.ex-bullets li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.ex-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.ex-col {
  min-height: 110px; padding: 12px;
  border: 1.5px dashed var(--dash); border-radius: 12px; background: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); line-height: 1.35;
}
.ex-note { margin: 4px 0 18px; padding: 14px 16px; background: var(--beige); border-radius: 12px; }
.ex-note strong { color: var(--navy); }
.exercise .btn { margin-top: 8px; }

.motto { margin: 30px 0 0; text-align: center; font-family: var(--script); font-weight: 600; color: var(--terra); font-size: 28px; line-height: 1.2; }

.cta {
  margin-top: 30px; padding: 28px 22px;
  background: var(--navy); color: #e8e4dc; border-radius: 20px; text-align: center;
  position: relative; overflow: hidden;
}
.cta__kicker { margin: 0; font-size: 26px; color: #f0a77c; }
.cta__title { margin: 4px 0 10px; font-family: var(--serif); font-weight: 700; color: var(--white); font-size: 24px; line-height: 1.25; }
.cta p { margin: 0 0 20px; }
.cta__insta { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 16px auto 0; color: #e8e4dc; font-weight: 600; font-size: 15px; text-decoration: none; }
.cta__insta:hover { color: var(--white); text-decoration: underline; }

/* Pied de page */
.footer {
  position: relative; z-index: 1;
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto; padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  font-size: 13px; color: var(--muted);
}
.footer a { color: var(--muted); }

/* Page légale */
.legal h1 { font-family: var(--serif); color: var(--navy); font-size: clamp(28px, 7vw, 38px); line-height: 1.15; margin: 0; }
.legal h2 { font-family: var(--serif); color: var(--navy); font-size: 22px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; color: var(--navy); margin: 20px 0 6px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; }
.todo { background: #fff1b8; padding: 0 4px; border-radius: 3px; }

/* Ordinateur / tablette */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .topbar { padding-top: 34px; }
  .topbar__title { display: inline; }
  .page { padding-top: 40px; padding-bottom: 60px; }
  .deco--gray { top: -30px; right: -40px; width: 210px; }
  .screen--intro .btn { width: auto; min-width: 260px; }
  .question__num { font-size: 54px; min-width: 40px; }
  .answers { padding-left: 54px; }
  .answer { padding: 16px 22px; }
  .card { padding: 30px 32px; }
  .exercise { padding: 32px 34px; }
  .exercise__title { font-size: 21px; }
  .exercise__title .script { display: inline; margin-right: 8px; }
  .ex-col { min-height: 150px; }
  .screen--email .form { max-width: 520px; }
  .exercise .btn, .cta .btn { width: auto; display: inline-flex; min-width: 300px; }
  .exercise .btn { display: flex; margin-left: auto; margin-right: auto; }
  .cta { padding: 36px 40px; }
  .cta__title { font-size: 28px; }
  .cta .btn { margin: 0 auto; }
  .btn-link { margin-top: 32px; }
}
@media (min-width: 1100px) {
  .deco--gray { width: 260px; right: 2vw; }
  .deco--peach { display: block; position: fixed; right: max(16px, calc(50vw - 560px)); bottom: -30px; width: 170px; opacity: .9; }
}
