/* ==========================================================================
   Studio Rising — charte graphique
   Noir profond · Ivoire · Sable — Quicksand (titres) · Jost (texte) · Cormorant (accents)
   ========================================================================== */

@font-face { font-family: 'Jost'; src: url('fonts/jost.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/quicksand-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/quicksand-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --ink-4: #26262a;
  --paper: #f3efe8;
  --paper-2: #e8e2d7;
  --paper-3: #dcd4c6;
  --stone: #a7a198;
  --muted: #8b867f;
  --sand: #c9b48f;
  --sand-2: #dcc9a6;
  --sand-deep: #9c8762;
  --line: rgba(243, 239, 232, .11);
  --line-2: rgba(243, 239, 232, .22);
  --ok: #9db596;
  --warn: #d9ad6a;
  --err: #e07f6c;
  --radius: 20px;
  --radius-sm: 12px;
  --f-display: 'Quicksand', 'Jost', system-ui, sans-serif;
  --f-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.6 var(--f-body); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 36px); } }

/* ---------- typographie ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.45rem; font-weight: 400; }
h1 em, h2 em, .lede em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--sand); letter-spacing: 0; }
.eyebrow {
  font: 500 .74rem/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.muted { color: var(--muted); }
.big { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.6; color: var(--stone); margin: 0; font-weight: 300; }

/* ---------- boutons ---------- */
.btn {
  --bg: transparent; --fg: var(--paper); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 500 .82rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--sand); --fg: var(--ink); --bd: var(--sand); }
