/* Identité Hi.Créa : fond anthracite, accent orange, Poppins partout, barres décoratives « | | | ». Thème sombre unique, assumé. */
:root {
  --bg: #222222;
  --paper: #1b1b1b;
  --surface: #2b2b2b;
  --fg: #ffffff;
  --muted: #ababab;
  --line: #3b3b3b;
  --ink: #ffffff;
  --ink-soft: #6f6f6f;
  --band: #181818;
  --band-fg: #ffffff;
  --band-muted: #ababab;
  --cyan: #f7b267;
  --magenta: #f0952a;
  --yellow: #ffc46b;
  --accent: #f0952a;
  --accent-fg: #1a1a1a;
  --ok: #4cc38a;
  --warn: #f0b45a;
  --danger: #ff6b6b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7);

  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Poppins", "Segoe UI", system-ui, sans-serif;

  --r: 10px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 300 1rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
b, strong { font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
.mono { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; font-weight: 400; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--f-body); padding: .8em 1.15em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { font-size: 1.02rem; padding: 1em 1.4em; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-fg); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
.btn--ink { background: var(--fg); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--paper); }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--line:hover { border-color: var(--fg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.1rem/1 var(--f-display); letter-spacing: -.01em; }
.brand b { font-weight: 500; margin-left: .25em; color: var(--muted); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--paper); }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--fg); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
body.in-app .nav, body.in-app .burger { display: none; }
body.in-app .topbar__actions { margin-left: auto; }

.demo-banner { background: var(--yellow); color: #1b1600; font-size: .85rem; font-weight: 500; }
.demo-banner .wrap { padding-block: 8px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 70%, transparent) 62%); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--c { background: var(--cyan); } .dot--m { background: var(--magenta); } .dot--y { background: var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 12px 0 0; }
.facts dt { font: 400 .72rem/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 4px 0 0; font: 700 1.45rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }

/* Plan de travail */
.artboard { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.artboard__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--paper); gap: 12px; }
.artboard__bar .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artboard__tools { display: flex; gap: 6px; }
.artboard__tools i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.artboard__body { display: grid; grid-template-columns: 1fr 150px; }
.canvas { position: relative; margin: 22px; aspect-ratio: 4 / 3; max-width: 100%; background:
  repeating-conic-gradient(var(--paper) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); }
