/* Anouk Berthès (démo) : le carnet d'entraînement.
   Craie, graphite, un seul accent ambre « chrono ». Angles droits, filets réglés. */

:root {
  --paper: #f1f0ea;     /* craie */
  --sheet: #fbfaf6;     /* page du carnet */
  --ink: #17191b;       /* graphite */
  --muted: #55595d;
  --line: #d3d2c8;
  --field: #7d8084;     /* bordure de champ, 3:1 minimum */
  --accent: #e3a008;    /* ambre chrono : fonds et repères, jamais du texte sur craie */
  --accent-ink: #17191b;
  --accent-hover: #c98c00;
  --error: #b3261e;

  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121315;
    --sheet: #1b1d20;
    --ink: #ecebe4;
    --muted: #a6a9ad;
    --line: #313438;
    --field: #7b7f85;
    --accent: #f0b429;
    --accent-hover: #ffc94d;
    --error: #ff8a7a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 16px; }
.note { font-size: 12px; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 500 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.big { min-height: 56px; padding-inline: 28px; font-size: 18px; }
.btn.line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.mark { display: grid; text-decoration: none; line-height: 1.1; }
.mark b { font: 600 24px/1 var(--font-title); }
.mark span { font-size: 12px; color: var(--muted); }
.top nav { margin-left: auto; }
.top ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: 14px; font-weight: 500; text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* Ouverture */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); }
.lead { margin-top: 24px; max-width: 46ch; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-photo { margin: 0; }
.log { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; padding: 16px 0 0; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-top: 12px; font: 500 18px/1.25 var(--font-title); font-variant-numeric: tabular-nums; }
.log small { display: block; font: 400 12px/1.4 var(--font-body); color: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .log { grid-template-columns: repeat(2, auto); }
}

/* Pour qui */
.who { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 9vw, 128px); }
.who h2 { font-size: clamp(36px, 4.4vw, 56px); align-self: start; position: sticky; top: 104px; }
.cases { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; counter-reset: c; border-top: 1px solid var(--ink); }
.cases li { counter-increment: c; padding: 24px 24px 32px 0; border-bottom: 1px solid var(--line); }
.cases li:nth-child(odd) { border-right: 1px solid var(--line); }
.cases li:nth-child(even) { padding-left: 24px; }
.cases li::before { content: "0" counter(c); display: block; margin-bottom: 12px; font: 500 14px/1 var(--font-title); color: var(--muted); font-variant-numeric: tabular-nums; }
.cases h3 { font-size: 28px; }
.cases p { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) {
  .who { grid-template-columns: 1fr; }
  .who h2 { position: static; }
}
@media (max-width: 600px) {
  .cases { grid-template-columns: 1fr; }
  .cases li, .cases li:nth-child(even) { padding: 20px 0 24px; border-right: 0; }
}