.btn-primary:hover { --bg: var(--sand-2); --bd: var(--sand-2); }
.btn-ghost:hover { --bd: var(--paper); }
.btn-dark { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-dark:hover { --bg: #26262a; --bd: #26262a; }
.btn-light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn-danger { --fg: var(--err); --bd: rgba(224, 127, 108, .45); }
.btn-danger:hover { --bg: rgba(224, 127, 108, .1); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .72rem; }
.btn-xs { height: 32px; padding: 0 14px; font-size: .68rem; letter-spacing: .12em; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.link { background: none; border: 0; padding: 0; color: var(--sand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- en-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, body.app .site-header {
  background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; width: min(1320px, 100% - 48px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font: 300 1.32rem/1 var(--f-display); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); transition: color .2s; position: relative; }
.nav a:not(.btn):hover, .nav a.active { color: var(--paper); }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--sand); transition: right .3s var(--ease); }
.nav a:not(.btn):hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 12, .97); backdrop-filter: blur(14px); padding: 12px 24px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; height: 50px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 0;
  background: radial-gradient(120% 90% at 0% 20%, #2a2a2c 0%, #141415 38%, var(--ink) 70%); }
.hero-palm {
  position: absolute; inset: -6% auto -6% -8%; width: min(78vw, 1100px); color: #8f8f8f; opacity: .55;
  background: url('palm.svg') no-repeat 0 50% / contain; filter: blur(.4px);
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 35%, transparent 85%); mask: linear-gradient(90deg, #000 0%, #000 35%, transparent 85%);
  animation: sway 14s ease-in-out infinite alternate; transform-origin: 0 100%;
}
.hero-grain { position: absolute; inset: 0; opacity: .12; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg) translateY(-6px); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px; flex: 1; }
.display { font-size: clamp(4.2rem, 11vw, 9.6rem); line-height: .9; letter-spacing: -.02em; margin-bottom: 28px; }
.lede { font: 300 clamp(1.5rem, 2.6vw, 2.1rem)/1.25 var(--f-display); margin: 0 0 18px; }
.lede em { font-size: 1.15em; }
.hero-sub { color: var(--stone); max-width: 30em; font-weight: 300; font-size: 1.08rem; margin: 0 0 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: end; display: grid; place-items: center; }
.hero-mark .ring { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%; }
.hero-mark .ring-2 { inset: 9%; border-color: var(--line); border-style: dashed; animation: spin 90s linear infinite; }
.hero-mark img { width: 42%; height: auto; animation: flip 9s var(--ease) infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
@keyframes flip { 0%, 42% { transform: rotate(0); } 50%, 92% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.hero-foot { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 34px 0 30px; margin-top: 40px; border-top: 1px solid var(--line);
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { position: absolute; right: -18%; top: 10%; width: 72vw; opacity: .1; z-index: -1; }
  .hero-foot { flex-direction: column; gap: 10px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section.light { background: var(--paper); color: var(--ink); }
.section.light .eyebrow { color: var(--sand-deep); }
.section.light h2 em { color: var(--sand-deep); }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sec-sub { color: var(--muted); margin: 18px 0 0; font-weight: 300; }
.section.light .sec-sub { color: #6f6a62; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 90px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 44px 40px 10px 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar .num { font: italic 400 1.4rem var(--f-serif); color: var(--sand); }
.pillar h3 { margin: 26px 0 14px; font-size: 1.8rem; font-weight: 300; }
.pillar p { color: var(--stone); margin: 0; font-weight: 300; }
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 34px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- formules ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan {
  position: relative; background: #fbf9f5; border: 1px solid var(--paper-3); border-radius: var(--radius);
  padding: 40px 34px 34px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(11, 11, 12, .35); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-kind { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sand-deep); margin: 0 0 10px; }
.plan.featured .plan-kind { color: var(--sand); }
.plan h3 { font-size: 2.3rem; font-weight: 300; }
.price { font: 300 4rem/1 var(--f-display); margin: 26px 0 6px; display: flex; align-items: baseline; gap: 4px; letter-spacing: -.02em; }
.price .cur { font-size: 1.8rem; }
.price small { font: 400 .9rem var(--f-body); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.per { margin: 0 0 26px; font: italic 400 1.15rem var(--f-serif); color: #6f6a62; min-height: 1.6em; }
.plan.featured .per { color: var(--sand); }
.plan ul { list-style: none; margin: 0 0 34px; padding: 22px 0 0; border-top: 1px solid var(--paper-3); display: grid; gap: 12px; flex: 1; }
.plan.featured ul { border-color: var(--line-2); }
.plan li { position: relative; padding-left: 20px; font-size: .98rem; font-weight: 300; }
.plan li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border: 1px solid var(--sand-deep); transform: rotate(45deg); }
.plan.featured li::before { border-color: var(--sand); }
.badge-top { position: absolute; top: -13px; left: 34px; margin: 0; background: var(--sand); color: var(--ink); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.plan-coached {
  margin-top: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 40px 40px;
  background: linear-gradient(110deg, #fbf9f5 0%, #efe9df 100%);
}
.plan-coached h3 { font-size: 2.1rem; margin-bottom: 12px; }
.plan-coached p { margin: 0; color: #5f5a52; font-weight: 300; max-width: 34em; }
.plan-coached .plan-kind { color: var(--sand-deep); margin-bottom: 10px; }
.coached-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.price-text { font: italic 400 2rem var(--f-serif) !important; color: var(--ink) !important; }
.fineprint { margin: 32px 0 0; font-size: .9rem; color: #6f6a62; text-align: center; font-weight: 300; }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-coached { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; padding: 34px; }
  .coached-side { align-items: flex-start; }
}

/* ---------- étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 30px 0 0; position: relative; }
.steps li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.steps > li > span { font: italic 400 3.4rem/1 var(--f-serif); color: var(--sand); display: block; margin-bottom: 30px; }
.steps h3 { margin-bottom: 12px; }
.steps p { margin: 0; color: var(--stone); font-weight: 300; font-size: .98rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .steps li, .steps li + li { padding: 0 0 36px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- planning ---------- */
.planning { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- calendrier ---------- */
.calendar-host { min-height: 200px; }
.cal-loading { color: var(--muted); padding: 60px 0; text-align: center; font-weight: 300; }
.cal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); overflow: hidden; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal-range { font: 300 1.3rem var(--f-display); }
.cal-nav { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--paper); }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.icon-btn svg { width: 16px; height: 16px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--line-2); }
.cal-legend .lg-open { border-color: var(--sand); }
.cal-legend .lg-mine { background: var(--sand); border-color: var(--sand); }
.cal-legend .lg-pending { border: 1px dashed var(--sand); }
.cal-legend .lg-taken { background: var(--ink-4); }
.cal-legend .lg-soon { border-style: dotted; }
.cal-legend .lg-closed { background: repeating-linear-gradient(45deg, var(--ink-4) 0 2px, transparent 2px 5px); }

.cal-grid { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); }
.cal-head { padding: 16px 6px 14px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-head.corner { border-left: 0; }
.cal-head .dow { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cal-head .dom { font: 300 1.6rem/1.2 var(--f-display); }
.cal-head.today .dom { color: var(--sand); }
.cal-time { font-size: .74rem; color: var(--muted); text-align: right; padding: 10px 12px 0 0; font-variant-numeric: tabular-nums; }
.cal-cell { border-left: 1px solid var(--line); padding: 4px; min-height: 52px; }
.cal-row-sep { grid-column: 1 / -1; height: 1px; background: var(--line); }
.slot {
  width: 100%; height: 100%; min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; padding: 4px 6px;
  font-size: .74rem; line-height: 1.2; cursor: default; text-align: center; transition: background .2s, border-color .2s, color .2s, transform .2s;
  color: var(--muted); overflow: hidden;
}
.slot b { font-weight: 500; font-size: .8rem; color: inherit; font-variant-numeric: tabular-nums; }
.slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.slot.is-open { border-color: rgba(201, 180, 143, .45); color: var(--paper); cursor: pointer; }
.slot.is-open span { color: var(--sand); }
.slot.is-open:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.slot.is-open:hover span { color: var(--ink); }
.slot.is-mine { background: var(--sand); color: var(--ink); cursor: pointer; }
.slot.is-mine_pending, .slot.is-pending { border: 1px dashed var(--sand); color: var(--sand); cursor: pointer; }
.slot.is-taken { background: var(--ink-3); color: #6d6964; }
.slot.coach.is-taken { cursor: pointer; color: var(--paper); background: var(--ink-4); }
.slot.is-closed { background: repeating-linear-gradient(45deg, var(--ink-3) 0 2px, transparent 2px 7px); color: #6d6964; }
.slot.coach.is-closed, .slot.coach.is-open, .slot.coach.is-soon, .slot.coach.is-later { cursor: pointer; }
.slot.is-soon, .slot.is-later { color: #5c5853; }
.slot.is-soon.member, .slot.is-soon.public { cursor: help; }
.slot.is-past { opacity: .28; }
.slot.empty { visibility: hidden; }
.cal-dayoff { grid-column: span 1; }

/* vue mobile */
.cal-days { display: flex; gap: 8px; overflow-x: auto; padding: 16px 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cal-days::-webkit-scrollbar { display: none; }
.day-chip { flex: none; width: 58px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; text-align: center; }
.day-chip .dow { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.day-chip .dom { display: block; font: 300 1.35rem/1.2 var(--f-display); }
.day-chip .dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 5px auto 0; background: transparent; }
.day-chip.has-open .dot { background: var(--sand); }
.day-chip.sel { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.day-chip.sel .dow { color: #6f6a62; }
.cal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 16px 18px 20px; }
.cal-list .slot { min-height: 58px; flex-direction: row; justify-content: space-between; padding: 0 16px; font-size: .82rem; }
.cal-list .slot b { font-size: .95rem; }
.cal-empty { grid-column: 1 / -1; color: var(--muted); padding: 26px 0; text-align: center; font-weight: 300; }

/* ---------- instagram ---------- */
.insta { padding: clamp(80px, 10vw, 130px) 0; background: radial-gradient(70% 140% at 10% 50%, #232325 0%, var(--ink) 65%); }
.insta-inner { display: flex; align-items: center; gap: 60px; }
.insta-inner img { width: 168px; height: 168px; border-radius: 50%; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px var(--line-2), 0 0 0 10px rgba(243, 239, 232, .03), 0 0 0 11px var(--line); flex: none; }
.insta h2 { margin-bottom: 14px; }
.insta p:not(.eyebrow) { color: var(--stone); font-weight: 300; margin: 0 0 30px; }
@media (max-width: 700px) { .insta-inner { flex-direction: column; align-items: flex-start; gap: 34px; } .insta-inner img { width: 120px; height: 120px; } }

/* ---------- pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.foot { display: grid; grid-template-columns: auto 1fr auto auto; gap: 30px 50px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 300 1.15rem var(--f-display); }
.foot-contact { margin: 0; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--stone); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.foot nav a:hover { color: var(--paper); }
.copy { margin: 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 880px) { .foot { grid-template-columns: 1fr; } }

/* ---------- vues applicatives ---------- */
body.app #home { display: none; }
#view { min-height: 100vh; padding: calc(var(--header-h) + 50px) 0 100px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 150px); width: min(1100px, 100% - 48px); margin: 0 auto; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--ink-2); }
.auth-side {
  position: relative; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, #2b2b2d 0%, #151516 50%, var(--ink) 100%);
}
.auth-side::before { content: ''; position: absolute; inset: -10% -30% -10% -20%; background: url('palm.svg') no-repeat 0 60% / 120%; color: #888; opacity: .35; }
.auth-side > * { position: relative; }
.auth-side h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-top: 20px; }
.auth-side .quote { font: italic 400 1.4rem/1.4 var(--f-serif); color: var(--sand); max-width: 18em; margin: 0; }
.auth-main { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-main h2 { font-size: 2.1rem; margin-bottom: 10px; }
.auth-main > p { color: var(--muted); margin: 0 0 30px; font-weight: 300; }
.auth-alt { margin-top: 26px; color: var(--muted); font-size: .94rem; }
.auth-alt a { color: var(--sand); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; border-radius: 22px; }
  .auth-side { padding: 36px 30px; min-height: 220px; }
  .auth-main { padding: 36px 26px; }
}

/* ---------- formulaires ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field small { color: var(--muted); font-size: .8rem; }
.input, .select, .textarea {
  width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink); padding: 0 18px;
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 4px rgba(201, 180, 143, .14); }
.input[readonly] { color: var(--stone); background: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap .toggle-pw { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--stone); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sand); }
.form-error { color: var(--err); font-size: .92rem; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

.plan-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; }
.plan-opt label { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan-opt label strong { font: 400 1.15rem var(--f-display); }
.plan-opt label em { font-style: normal; color: var(--muted); font-size: .86rem; }
.plan-opt input:checked + label { border-color: var(--sand); background: rgba(201, 180, 143, .09); }
.plan-opt input:focus-visible + label { outline: 2px solid var(--sand); outline-offset: 2px; }

/* ---------- tableau de bord ---------- */
.dash { width: min(1200px, 100% - 48px); margin: 0 auto; }
@media (max-width: 600px) { .dash { width: calc(100% - 28px); } }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.dash-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .dash-grid, .dash-grid.two { grid-template-columns: 1fr; } }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card + .card { margin-top: 18px; }
.dash-grid .card + .card { margin-top: 0; }
.card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.card-label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.card-big { font: 300 2rem/1.15 var(--f-display); margin: 0 0 8px; }
.card-big em { font-family: var(--f-serif); font-style: italic; color: var(--sand); }
.card p { color: var(--stone); margin: 0 0 12px; font-weight: 300; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.card-head p { margin: 0; }
.card.accent { background: linear-gradient(135deg, #1d1b17 0%, var(--ink-2) 70%); border-color: rgba(201, 180, 143, .25); }

.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--stone); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: rgba(157, 181, 150, .4); }
.badge.warn { color: var(--warn); border-color: rgba(217, 173, 106, .4); }
.badge.err { color: var(--err); border-color: rgba(224, 127, 108, .4); }
.badge.sand { color: var(--sand); border-color: rgba(201, 180, 143, .4); }

.banner { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(217, 173, 106, .35); background: rgba(217, 173, 106, .07); color: var(--paper); margin-bottom: 18px; }
.banner p { margin: 0; color: var(--stone); }
.banner strong { display: block; font-weight: 500; margin-bottom: 2px; color: var(--paper); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list .who { display: grid; gap: 2px; min-width: 0; }
.list .who strong { font-weight: 500; }
.list .who small { color: var(--muted); overflow-wrap: anywhere; }
.list .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); font-weight: 300; padding: 10px 0; margin: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink-4); display: inline-grid; place-items: center; font: 400 .9rem var(--f-display); color: var(--sand); flex: none; }
.member-line { display: flex; gap: 14px; align-items: center; }

/* ---------- espace coach ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab { position: relative; background: none; border: 0; padding: 14px 16px; cursor: pointer; color: var(--muted); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.tab[aria-selected="true"] { color: var(--paper); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--sand); }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: .68rem; letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font: 300 2.5rem/1 var(--f-display); margin-bottom: 8px; }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }
.req { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req-date { font: 300 1.25rem/1.25 var(--f-display); }
.req-date small { display: block; color: var(--sand); font: 400 .9rem var(--f-body); margin-top: 4px; }
.req-note { font: italic 400 1.1rem var(--f-serif); color: var(--stone); margin-top: 6px; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; gap: 12px; } }
.subs { display: grid; gap: 14px; }
.sub-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; background: var(--ink); }
.sub-card .sub-ctrl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.sub-card .select { height: 38px; width: auto; font-size: .86rem; padding: 0 34px 0 14px; background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px; border-radius: 10px; }
.sub-members { display: grid; gap: 10px; margin-top: 14px; }
.sub-members .mrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .94rem; }
.sub-members .mrow small { color: var(--muted); }
@media (max-width: 760px) { .sub-card { grid-template-columns: 1fr; } .sub-card .sub-ctrl { justify-content: flex-start; } }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .settings-grid { grid-template-columns: 1fr; } }
.days-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.days-pick label { position: relative; }
.days-pick input { position: absolute; opacity: 0; }
.days-pick span { display: inline-grid; place-items: center; width: 48px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; font-size: .82rem; }
.days-pick input:checked + span { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.days-pick input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.fieldset-title { font: 300 1.3rem var(--f-display); margin: 18px 0 4px; grid-column: 1 / -1; }

/* ---------- modale ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 6, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 34px; box-shadow: 0 40px 100px -30px #000; animation: rise .3s var(--ease); }
.modal h3 { font-size: 1.8rem; margin-bottom: 14px; }
.modal p { color: var(--stone); font-weight: 300; margin: 0 0 14px; }
.modal .when { font: 300 1.35rem/1.35 var(--f-display); color: var(--paper); margin: 0 0 18px; }
.modal .when em { font-family: var(--f-serif); color: var(--sand); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 26px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { height: 46px; font-size: .86rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 90; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 50px -20px #000; font-size: .95rem; animation: rise .3s var(--ease); display: flex; gap: 12px; align-items: flex-start; }
.toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--ok); }
.toast.err::before { background: var(--err); }
.toast.info::before { background: var(--sand-deep); }

/* ---------- page 404 / messages ---------- */
.center-msg { text-align: center; max-width: 560px; margin: 60px auto; }
.center-msg h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 20px; }
.center-msg p { color: var(--stone); margin-bottom: 30px; }

/* ---------- animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- utilitaires ---------- */
.mt { margin-top: 28px; }
.mt-sm { margin-top: 14px; }
.dash-grid.flat { margin-bottom: 0; }
.card .dash-grid.flat { gap: 40px; }
.cal-time, .cal-cell { border-top: 1px solid var(--line); }
.cal-grid .slot.is-open span, .cal-grid .slot.coach.is-soon span, .cal-grid .slot.coach.is-later span { display: none; }
.cal-grid .slot:not(.is-open):not(.coach.is-soon):not(.coach.is-later) b { display: none; }
.cal-grid .slot.coach.is-soon, .cal-grid .slot.coach.is-later { color: var(--stone); border-color: var(--line); }
.cal-grid .slot.coach.is-soon:hover, .cal-grid .slot.coach.is-later:hover, .cal-grid .slot.coach.is-open:hover { background: var(--ink-4); color: var(--paper); border-color: var(--line-2); }
.sub-card h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Séances : tableaux de bord, journal, bibliothèque
   ========================================================================== */
.subnav { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; gap: 4px; }
.subnav a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); transition: background .2s, color .2s; }
.subnav a:hover { color: var(--paper); }
.subnav a.on { background: var(--paper); color: var(--ink); }
.dash-head .acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 26px; color: var(--stone); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.back:hover { color: var(--paper); }
.dash-head .muted { margin: 12px 0 0; font-weight: 300; }
.dash-head .muted a { color: var(--stone); }
.stat small { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; }

/* graphiques */
.chart { width: 100%; height: auto; display: block; margin-top: 18px; overflow: visible; }
.ch-base { stroke: var(--line-2); stroke-width: 1; }
.ch-bar { fill: var(--sand); }
.ch-hit { fill: transparent; cursor: default; }
.ch-hit:hover { fill: rgba(243, 239, 232, .04); }
.ch-val { fill: var(--paper); font: 500 12px var(--f-body); }
.ch-x { fill: var(--muted); font: 400 11px var(--f-body); }
.chart-tip { position: fixed; z-index: 95; pointer-events: none; background: var(--paper); color: var(--ink); font-size: .82rem; padding: 7px 11px; border-radius: 8px; box-shadow: 0 10px 30px -10px #000; white-space: nowrap; }
.hbars { display: grid; gap: 12px; margin-top: 18px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 14px; align-items: center; font-size: .9rem; }
.hbar-l { color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-t { height: 10px; position: relative; }
.hbar-t i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--sand); border-radius: 0 4px 4px 0; transition: width .6s var(--ease); }
.hbar-v { color: var(--paper); font-variant-numeric: tabular-nums; font-size: .82rem; white-space: nowrap; }
.rec { font: 300 1.15rem var(--f-display); color: var(--paper); white-space: nowrap; }

/* programmes */
.progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.prog { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--ink); }
.prog-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.prog h3 { font-size: 1.3rem; }
.prog-items { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prog-items li { color: var(--paper); }
.prog-items li::marker { color: var(--sand); font-family: var(--f-serif); font-style: italic; }
.prog-items small { display: block; color: var(--muted); font-size: .84rem; }
.prog-editor { border: 1px solid rgba(201, 180, 143, .3); border-radius: 16px; padding: 22px; margin-bottom: 18px; background: var(--ink); display: grid; gap: 16px; }
.pitem { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(70px, 100px)) minmax(140px, 1.4fr) auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.pitem-name small { display: block; color: var(--muted); font-size: .78rem; }
.pitem .mini:nth-of-type(3):last-of-type { grid-column: span 1; }
.mini { display: grid; gap: 4px; }
.mini span { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.grow { flex: 1; }
@media (max-width: 860px) { .pitem { grid-template-columns: 1fr 1fr 1fr; } .pitem-name, .pitem-note { grid-column: 1 / -1; } }

/* chips, barres d'outils, tableaux */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .82rem; color: var(--stone); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip.sel { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip span { font-size: .72rem; opacity: .7; }
.toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.input-sm { height: 40px; border-radius: 10px; padding: 0 12px; font-size: .92rem; }
.search { width: min(320px, 100%); }
.table-wrap { overflow-x: auto; margin: 0 -10px; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { text-align: left; font-weight: 400; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--paper); text-decoration: none; }
.table a:hover { color: var(--sand); }
.ta-r { text-align: right; }
.acts.end { justify-content: flex-end; }
.list.compact li { padding: 10px 0; }
.list li.off { opacity: .45; }
.pick-cat { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin: 22px 0 6px; }
.lib-grid { align-items: start; }
.card.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* sélecteur d'exercices */
.modal:has(.picker) { width: min(720px, 100%); }
.picker { display: grid; gap: 14px; }
.pick-list { max-height: min(46vh, 420px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px 12px; }
.pick-list .pick-cat:first-child { margin-top: 12px; }
.pick { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; padding: 11px 12px; margin: 2px 0; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.pick:hover { background: var(--ink-3); }
.pick small { color: var(--muted); font-size: .78rem; text-align: right; }
.pick.on { border-color: var(--sand); background: rgba(201, 180, 143, .1); }
.pick.on span::before { content: '✓  '; color: var(--sand); }
.custom-ex summary { cursor: pointer; color: var(--sand); font-size: .9rem; }
.custom-ex[open] { display: grid; gap: 10px; }
.custom-ex .form-row { margin-top: 10px; }

/* journal */
.journal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .journal { grid-template-columns: 1fr; } }
.j-main { display: grid; gap: 14px; }
.j-main > div[data-entries] { display: grid; gap: 14px; }
.j-main .card + .card { margin-top: 0; }
.j-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 980px) { .j-side { position: static; } }
.j-add { display: flex; flex-wrap: wrap; gap: 10px; }
.j-empty { text-align: center; padding: 50px 30px; }
.entry { padding: 22px 24px; }
.entry-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.entry-head h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.entry-head .acts { display: flex; gap: 6px; }
.tag { display: inline-block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.sets { display: grid; gap: 8px 10px; align-items: center; }
.sets.cols-1 { grid-template-columns: 52px minmax(0, 180px) 32px; }
.sets.cols-2 { grid-template-columns: 52px minmax(0, 160px) minmax(0, 160px) 32px; }
.sets .sh { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sets .sn { font: italic 400 1.15rem var(--f-serif); color: var(--sand); }
.icon-btn.sm { width: 32px; height: 32px; border-color: transparent; color: var(--muted); }
.icon-btn.sm:hover { border-color: var(--line-2); color: var(--paper); }
.icon-btn.sm svg { width: 13px; height: 13px; }
.entry-foot { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.entry-foot .input { flex: 1; }
.feel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.feel button { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.feel button b { font: 300 1.3rem var(--f-display); }
.feel button small { font-size: .62rem; color: var(--muted); }
.feel button.on { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.feel button.on small { color: var(--ink); }
.j-totals { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.j-totals b { display: block; font: 300 1.4rem var(--f-display); color: var(--paper); }
.save-state { margin: -6px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.journal-page .dash-head .chips { max-width: 420px; justify-content: flex-end; }

/* ---------- ajustements */
.who { display: grid; gap: 2px; min-width: 0; }
.who small { color: var(--muted); overflow-wrap: anywhere; }
.pitem .pitem-note { grid-column: 5; }
.pitem [data-rm] { grid-column: 6; }
@media (max-width: 860px) { .pitem .pitem-note { grid-column: 1 / -1; } }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dash > .card + .stats, .dash > .card + .banner { margin-top: 18px; }
.banner { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.stats + .banner { margin-top: -8px; }

/* ==========================================================================
   v4 : objectifs, parcours, bilans, créneaux coach
   ========================================================================== */
.goal-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .goal-pick { grid-template-columns: 1fr; } }
.goal-opt { position: relative; }
.goal-opt input { position: absolute; opacity: 0; inset: 0; }
.goal-opt label { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.goal-opt label strong { font: 400 1.05rem var(--f-display); }
.goal-opt label em { font-style: normal; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.goal-opt input:checked + label { border-color: var(--sand); background: rgba(201, 180, 143, .09); }
.goal-opt input:focus-visible + label { outline: 2px solid var(--sand); outline-offset: 2px; }
.modal:has(.goal-pick) { width: min(680px, 100%); }
.prog.next { border-color: rgba(201, 180, 143, .55); box-shadow: 0 0 0 1px rgba(201, 180, 143, .2) inset; }
.prog .badge { margin-top: 8px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 16px 0; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--ink); display: grid; gap: 4px; }
.metric span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metric b { font: 300 1.5rem var(--f-display); color: var(--paper); }
.metric small { font-size: .78rem; color: var(--muted); }
.metric small.up { color: var(--ok); }
.metric small.down { color: var(--warn); }
.cal-mode { padding: 12px 22px; background: rgba(201, 180, 143, .1); border-bottom: 1px solid rgba(201, 180, 143, .3); font-size: .92rem; }
.cal-mode .link { margin-left: 8px; }
.cal-nav { align-items: center; flex-wrap: wrap; }
.slot.is-add { cursor: pointer; color: transparent; border: 1px dashed transparent; font-size: 1.1rem; }
.slot.is-add:hover { color: var(--sand); border-color: rgba(201, 180, 143, .5); }
.slot.extra { border-style: dashed; }
.slot.is-removed { cursor: pointer; color: #6d6964; text-decoration: line-through; border: 1px dashed var(--line-2); }
.cal-grid .slot.is-removed b { display: none; }
.cal-legend .lg-removed { border-style: dashed; }
.cal-legend .lg-extra { border: 1px dashed var(--sand); }
.cal-list-add { padding: 0 18px 18px; }
.req .tag { display: block; margin-bottom: 4px; }
.card .tag + br + * { margin-top: 4px; }
/* v4.1 — finitions */
.card-head .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.goal-opt label { align-content: start; }
.modal .form-row + .field, .modal .field + .field { margin-top: 14px; }
/* v5 — parcours modifiables, éditeur d'exercices */
.pitem.has-rest { grid-template-columns: minmax(160px, 1.4fr) repeat(4, minmax(64px, 92px)) minmax(130px, 1.3fr) auto; }
.pitem .pitem-tools { grid-column: -2 / -1; display: flex; gap: 4px; }
.pitem.has-rest .pitem-note { grid-column: 6; }
.pitem .pitem-tools .icon-btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 860px) { .pitem.has-rest { grid-template-columns: 1fr 1fr; } .pitem.has-rest .pitem-note { grid-column: 1 / -1; } .pitem .pitem-tools { grid-column: 1 / -1; justify-content: flex-end; } }
.goal-chips { margin: 4px 0 22px; }
.chip-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); margin-left: 6px; vertical-align: middle; }
.chip.sel .chip-dot { background: var(--ink); }
.path-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); margin-bottom: 16px; }
.path-head h3 { font: 300 1.6rem var(--f-display); margin: 0 0 4px; }
.path-head .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.path-card .prog-head { flex-direction: column; gap: 12px; }
.path-card .prog-head .acts { display: flex; gap: 6px; flex-wrap: wrap; }