.bezier { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; }
.bezier__shape { fill: none; stroke: var(--magenta); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; animation: draw 2.4s ease .3s both; }
.handle { stroke: var(--cyan); stroke-width: 1.2; }
.knob { fill: var(--surface); stroke: var(--cyan); stroke-width: 1.5; }
.anchor { fill: var(--surface); stroke: var(--cyan); stroke-width: 1.5; }
.anchor--on { fill: var(--cyan); }
.canvas__tag { position: absolute; left: 10px; bottom: 10px; background: var(--fg); color: var(--bg); padding: 4px 8px; border-radius: 4px; font-size: .7rem; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.crop { position: absolute; width: 14px; height: 14px; border-color: var(--fg); border-style: solid; border-width: 0; opacity: .55; }
.crop--tl { left: -18px; top: -18px; border-right-width: 1px; border-bottom-width: 1px; }
.crop--tr { right: -18px; top: -18px; border-left-width: 1px; border-bottom-width: 1px; }
.crop--bl { left: -18px; bottom: -18px; border-right-width: 1px; border-top-width: 1px; }
.crop--br { right: -18px; bottom: -18px; border-left-width: 1px; border-top-width: 1px; }
.layers { border-left: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; }
.layers__title { color: var(--muted); text-transform: uppercase; }
.layers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.layers li { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 6px; }
.layers li i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.layers li.is-on { background: color-mix(in srgb, var(--cyan) 16%, transparent); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: auto; }
.swatches span { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; font: 500 .66rem/1 var(--f-mono); color: #fff; }
.swatches span:nth-child(3) { color: #1b1600; }
.swatches span:nth-child(4) { color: var(--bg); }

/* ---------- Bandes ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--tight { padding-block: 32px 8px; }
.band--paper { background: var(--paper); }
.band--ink { background: var(--band); color: var(--band-fg); }
.band--ink .eyebrow, .band--ink p { color: var(--band-muted); }
.band--ink h2 { color: var(--band-fg); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 40px; }
.section-head__sub { color: var(--muted); font-size: 1.05rem; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.pillars article { padding: 26px 22px 26px 0; display: grid; gap: 8px; align-content: start; }
.pillars article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.pillars p { color: var(--muted); font-size: .95rem; }

/* Programme */
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--paper); border-radius: 999px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 10px; font: 600 .92rem/1 var(--f-body); border: 0; background: transparent; color: var(--muted); padding: 10px 16px 10px 10px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.app { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font: 700 .8rem/1 var(--f-display); flex: none; }
.app--ps { background: #001e36; color: #31a8ff; }
.app--ai { background: #330000; color: #ff9a00; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; }
.week__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.week__n { font: 500 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.week ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; display: grid; gap: 2px; }
.week__ex { border-top: 1px dashed var(--line); padding-top: 12px; font-size: .92rem; }
.week__ex b { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-right: 6px; }

/* Suivi */
.suivi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.suivi__copy { display: grid; gap: 18px; min-width: 0; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); -webkit-mask: radial-gradient(circle at 50% 50%, #000 0 100%); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 4px); width: 6px; height: 3px; border-left: 2px solid #1b1600; border-bottom: 2px solid #1b1600; transform: rotate(-45deg); }
.band--ink .checks li { color: var(--band-fg); }
.checks--dark li::before { background: var(--cyan); }
.checks--dark li::after { border-color: #fff; }
.chat-preview { display: grid; gap: 14px; min-width: 0; }
.bubble { background: color-mix(in srgb, var(--band-fg) 9%, transparent); border: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); padding: 14px 16px; border-radius: 16px 16px 16px 4px; max-width: 88%; display: grid; gap: 6px; }
.band--ink .bubble p { color: var(--band-fg); }
.bubble .mono { color: var(--band-muted); }
.bubble--me { justify-self: end; background: color-mix(in srgb, var(--cyan) 30%, var(--band)); border-color: transparent; border-radius: 16px 16px 4px 16px; }

/* Formateurs */
.trainers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.trainer { display: flex; gap: 20px; align-items: flex-start; }
.trainer > div:last-child { display: grid; gap: 6px; min-width: 0; }
.trainer p { color: var(--muted); }
.trainer .role { font: 500 .78rem/1.3 var(--f-mono); color: var(--fg); }
.avatar { --a: var(--cyan); width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 1.3rem/1 var(--f-display); color: #fff; background: var(--a); }
.avatar--sm { width: 40px; height: 40px; font-size: .9rem; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan .checks { flex: 1; color: var(--fg); }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__flag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-fg); padding: 4px 10px; border-radius: 999px; }
.price { color: var(--muted); }
.price span { font: 800 2.8rem/1 var(--f-display); color: var(--fg); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Attestation */
.cert-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cert-band > div:first-child { display: grid; gap: 16px; }
.cert-band > div:first-child p:not(.eyebrow) { color: var(--muted); }
.cert-mini { position: relative; margin: 24px; background: var(--surface); border: 1px solid var(--line); padding: 40px 32px; display: grid; gap: 10px; text-align: center; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.cert-mini .mono { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.cert-mini__t { font: 700 1.3rem/1.2 var(--f-display); }
.cert-mini__n { font: 800 2rem/1.1 var(--f-display); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cert-mini__s { color: var(--muted); font-size: .9rem; }
.cert-mini__line { height: 6px; background: linear-gradient(90deg, var(--cyan) 0 33%, var(--magenta) 33% 66%, var(--yellow) 66%); border-radius: 3px; margin-top: 8px; }

/* FAQ */
.faq__list { display: grid; max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.05rem/1.4 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 42em; }

.cta-final__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--line); }
.footer__in { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: .9rem; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 22, .55); }
.modal__card { position: relative; background: var(--surface); width: 100%; max-width: 440px; border-radius: 16px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); max-height: 100%; overflow: auto; }
.modal__x { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 1.6rem; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 10px; padding: 4px; margin-right: 32px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 7px; font: 600 .9rem/1 var(--f-body); color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .82rem; color: var(--muted); }
.hint--center { text-align: center; }
.form-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 10px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 10px; z-index: 90; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- Espace membre ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-block: 28px 56px; align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.side__user { display: flex; gap: 12px; align-items: center; min-width: 0; }
.side__user > div:last-child { min-width: 0; }
.side__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__role { color: var(--muted); }
.side__nav { display: grid; gap: 2px; }
.side__nav button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: 500 .95rem/1.2 var(--f-body); color: var(--muted); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.side__nav button:hover { background: var(--paper); color: var(--fg); }
.side__nav button.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--fg); font-weight: 600; }
.badge { background: var(--accent); color: var(--accent-fg); font: 600 .72rem/1 var(--f-mono); padding: 3px 7px; border-radius: 999px; }
.panel { min-width: 0; display: grid; gap: 20px; align-content: start; }
.panel__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.panel__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.panel__head p { color: var(--muted); margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat p:first-child { font: 500 .72rem/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat p:nth-child(2) { font: 800 2rem/1.1 var(--f-display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat p:nth-child(3) { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.progress { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); border-radius: inherit; }
.timeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.timeline div { display: grid; gap: 6px; text-align: center; font: 500 .7rem/1 var(--f-mono); color: var(--muted); }
.timeline i { height: 10px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); }
.timeline .done i { background: var(--ok); border-color: var(--ok); }
.timeline .sent i { background: var(--yellow); border-color: var(--yellow); }
.timeline .now i { border: 2px solid var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--f-body); padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: var(--paper); color: var(--muted); }
.pill--ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill--warn { background: color-mix(in srgb, var(--yellow) 25%, transparent); color: var(--warn); }
.pill--todo { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pill--lock { background: var(--paper); color: var(--ink-soft); }

.week-block { display: grid; gap: 10px; }
.week-block__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.week-block__head h3 { margin: 0; }
.tuto { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.tuto__play { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--fg); color: var(--bg); }
.tuto__play svg { width: 16px; height: 16px; }
.tuto__body { flex: 1; min-width: 0; }
.tuto__body p:first-child { font-weight: 600; }
.tuto__body p:last-child { color: var(--muted); font-size: .85rem; }
.tuto label { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tuto input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ok); }
.locked { opacity: .6; }
.player { aspect-ratio: 16 / 9; max-width: 100%; background: #0b0c18; color: #c9cce0; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 20px; position: relative; overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; }

.ex { display: grid; gap: 12px; }
.ex__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ex__brief { color: var(--muted); font-size: .95rem; }
.ex__spec { display: flex; flex-wrap: wrap; gap: 6px; }
.ex__spec span { font: 500 .72rem/1 var(--f-mono); padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.feedback { border-left: 3px solid var(--cyan); background: var(--paper); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .93rem; }
.feedback .mono { color: var(--muted); display: block; margin-bottom: 4px; }
.upload { display: grid; gap: 10px; }
.file-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.thumb { width: 100%; max-width: 280px; border-radius: 8px; border: 1px solid var(--line); }

.chat { display: grid; grid-template-rows: 1fr auto; height: min(68vh, 640px); padding: 0; overflow: hidden; }
.chat__log { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; display: grid; gap: 4px; }
.msg p { background: var(--paper); padding: 10px 14px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .mono { color: var(--muted); font-size: .7rem; }
.msg--me { align-self: flex-end; text-align: right; }
.msg--me p { background: color-mix(in srgb, var(--cyan) 18%, var(--surface)); border-radius: 14px 14px 4px 14px; text-align: left; }
.chat__form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); grid-template-columns: none; }
.chat__form textarea { min-height: 46px; height: 46px; resize: none; }
.chat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.students { display: grid; gap: 4px; align-content: start; padding: 10px; }
.students button { text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 8px; cursor: pointer; color: var(--fg); font: inherit; display: grid; gap: 2px; }
.students button.is-active, .students button:hover { background: var(--paper); }
.students small { color: var(--muted); font-size: .78rem; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; display: grid; gap: 8px; justify-items: center; }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-scroll { overflow-x: auto; }

/* Attestation complète */
.certificate { background: #fffdf8; color: #16182c; border: 1px solid #e3e0d6; padding: clamp(24px, 5vw, 56px); position: relative; display: grid; gap: 16px; text-align: center; }
.certificate .cert-mini__line { max-width: 240px; margin: 4px auto 0; background: linear-gradient(90deg, #0096c7 0 33%, #d61f69 33% 66%, #f2bd00 66%); }
.certificate h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.certificate .name { font: 800 clamp(1.8rem, 5vw, 2.8rem)/1.1 var(--f-display); }
.certificate p { color: #4b4f66; }
.certificate .sign { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: .85rem; text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .suivi, .cert-band { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars article:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; }
  .side__nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .chat-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter-l); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; }
  .burger { display: inline-flex; }
  #btnLogin { display: none; }
  .topbar__actions { margin-left: auto; }
  .weeks, .trainers, .plans, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .artboard__body { grid-template-columns: 1fr; }
  .layers { border-left: 0; border-top: 1px solid var(--line); }
  .layers ul { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article { padding: 20px 0; border-left: 0; }
  .pillars article + article { border-top: 1px solid var(--line); }
  .brand b { display: none; }
  .tuto { flex-wrap: wrap; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .msg { max-width: 92%; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .side, .demo-banner, .panel__head .btn, .footer { display: none !important; }
  .app-shell { display: block; }
  .certificate { border: 0; }
}

/* Moyens de paiement */
.pay { display: grid; gap: 10px; margin-top: 28px; }
.price span { white-space: nowrap; }
.plan .price + .hint { margin-top: -10px; }

/* Studio Hi.Créa et pied de page */
.studio { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.studio__copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.studio__copy p:not(.eyebrow) { color: var(--muted); }
.studio__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.studio__stats div { background: var(--surface); padding: 22px; }
.studio__stats dt { font: 500 .72rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.studio__stats dd { margin: 6px 0 0; font: 800 2.2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.footer__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 40px 28px; }
.footer__col { display: grid; gap: 6px; align-content: start; }
.footer__legal { grid-column: 1 / -1; font-size: .8rem; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; } .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__in { grid-template-columns: 1fr; } }


/* ================= Habillage Hi.Créa ================= */
.brand__logo { height: 26px; width: auto; display: block; }
.brand span { font: 500 .78rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.nav a { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--fg); padding: 8px 14px; position: relative; }
.nav a + a::before { content: "·"; position: absolute; left: -4px; color: var(--muted); }
.nav a:hover { color: var(--accent); background: transparent; }
.btn { font-weight: 500; letter-spacing: .02em; }
.btn--ink { background: var(--fg); color: #1a1a1a; }
.btn--ghost:hover { background: var(--surface); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.bars { display: inline-flex; gap: 6px; align-items: flex-end; height: 18px; }
.bars i { width: 2px; height: 12px; background: var(--fg); }
.bars i:first-child { background: var(--accent); height: 18px; }
.eyebrow { font: 600 .74rem/1 var(--f-body); letter-spacing: .2em; color: var(--accent); gap: 12px; }
.band--ink .eyebrow { color: var(--accent); }

.hero { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(48px, 8vw, 96px); text-align: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(24,24,24,.8), rgba(34,34,34,.94) 80%, var(--bg)), url("img/akwaba.jpg") center 35% / cover no-repeat; }
.hero__in { display: grid; gap: 26px; justify-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 700; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); background: none; }
.hero .lead { color: #d8d8d8; max-width: 40em; }
.hero__cta { justify-content: center; }
.hero .facts { width: 100%; max-width: 760px; border-top-color: rgba(255,255,255,.18); text-align: left; }
.facts dd { font-weight: 600; }

.quote-band { padding-block: clamp(48px, 7vw, 88px) 8px; }
.quote { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin: 0; max-width: 980px; }
.quote__mark { display: flex; align-items: center; gap: 18px; padding-top: .55em; }
.quote__mark b { font: 700 2rem/0 Georgia, serif; }
.quote__mark i { width: 52px; height: 1px; background: var(--fg); display: block; }
.quote p { font: italic 300 clamp(1.15rem, 2.2vw, 1.6rem)/1.5 var(--f-body); color: #cfcfcf; }

.pillars { border-color: var(--line); }
.week, .plan, .card, .side, .trainer .avatar { border-color: var(--line); }
.tabs { background: var(--paper); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.week__ex b { color: var(--accent); }
.checks li::after { border-color: #1a1a1a; }
.checks--dark li::before { background: var(--accent); }
.checks--dark li::after { border-color: #1a1a1a; }
.avatar { color: #1a1a1a; }
.plan__flag { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.price span { font-weight: 700; }
.faq summary { font-weight: 500; }
.faq summary::after { font-family: var(--f-body); font-weight: 300; }
.cert-mini { background: #fffdf8; color: #1d1d1d; border-color: #e6e1d6; }
.cert-mini .mono { color: #c96f0a; }
.cert-mini__n { border-bottom-color: #e6e1d6; }
.cert-mini__s { color: #5c5c5c; }
.cert-mini .crop { border-color: #fff; }
.cert-mini__line, .certificate .cert-mini__line { background: #f0952a; }
.side__nav button.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.studio__stats dd { font-weight: 700; color: var(--accent); }
.demo-banner { background: var(--accent); color: #1a1a1a; }
.chat__log .msg--me p { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }

/* Réalisations du studio : grille d'images bord à bord */
.works { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; background: var(--paper); }
.work { position: relative; margin: 0; overflow: hidden; min-height: 260px; }
.work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .4s ease; }
.work--tall { grid-row: span 2; grid-column: 2; }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 28px 22px; background: linear-gradient(transparent, rgba(20,20,20,.88)); display: grid; gap: 2px; }
.work figcaption span { font-size: .74rem; letter-spacing: .14em; color: var(--accent); }
.work figcaption b { font-weight: 500; font-size: 1.1rem; }
.work:hover img { transform: scale(1.04); filter: brightness(.8); }
.works-head { padding-block: clamp(56px, 8vw, 96px) 32px; }

@media (max-width: 820px) {
  .works { grid-template-columns: 1fr 1fr; }
  .work--tall { grid-column: auto; grid-row: span 2; }
  .nav a + a::before { content: none; }
  .nav a { font-size: .85rem; }
}
@media (max-width: 560px) {
  .works { grid-template-columns: 1fr; }
  .work--tall { grid-row: auto; }
  .quote { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) { .brand span { display: none; } }
.work, .work--tall { grid-row: auto; grid-column: auto; height: clamp(260px, 30vw, 420px); }
.works { grid-template-rows: none; }
.timeline .sent i { background: var(--muted); border-color: var(--muted); }

/* Plus d'images */
.ribbon { overflow: hidden; background: var(--paper); border-block: 1px solid var(--line); }
.ribbon__track { display: flex; gap: 4px; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon__track img { height: clamp(120px, 16vw, 200px); width: auto; max-width: none; display: block; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.prog-visual { position: relative; margin: 0 0 20px; border-radius: 14px; overflow: hidden; height: clamp(180px, 26vw, 320px); }
.prog-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-visual figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; background: linear-gradient(transparent, rgba(20,20,20,.9)); font-weight: 500; }
.cta-final--img { position: relative; isolation: isolate; padding-block: clamp(72px, 10vw, 128px); }
.cta-final--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,20,20,.94), rgba(20,20,20,.72)), url("img/cci-forum.jpg") center 30% / cover no-repeat; }
.works { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }
.works { grid-template-columns: 1fr 1fr; }
.work, .work--tall { height: clamp(260px, 34vw, 480px); }
.work figcaption { background: linear-gradient(transparent, rgba(16,16,16,.95) 70%); padding-top: 64px; }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }
.avatar--photo { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--accent); padding: 0; }
.trainer .avatar { width: 96px; height: 96px; font-size: 1.6rem; }
.trainers--solo { grid-template-columns: 1fr; max-width: 760px; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-block { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price__detail { color: var(--fg); font-weight: 500; font-size: .92rem; }
.price__rate { color: var(--muted); font-size: .88rem; }
.price__rate b { color: var(--accent); font-weight: 600; }
.price span { font-size: clamp(2.2rem, 3.4vw, 2.8rem); }
@media (max-width: 960px) { .plans--3 { grid-template-columns: 1fr; max-width: 520px; } }
.price__total { font-size: .86rem; color: var(--muted); }
.price__total b { color: var(--fg); font-weight: 600; }
.price--hour { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.price--hour span { font: 700 clamp(2.8rem, 4.6vw, 3.6rem)/1 var(--f-display); color: var(--accent); letter-spacing: -.02em; }
.price--hour small { font: 600 .82rem/1.2 var(--f-body); color: var(--fg); text-transform: uppercase; letter-spacing: .08em; }

/* Logos clients */
.clients { background: var(--paper); border-top: 1px solid var(--line); }
.clients__in { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 32px; justify-items: center; text-align: center; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; max-width: 1040px; }
.clients__list li { height: 56px; display: grid; place-items: center; }
.clients__list img { max-height: 56px; max-width: 150px; width: auto; height: auto; opacity: .72; transition: opacity .2s; }
.clients__list img:hover { opacity: 1; }
@media (max-width: 560px) { .clients__list { gap: 22px 32px; } .clients__list li { height: 44px; } .clients__list img { max-height: 44px; max-width: 120px; } }
.clients__list li { height: auto; }
.clients__list img { max-height: none; max-width: 100%; height: auto; }
@media (max-width: 560px) { .clients__list img { transform: scale(.85); } }

/* ================= Éléments « académie » ================= */
/* Cartes flottantes du hero */
.hero__floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; max-width: 1400px; margin-inline: auto; }
.hero__in { position: relative; z-index: 1; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; width: 230px;
  background: rgba(34,34,34,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: floaty 6s ease-in-out infinite; }
.float > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.float img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.float svg { color: var(--accent); flex: none; }
.float__k { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.float__t { font-weight: 600; font-size: .92rem; }
.float .ok { color: var(--ok); }
.float .progress { margin-top: 6px; height: 6px; }
.float__curve { width: 100%; height: 26px; margin-top: 4px; overflow: visible; }
.float--a { left: 3%; top: 18%; }
.float--b { right: 3%; top: 22%; animation-delay: -1.5s; }
.float--c { left: 5%; bottom: 20%; animation-delay: -3s; width: 210px; }
.float--d { right: 4%; bottom: 16%; animation-delay: -4.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 1180px) { .hero__floats { display: none; } }

/* Étapes du parcours */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 32px; right: 12%; border-top: 1px dashed var(--line); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); position: relative; z-index: 1; }
.steps li:first-child .steps__ico { background: var(--accent); border-color: var(--accent); }
.steps li:first-child .steps__ico svg { stroke: #1a1a1a; }
.steps__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps__n { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Compétences */
.skills { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.skills__copy { display: grid; gap: 16px; }
.skills__copy p:not(.eyebrow) { color: var(--muted); }
.skills__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.skills__list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; font-size: .9rem; transition: border-color .2s, transform .2s; }
.skills__list li:hover { border-color: var(--accent); transform: translateY(-2px); }
.skills__list .app { width: 26px; height: 26px; font-size: .72rem; }

/* Maquette de l'espace élève */
.espace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.espace__copy { display: grid; gap: 18px; justify-items: start; }
.espace__copy .checks li { color: var(--fg); }
.laptop { min-width: 0; }
.laptop__screen { background: #0f0f0f; border: 10px solid #3a3a3a; border-bottom-width: 14px; border-radius: 16px 16px 0 0; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; }
.laptop__base { height: 14px; margin: 0 -6%; background: linear-gradient(#4a4a4a, #2a2a2a); border-radius: 0 0 14px 14px; }
.mock { display: grid; grid-template-columns: 22% 1fr; height: 100%; background: var(--bg); font-size: clamp(.5rem, 1vw, .72rem); }
.mock__side { background: var(--surface); padding: 10% 10%; display: grid; align-content: start; gap: 9px; }
.mock__side img { width: 80%; height: auto; margin-bottom: 8px; }
.mock__side i { height: 8px; border-radius: 4px; background: var(--line); }
.mock__side i.on { background: var(--accent); }
.mock__main { padding: 5%; display: grid; gap: 4%; align-content: start; }
.mock__h { font-weight: 700; font-size: 1.4em; }
.mock__stats { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.mock__stats > div { background: var(--surface); border-radius: 6px; padding: 8px; display: grid; gap: 3px; }
.mock__stats span { color: var(--muted); font-size: .85em; }
.mock__stats b { font-size: 1.3em; }
.mock__stats em { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--w), var(--line) var(--w)); }
.mock__ring { position: relative; place-items: center; }
.mock__ring svg { width: 46px; height: 46px; }
.mock__ring b { position: absolute; font-size: 1em; }
.mock__weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.mock__weeks i { height: 8px; border-radius: 2px; background: var(--line); }
.mock__weeks i.ok { background: var(--ok); }
.mock__weeks i.now { background: var(--accent); }
.mock__msg { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border-radius: 8px; padding: 8px; }
.mock__msg img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps::before { display: none; }
  .skills, .espace { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .skills__list { grid-template-columns: 1fr 1fr; }
}
.laptop { padding-inline: 4%; }
.laptop__base { margin: 0 -4%; }
.mock__tutos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock__tutos div { background: var(--surface); border-radius: 6px; padding: 6px; display: grid; gap: 4px; }
.mock__tutos i { aspect-ratio: 16 / 9; border-radius: 4px; background: linear-gradient(135deg, #3a3a3a, #2a2a2a); display: grid; place-items: center; font-style: normal; color: var(--accent); }
.mock__tutos span { color: var(--muted); font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Animations ================= */
/* Apparition au défilement (uniquement si le JS a pris la main) */
.rv { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .rv:not(.in) { opacity: 0; transform: translateY(32px); }
.anim .work.rv:not(.in) { transform: scale(.94); }
.anim .steps::before { transform-origin: left; transform: scaleX(0); transition: transform 1.6s ease .3s; }
.anim .steps.in::before { transform: scaleX(1); }

/* Hero : entrée en cascade, fond qui respire, soulignement dessiné */
.hero__in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__in > :nth-child(2) { animation-delay: .1s; }
.hero__in > :nth-child(3) { animation-delay: .25s; }
.hero__in > :nth-child(4) { animation-delay: .4s; }
.hero__in > :nth-child(5) { animation-delay: .55s; }
@keyframes rise { from { opacity: .3; transform: translateY(26px); } }
.hero__bg { animation: breathe 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes breathe { to { transform: scale(1.1); } }
.hero { overflow: hidden; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .08em; background: var(--accent); border-radius: 2px; transform-origin: left; animation: draw-line 1s cubic-bezier(.6,0,.2,1) .9s both; }
@keyframes draw-line { from { transform: scaleX(0); } }

/* Barres « | | | » façon égaliseur */
.bars i { animation: eq 1.6s ease-in-out infinite; transform-origin: bottom; }
.bars i:nth-child(2) { animation-delay: -.5s; }
.bars i:nth-child(3) { animation-delay: -1s; }
@keyframes eq { 50% { transform: scaleY(.45); } }

/* Bouton principal : reflet qui passe */
.btn--accent { position: relative; overflow: hidden; }
.btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }

/* Programme : cartes compactes qui surgissent à chaque onglet */
.weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.week { animation: pop .55s cubic-bezier(.2,.7,.2,1) both; transition: transform .25s, border-color .25s; }
.week:nth-child(2) { animation-delay: .08s; } .week:nth-child(3) { animation-delay: .16s; } .week:nth-child(4) { animation-delay: .24s; }
.week:hover { transform: translateY(-4px); border-color: var(--accent); }
@keyframes pop { from { opacity: .2; transform: translateY(18px) scale(.97); } }
.prog-visual img { transition: transform 6s ease; }
.prog-visual:hover img { transform: scale(1.06); }

/* Piliers et étapes : survol vivant */
.pillars article { transition: transform .25s; }
.pillars article:hover { transform: translateY(-4px); }
.pillars h3 { position: relative; padding-top: 14px; }
.pillars h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; transition: width .3s; }
.pillars article:hover h3::before { width: 56px; }
.steps__ico { transition: transform .3s, background-color .3s; }
.steps li:hover .steps__ico { transform: scale(1.1) rotate(-6deg); }
.steps li:first-child .steps__ico { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* Conversation : bulles qui arrivent l'une après l'autre */
.anim .bubble.rv:not(.in) { transform: translateY(20px) scale(.96); }

/* Tarifs : carte vedette lumineuse, survol des cartes */
.plan { transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); }
.plan--featured { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -12px color-mix(in srgb, var(--accent) 45%, transparent); } }

/* Attestation : léger flottement */
.cert-mini { animation: cert 7s ease-in-out infinite; }
@keyframes cert { 50% { transform: rotate(1deg) translateY(-8px); } }

/* Logos clients en défilé continu */
.clients__in { overflow: hidden; }
.clients__list.is-marquee { flex-wrap: nowrap; width: max-content; max-width: none; animation: ribbon 45s linear infinite; gap: 64px; }
.clients__in:has(.is-marquee) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__in .eyebrow { -webkit-mask-image: none; }
.clients__list.is-marquee:hover { animation-play-state: paused; }

@media (max-width: 960px) { .weeks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .weeks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .anim .rv:not(.in) { opacity: 1; transform: none; } }
.clients__in { grid-template-columns: minmax(0, 1fr); }
.clients__list.is-marquee { justify-self: start; }

/* Logos : masque sur la zone de défilement seulement */
.clients__in:has(.is-marquee) { -webkit-mask-image: none; mask-image: none; }
.clients__viewport { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tabs small { font: inherit; }

/* Barre de réservation mobile */
.m-cta { display: none; }
@media (max-width: 720px) {
  .m-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(24,24,24,.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .m-cta.is-on { transform: none; }
  .m-cta p { display: grid; line-height: 1.2; }
  .m-cta small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .m-cta b { color: var(--accent); font-size: 1.05rem; }
  body:not(.in-app) .footer { padding-bottom: 72px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ================= Organisation mobile ================= */
@media (max-width: 600px) {
  .band { padding-block: 52px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  h2 { font-size: 1.55rem; }

  /* Hero compact */
  .hero { padding-block: 48px 36px; }
  .hero__in { gap: 18px; }
  .hero h1 { font-size: 2.15rem; }
  .hero .lead { font-size: 1rem; }
  .hero__cta { width: 100%; }
  .hero .btn--lg { padding: .9em 1em; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
  .hero .facts { text-align: center; }
  .facts div { padding: 12px 0 0; }
  .facts dt { font-size: .58rem; letter-spacing: .03em; }
  .facts dd { font-size: .95rem; }

  .ribbon__track img { height: 110px; }

  /* Piliers en grille 2 × 2 */
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars article, .pillars article + article { padding: 18px 12px 18px 0; border-top: 0; }
  .pillars article:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .pillars article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars h3 { font-size: 1rem; }
  .pillars p { font-size: .85rem; }

  /* Programme : onglets pleine largeur, semaines en carrousel */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs button { justify-content: center; padding: 10px 8px; font-size: .88rem; }
  .tabs small { display: none; }
  .prog-visual { height: 170px; margin-bottom: 14px; }
  .prog-visual figcaption { font-size: .82rem; padding: 32px 14px 10px; }
  .weeks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); padding-bottom: 6px; scrollbar-width: none; }
  .weeks::-webkit-scrollbar { display: none; }
  .week { flex: 0 0 78%; scroll-snap-align: start; padding: 18px; }

  /* Suivi */
  .suivi { gap: 28px; }
  .bubble { max-width: 92%; padding: 12px 14px; }

  /* Formateur centré */
  .trainer { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .avatar--photo, .trainer .avatar { width: 120px; height: 120px; }

  /* Tarifs en carrousel */
  .plans--3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; max-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 16px var(--gutter-r) 10px var(--gutter-l); scrollbar-width: none; }
  .plans--3::-webkit-scrollbar { display: none; }
  .plans--3 .plan { flex: 0 0 84%; scroll-snap-align: center; padding: 22px; }
  .plan:hover { transform: none; }
  .price--hour span { font-size: 2.6rem; }
  .plans-hint { display: block; }
  .pay { margin-top: 18px; }
  .pay .ex__spec span { font-size: .68rem; }

  /* Attestation */
  .cert-band { gap: 20px; }
  .cert-mini { margin: 18px 22px; padding: 26px 18px; }
  .cert-mini__n { font-size: 1.6rem; }

  /* FAQ */
  .faq summary { font-size: .95rem; padding: 14px 0; }

  /* CTA final */
  .cta-final--img { padding-block: 56px; }
  .cta-final__in { flex-direction: column; align-items: flex-start; }

  /* Réalisations en grille 2 × 2 */
  .works { grid-template-columns: 1fr 1fr; }
  .work, .work--tall { height: 190px; }
  .work figcaption { padding: 40px 12px 10px; }
  .work figcaption span { font-size: .6rem; letter-spacing: .08em; }
  .work figcaption b { font-size: .85rem; }
  .works-head { padding-block: 52px 20px; }

  /* Studio */
  .studio__stats div { padding: 16px; }
  .studio__stats dd { font-size: 1.8rem; }

  /* Pied de page en 2 colonnes */
  .footer__in { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-block: 32px 24px; }
  .footer__col:first-child { grid-column: 1 / -1; }
  .footer__in { font-size: .85rem; }
}
.plans-hint { display: none; text-align: center; font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- Mot de passe oublié ---------- */
.link-btn { justify-self: start; background: none; border: 0; padding: 2px 0; font: inherit; font-size: .85rem; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--fg); }
.link-btn--center { justify-self: center; display: block; margin-inline: auto; }
.auth-intro { font-size: .92rem; margin: 0; }
.form-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); padding: 10px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.hint a { color: var(--accent); }

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(32px, 6vw, 72px); }
.legal__wrap { max-width: 820px; }
.legal__back { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 500; margin-bottom: 20px; }
.legal__back:hover { text-decoration: underline; }
.legal__note { font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 32px; }
.legal mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); padding: 0 4px; border-radius: 4px; }
.legal__page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 12px 0 6px; }
.legal__page h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal__page p, .legal__page li { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); line-height: 1.7; font-weight: 300; }
.legal__page p { margin: 0 0 12px; }
.legal__page ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__page b { font-weight: 600; color: var(--fg); }
.legal__page a { color: var(--accent); }
.footer__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--fg); }
.modal__card h2 { padding-right: 28px; }

/* ---------- Réservation WhatsApp ---------- */
.wa-ico { width: 1.2em; height: 1.2em; flex: none; }
.btn--wa { gap: 10px; }
.pay__how { font-size: .95rem; color: var(--fg); margin: 0; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.wa-float .wa-ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
@media (max-width: 720px) { .wa-float { display: none; } }