/* Séance type : le carnet (moment signature) */
.session { background: var(--ink); color: var(--paper); padding-block: clamp(64px, 9vw, 120px); }
.session-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sheet { background: var(--sheet); color: var(--ink); padding: clamp(20px, 3vw, 40px); }
.sheet-head { padding-bottom: 16px; background: var(--sheet); }
.sheet-head h2 { font-size: clamp(36px, 4.4vw, 56px); }
.sheet-head p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.lines fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.lines legend { display: flex; justify-content: space-between; width: 100%; padding: 0 0 8px; border-bottom: 2px solid var(--ink); font: 600 20px/1.2 var(--font-title); }
.lines legend span:last-child { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.line { display: grid; grid-template-columns: 28px 1fr auto 104px; align-items: center; gap: 12px; min-height: 52px; padding-block: 6px; border-bottom: 1px solid var(--line); background: var(--sheet); cursor: pointer; }
.line input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--field); background: var(--sheet); cursor: pointer; display: grid; place-content: center; transition: background-color 150ms ease, border-color 150ms ease; }
.line input::after { content: ""; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform 150ms var(--ease-out); }
.line input:checked { background: var(--accent); border-color: var(--accent); }
.line input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.line:hover input:not(:checked) { border-color: var(--ink); }
.ex { font-weight: 500; }
.dose { font: 600 20px/1.1 var(--font-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rest { font-size: 14px; color: var(--muted); text-align: right; }
.line:has(input:checked) .ex, .line:has(input:checked) .dose { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.tally { margin-top: 20px; font: 500 18px/1.3 var(--font-title); font-variant-numeric: tabular-nums; }
.tally b { font-weight: 600; }
.finish { margin-top: 8px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.session-photo { margin: 0; position: sticky; top: 104px; }
.session-photo figcaption { margin-top: 12px; font-size: 14px; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
@media (prefers-color-scheme: dark) {
  .session { background: #08090a; color: var(--ink); }
  .session-photo figcaption { color: var(--muted); }
}
@media (max-width: 900px) {
  .session-grid { grid-template-columns: 1fr; }
  .session-photo { position: static; max-width: 480px; }
}
@media (max-width: 600px) {
  .line { grid-template-columns: 28px 1fr auto; row-gap: 0; }
  .rest { grid-column: 2 / -1; text-align: left; font-size: 12px; }
}

/* Douze semaines */
.plan { padding-block: clamp(64px, 9vw, 128px); }
.plan h2 { font-size: clamp(40px, 5.6vw, 72px); max-width: 14ch; }
.plan-intro { margin-top: 16px; max-width: 52ch; font-size: 18px; color: var(--muted); }
.steps { margin: 48px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.when { font: 600 clamp(28px, 3.4vw, 44px)/1 var(--font-title); font-variant-numeric: tabular-nums; }
.steps li:first-child .when { display: inline-block; justify-self: start; align-self: start; padding: 4px 10px; background: var(--accent); color: var(--accent-ink); }
.steps h3 { font-size: 28px; }
.steps p:not(.when) { margin-top: 8px; max-width: 60ch; color: var(--muted); }
@media (max-width: 700px) {
  .steps li { grid-template-columns: 1fr; gap: 12px; }
}

/* Lieux */
.places { padding-bottom: clamp(64px, 9vw, 128px); }
.places h2 { font-size: clamp(40px, 5.6vw, 72px); }
.places-grid { display: grid; grid-template-columns: 6fr 4fr; grid-template-rows: auto auto; gap: 40px clamp(24px, 4vw, 56px); margin-top: 40px; }
.place h3 { margin-top: 16px; font-size: 32px; }
.place p { margin-top: 8px; color: var(--muted); max-width: 48ch; }
.place.out { grid-row: span 2; }
.place.home img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.place.out img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.place.visio { padding: 28px; border: 1px solid var(--ink); }
.place.visio h3 { margin-top: 0; }
.zone { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.zone b { color: var(--ink); font-weight: 500; }
@media (max-width: 800px) {
  .places-grid { grid-template-columns: 1fr; }
  .place.out { grid-row: auto; }
}

/* Tarifs */
.prices { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 9vw, 128px); }
.prices h2 { font-size: clamp(40px, 5vw, 64px); }
.prices-text p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.price-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.price-table th, .price-table td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.price-table th { font-weight: 500; }
.price-table td:nth-child(2) { font: 600 32px/1 var(--font-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table td:last-child { padding-right: 0; font-size: 14px; color: var(--muted); }
.price-table .best th, .price-table .best td { border-bottom-color: var(--ink); }
.price-table .best td:nth-child(2) { box-shadow: inset 0 -6px 0 var(--accent); }
@media (max-width: 800px) {
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .price-table .best { border-bottom-color: var(--ink); }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(2) { font-size: 28px; }
  .price-table td:last-child { grid-column: 1 / -1; margin-top: 4px; }
}

/* La coach */
.coach { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 128px); }
.coach-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.coach h2 { font-size: clamp(40px, 5vw, 64px); }
.coach-grid p:not(.note) { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.facts { margin: 24px 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.facts li { padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 900px) {
  .coach-grid { grid-template-columns: 1fr; }
}

/* Questions */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 9vw, 128px); }
.faq h2 { font-size: clamp(36px, 4.4vw, 56px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding-block: 12px; font: 500 22px/1.25 var(--font-title); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font-body); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; max-width: 62ch; color: var(--muted); }
@media (max-width: 800px) {
  .faq { grid-template-columns: 1fr; }
}

/* Fin */
.end { background: var(--accent); color: var(--accent-ink); padding-block: clamp(64px, 9vw, 120px); }
.end h2 { font-size: clamp(40px, 6vw, 80px); max-width: 16ch; }
.end p { margin-top: 16px; max-width: 48ch; font-size: 18px; }
.end .btn { margin-top: 32px; background: var(--accent-ink); border-color: var(--accent-ink); color: #f1f0ea; }
.end .btn:hover { background: #33373b; border-color: #33373b; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 32px; max-width: none !important; margin-top: 40px !important; padding-top: 20px; border-top: 1px solid currentColor; font-size: 16px !important; }
.contact a, .contact span { display: inline-flex; align-items: center; min-height: 44px; }
.contact a { font-weight: 500; text-underline-offset: 5px; }
.end :focus-visible { outline-color: var(--accent-ink); }

/* Pied de page */
.foot { padding-block: 32px 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot a { display: inline-block; padding-block: 12px; color: var(--ink); text-underline-offset: 4px; }

/* Fenêtre du bilan */
dialog { width: min(640px, 100% - 16px); max-height: calc(100dvh - 16px); margin: auto; padding: clamp(20px, 4vw, 36px); border: 0; border-top: 6px solid var(--accent); background: var(--sheet); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(10 11 12 / .64); }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dlg-head h2 { font-size: clamp(32px, 5vw, 44px); }
.close { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 28px/1 var(--font-body); cursor: pointer; }
.close:hover { border-color: var(--ink); }
.dlg-intro { margin-top: 8px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; }
.full { grid-column: 1 / -1; }
.q { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.q > label, .q legend { padding: 0; font-weight: 500; }
.q legend { margin-bottom: 8px; }
.q .opt { font-weight: 400; color: var(--muted); }
.q .help { font-size: 12px; color: var(--muted); line-height: 1.4; }
.q input:not([type="radio"]), .q select, .q textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.q textarea { min-height: 96px; resize: vertical; }
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field); font-size: 14px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips label:hover { border-color: var(--ink); }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.err { display: none; font-size: 14px; color: var(--error); line-height: 1.4; }
.invalid .err { display: block; }
.invalid input:not([type="radio"]), .invalid select, .invalid .chips label { border-color: var(--error); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send p { font-size: 14px; color: var(--muted); }
.done { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--accent); background: var(--paper); }
.done:focus { outline: none; }
.done h3 { font-size: 28px; }
.done p { color: var(--muted); }
.done textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1px solid var(--field); background: var(--sheet); color: var(--ink); font: 14px/1.6 var(--font-body); }
.done .btn { justify-self: start; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* Mouvement : ouverture du dialog seulement ; rien si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: rise 200ms var(--ease-out); }
  dialog[open]::backdrop { animation: fade 200ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
