/* TapsAI — sections et mises en page par page */

/* ============ Thème sombre (sections ponctuelles) ============ */
.dark {
  --bg: #171716;
  --ink: #f4f2ec;
  --surface: #222220;
  --surface-2: #2b2b29;
  --line: #3a3935;
  --line-soft: #2f2e2b;
  --text-2: #bab6ac;
  --muted: #8c887f;
  --accent-ink: #ff7a62;
  background: #171716;
  color: #f4f2ec;
}
.dark .eyebrow__n {
  background: var(--surface);
}
.dark .chip {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.chip--ghost {
  background: transparent;
  border-style: dashed;
}
.chip--solid {
  background: var(--accent);
  color: #171716;
  border-color: var(--accent);
}
.dark .btn--link {
  color: var(--ink);
}
.section--dark {
  padding-block: var(--section);
  overflow: hidden;
}
.control,
.admin {
  isolation: isolate;
}
.control::before,
.admin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 23, 22, 0.94), rgba(23, 23, 22, 0.76)),
    url("../img/dark-bg.webp") center / cover no-repeat;
  opacity: 0.95;
}
.control > .wrap,
.admin > .wrap {
  position: relative;
  z-index: 1;
}

/* ============ Accueil : hero ============ */
.hero {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
  padding-bottom: var(--section);
  overflow: clip;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(
      900px 500px at 12% -5%,
      rgba(255, 85, 56, 0.18),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(244, 242, 236, 0.28),
      rgba(244, 242, 236, 0.62) 58%,
      var(--bg)
    ),
    url("../img/hero-bg.webp") center top / cover no-repeat;
}
.hero__top {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.hero__copy {
  display: grid;
  justify-items: start;
}
.hero__title {
  font-size: clamp(3rem, 0.6rem + 8.4vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 26px 0 30px;
}
.hero__line {
  display: block;
}
.hero__title em {
  color: var(--accent-ink);
}
.morph {
  display: inline-block;
  font-style: italic;
  color: var(--accent-ink);
  white-space: nowrap;
}
.morph__in {
  display: inline-block;
}
.morph__ch {
  display: inline-block;
  will-change: transform;
}
.morph__in.is-out .morph__ch {
  opacity: 0;
  transform: translateY(-0.35em);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
  transition-delay: calc(var(--ci) * 14ms);
}
.morph__in.is-in .morph__ch {
  animation: ch-in 0.7s var(--ease) both;
  animation-delay: calc(var(--ci) * 26ms);
}
@keyframes ch-in {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 36em;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__fine {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.hero__aside {
  display: none;
  align-self: end;
  justify-self: end;
}
.hero__caption {
  margin-top: 28px;
  max-width: 22ch;
  font-size: 0.88rem;
  color: var(--text-2);
}
.hero__caption .mono {
  color: var(--ink);
  font-size: 0.8rem;
}

.hero__stage {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.hero__rail {
  list-style: none;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.86rem;
  color: var(--text-2);
}
.hero__rail li {
  display: grid;
  gap: 4px;
  flex: none;
}
.hero__rail span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.hero__studio {
  min-width: 0;
}

@media (min-width: 960px) {
  .hero__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }
  .hero__copy {
    grid-column: 1 / span 9;
  }
  .hero__aside {
    display: block;
    grid-column: 10 / span 3;
    padding-bottom: 12px;
  }
}
@media (min-width: 1100px) {
  .hero__stage {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .hero__rail {
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
}

.phead__stack {
  display: flex;
  justify-content: flex-start;
  padding: 8px 0 0 12px;
  min-height: 200px;
}
@media (min-width: 960px) {
  .phead__stack {
    justify-content: flex-end;
    padding-right: 40px;
  }
}

/* Bande de Taps */
.tapband {
  display: grid;
  gap: 10px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.5);
}

/* ============ Accueil : comment ça marche ============ */
.how__head {
  margin-bottom: clamp(32px, 5vw, 64px);
}
.how__grid {
  display: grid;
  gap: 32px;
}
.how__sticky {
  position: relative;
}
.how__steps {
  list-style: none;
  display: grid;
  gap: 28px;
}
.how__step {
  display: grid;
  gap: 10px;
  padding: 24px 0 24px 0;
  border-top: 1px solid var(--line);
  opacity: 0.55;
  transition: opacity var(--t-slow) var(--ease);
}
.how__step.is-active {
  opacity: 1;
}
.how__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition:
    background var(--t-med),
    color var(--t-med);
}
.how__step.is-active .how__n {
  background: var(--accent);
  border-color: var(--accent);
}
.how__step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.how__step p {
  color: var(--text-2);
  max-width: 40ch;
}
@media (min-width: 900px) {
  .how__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 7vw, 120px);
  }
  .how__sticky {
    position: sticky;
    top: calc(var(--header-h) + 36px);
    align-self: start;
  }
  .how__steps {
    gap: 0;
  }
  .how__step {
    min-height: 62vh;
    align-content: center;
  }
}

.flow {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.flow::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  transition: transform var(--t-slow) var(--ease);
}
.flow[data-state="1"]::before,
.flow[data-state="2"]::before {
  transform: translate(6px, 6px);
}
.flow[data-state="3"]::before {
  transform: translate(10px, 10px);
  background: var(--moss-soft);
}
.flow__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.flow__doc {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--text-2);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow) var(--ease);
}
.flow__taps,
.flow__result,
.flow__chain {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}
.flow__taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flow__result {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--accent);
}
.flow__result ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}
.flow__result li::before {
  content: "→ ";
  color: var(--accent-ink);
}
.flow__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.flow__arrow {
  color: var(--muted);
  display: inline-grid;
}
.flow[data-state="1"] .flow__taps,
.flow[data-state="2"] .flow__taps,
.flow[data-state="3"] .flow__taps,
.flow[data-state="2"] .flow__result,
.flow[data-state="3"] .flow__result,
.flow[data-state="3"] .flow__chain {
  opacity: 1;
  transform: none;
}
.flow[data-state="2"] .flow__doc,
.flow[data-state="3"] .flow__doc {
  opacity: 0.5;
}
.flow[data-state="3"] .flow__result {
  opacity: 0.6;
}
.flow[data-state="3"] .flow__taps {
  display: none;
}
.how__sticky {
  isolation: isolate;
}

/* ============ Accueil : index éditorial ============ */
.index__grid {
  display: grid;
  gap: 40px;
}
.index__head {
  display: grid;
  gap: 24px;
  align-content: start;
}
.index__list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.index__row {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.index__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  padding: 26px 6px;
  text-decoration: none;
}
.index__n {
  color: var(--muted);
  font-size: 0.78rem;
}
.index__main {
  display: grid;
  gap: 6px;
}
.index__t {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  transition:
    transform var(--t-med) var(--ease),
    color var(--t-fast);
}
.index__d {
  color: var(--text-2);
  font-size: 0.94rem;
}
.index__taps {
  display: none;
  gap: 8px;
  transition:
    opacity var(--t-med),
    transform var(--t-med) var(--ease);
}
.index__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-med) var(--ease);
}
.index__link:hover .index__t,
.index__link:focus-visible .index__t {
  transform: translateX(10px);
  color: var(--tone-ink);
}
.index__link:hover .index__go,
.index__link:focus-visible .index__go {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}
@media (min-width: 900px) {
  .index__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
  .index__head {
    position: sticky;
    top: calc(var(--header-h) + 36px);
  }
  .index__link {
    grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  }
  .index__taps {
    display: flex;
    opacity: 0;
    transform: translateX(-12px);
  }
  .index__link:hover .index__taps,
  .index__link:focus-visible .index__taps {
    opacity: 1;
    transform: none;
  }
}
@media (hover: none) {
  .index__taps {
    display: none !important;
  }
}

/* ============ Accueil : métiers ============ */
.roles__tabs {
  margin-top: clamp(32px, 5vw, 56px);
}
.roles__panel {
  padding: clamp(22px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 26px;
}
.roles__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.roles__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.roles__sep {
  display: inline-grid;
  color: var(--muted);
}
.roles__ex {
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
}
.roles__ex-k {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.roles__ex-t {
  color: var(--text-2);
  max-width: 60ch;
}
.roles__ex-t strong {
  color: var(--ink);
  font-weight: 600;
}
.roles__more {
  margin-top: 20px;
}

/* ============ Accueil : contrôle (sombre) ============ */
.control__grid {
  display: grid;
  gap: 48px;
}
.control__ui {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  max-width: 440px;
  display: grid;
  gap: 14px;
  font-size: 0.92rem;
  box-shadow: inset 3px 0 0 var(--accent);
}
.control__ui-bar {
  display: flex;
  gap: 8px;
}
.control__list {
  list-style: none;
  display: grid;
  gap: 0;
}
.control__list li {
  display: grid;
  gap: 10px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.control__list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.control__list p {
  color: var(--text-2);
  max-width: 46ch;
}
.control__n {
  color: var(--accent-ink);
  font-size: 0.78rem;
}
@media (min-width: 900px) {
  .control__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 7vw, 120px);
  }
  .control__head {
    position: sticky;
    top: calc(var(--header-h) + 36px);
    align-self: start;
  }
  .control__list li:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* ============ FAQ en section ============ */
.faq-sec__grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .faq-sec__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
  .faq-sec__head {
    position: sticky;
    top: calc(var(--header-h) + 36px);
  }
}

/* ============ Produit ============ */
.anat__grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  gap: 28px;
}
.anat__stage {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.anat__row {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-items: center;
}
.anat__part {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  opacity: 0.45;
  transition:
    opacity var(--t-med),
    border-color var(--t-med),
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med);
}
.anat__part .mono {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
}
.anat__part p {
  font-size: 0.94rem;
}
.anat__link {
  width: 2px;
  height: 22px;
  background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
  margin-left: 24px;
}
.anat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anat__grid[data-active="0"] .anat__part[data-i="0"],
.anat__grid[data-active="1"] .anat__part[data-i="1"],
.anat__grid[data-active="2"] .anat__part[data-i="2"],
.anat__grid[data-active="3"] .anat__part[data-i="3"] {
  opacity: 1;
  border-style: solid;
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.anat__side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.anat__panel {
  display: grid;
  gap: 10px;
}
.anat__panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.anat__panel p {
  color: var(--text-2);
  max-width: 46ch;
}
@media (min-width: 900px) {
  .anat__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
  }
  .anat__row {
    grid-template-columns: 1fr 24px auto 24px 1fr;
    justify-items: stretch;
  }
  .anat__link {
    width: 100%;
    height: 2px;
    margin: 0;
    background: repeating-linear-gradient(
      90deg,
      var(--line) 0 4px,
      transparent 4px 8px
    );
  }
  .anat__part--tap {
    justify-items: center;
  }
}

.bento {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
.bento__cell {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bento__cell h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.bento__cell p {
  color: var(--text-2);
  max-width: 44ch;
}
.bento__k {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.bento__cell kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--bg);
}
.bento__cell .chip {
  justify-self: start;
  margin-top: 4px;
}
.bento__cell--studio {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  --spot: rgba(255, 85, 56, 0.25);
}
.bento__cell--studio p {
  color: #c9c5bb;
}
.bento__cell--studio .bento__k {
  color: var(--accent);
}
.bento__mini {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  max-width: 420px;
}
.bento__mini .bento__line {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: rgba(244, 242, 236, 0.22);
  margin-bottom: 8px;
}
.bento__mini .bento__line.s {
  width: 60%;
}
.bento__mini .bento__line:nth-of-type(n + 4) {
  background: var(--accent);
}
.bento__arrow {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  color: var(--bg);
}
.bento__taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bento__cell--studio {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
    min-height: 340px;
    align-content: end;
  }
  .bento__cell--import {
    grid-column: 5 / span 2;
    grid-row: 1;
  }
  .bento__cell--history {
    grid-column: 5 / span 2;
    grid-row: 2;
  }
  .bento__cell--custom {
    grid-column: 1 / span 3;
    grid-row: 3;
  }
  .bento__cell--palette {
    grid-column: 4 / span 3;
    grid-row: 3;
  }
}
.outputs__studio {
  margin-top: clamp(32px, 5vw, 56px);
}
.principles__grid {
  display: grid;
  gap: 36px;
}
.principles__list {
  display: grid;
}
.principles__list > div {
  display: grid;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.principles__list dt {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.principles__list dd {
  margin: 0;
  color: var(--text-2);
  max-width: 48ch;
}
@media (min-width: 900px) {
  .principles__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: clamp(32px, 6vw, 96px);
  }
  .principles__list > div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* ============ Bibliothèque de Taps ============ */
.lib__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 60px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: box-shadow var(--t-fast);
}
.lib__search:focus-within {
  box-shadow: 0 0 0 4px rgba(23, 23, 22, 0.08);
}
.lib__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 1.02rem;
}
.lib__count {
  color: var(--text-2);
  font-size: 0.74rem;
  white-space: nowrap;
}
.lib__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 28px;
}
.lib__filters .chip {
  height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}
.lib__group {
  display: grid;
  gap: 16px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.lib__ghead {
  display: grid;
  gap: 8px;
  align-content: start;
}
.lib__ghead h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lib__ghead .mono {
  font-size: 0.72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lib__list {
  list-style: none;
  display: grid;
}
.lib__row {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.lib__row[hidden] {
  display: none;
}
.lib__row .tap {
  justify-self: start;
}
.lib__desc {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 0.94rem;
  order: 3;
}
.lib__out {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lib__try {
  justify-self: end;
}
.lib__empty {
  text-align: center;
  padding: 64px 0;
}
.lib__empty-t {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}
.custom-taps__in {
  display: grid;
  gap: 28px;
  padding-block: 8px;
  align-items: end;
}
.custom-taps__t {
  font-size: var(--fs-2xl);
  max-width: 16ch;
  margin-top: 16px;
}
.custom-taps__t em {
  color: var(--accent-ink);
}
.custom-taps__side {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 44ch;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .lib__group {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
  }
  .lib__ghead {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
  .lib__row {
    grid-template-columns: 250px minmax(0, 1fr) 150px auto;
  }
  .lib__desc {
    grid-column: auto;
    order: 0;
  }
  .lib__out {
    display: block;
  }
  .custom-taps__in {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ============ Tarifs ============ */
.price-head {
  width: min(100%, 460px);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.price-head__k {
  color: var(--accent-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-head__list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.price-head__list li {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 16px;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price-head__list strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.price-head__list span,
.price-head__fine {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}
.price-head__fine {
  margin-top: 24px;
}
.pricing {
  padding-bottom: var(--section);
}
.pricing__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.pricing__save {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.pricing__note {
  font-size: 0.88rem;
  color: var(--text-2);
  min-height: 1.5em;
}
.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(2.8em, auto) 1fr auto;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 100%;
}
.plan__h h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__h p {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-top: 6px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.plan__amt {
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: inline-block;
}
.plan__cur {
  font-family: var(--font-display);
  font-size: 2.2rem;
}
.plan__per {
  font-size: 0.84rem;
  color: var(--text-2);
  flex-basis: 100%;
}
.plan__sub {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-top: -12px;
  min-height: 1.4em;
}
.plan__list {
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 0.94rem;
}
.plan__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}
.plan__list .i {
  color: var(--moss);
  margin-top: 3px;
}
.plan__cta {
  justify-self: center;
  align-self: end;
  margin-top: auto;
}
.plan--pro {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  --spot: rgba(255, 85, 56, 0.2);
  box-shadow: var(--shadow-3);
}
.plan--pro .plan__h p,
.plan--pro .plan__per,
.plan--pro .plan__sub {
  color: #c9c5bb;
}
.plan--pro .plan__list .i {
  color: var(--accent);
}
.plan__flag {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.plan--free {
  background: transparent;
  border-style: dashed;
}
@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan--pro {
    padding-block: clamp(24px, 3vw, 36px);
  }
}
.plan-ent {
  margin-top: 16px;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--r-lg);
  --spot: rgba(255, 255, 255, 0.25);
}
.plan-ent__k {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.plan-ent__t {
  font-size: var(--fs-xl);
  margin-top: 8px;
  max-width: 14ch;
}
.plan-ent__t em {
  color: var(--ink);
}
.plan-ent__list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}
.plan-ent__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}
.plan-ent__list .i {
  margin-top: 3px;
}
.plan-ent__cta {
  display: grid;
  gap: 14px;
  align-content: end;
  justify-items: start;
}
.plan-ent__p {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}
@media (min-width: 900px) {
  .plan-ent {
    grid-template-columns: 1fr 1.2fr auto;
    align-items: end;
  }
}
.cmp__fine {
  margin-top: 16px;
  font-size: 0.84rem;
}

/* ============ Équipes ============ */
.shared {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 14px;
  max-width: 420px;
  justify-self: start;
}
.shared__t {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
}
.shared__list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.shared__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.shared__by {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
@media (min-width: 960px) {
  .shared {
    justify-self: end;
  }
}
.teams__tabs {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 24px;
}
.teams__panel {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.teams__intro {
  display: grid;
  gap: 14px;
  align-content: start;
}
.teams__intro h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.teams__intro p {
  color: var(--text-2);
  max-width: 46ch;
}
.teams__chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.teams__ba {
  display: grid;
  gap: 14px;
  align-content: center;
}
.teams__before,
.teams__after {
  padding: 18px 20px;
  border-radius: var(--r-md);
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
}
.teams__before {
  background: var(--bg);
  border: 1px dashed var(--line);
  color: var(--text-2);
}
.teams__after {
  background: var(--ink);
  color: var(--bg);
}
.teams__before .mono,
.teams__after .mono {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.7;
}
.teams__ba-arrow {
  justify-self: center;
  color: var(--muted);
  transform: rotate(90deg);
}
@media (min-width: 900px) {
  .teams__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
  }
  .teams__ba {
    grid-template-columns: 1fr;
  }
}
.admin__grid {
  display: grid;
  gap: 40px;
}
.admin__list {
  list-style: none;
  display: grid;
}
.admin__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.admin__list .mono {
  color: var(--accent-ink);
  font-size: 0.8rem;
  padding-top: 0.5em;
}
.admin__list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.admin__list p {
  color: var(--text-2);
  max-width: 46ch;
}
@media (min-width: 900px) {
  .admin__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(40px, 7vw, 120px);
  }
  .admin__head {
    position: sticky;
    top: calc(var(--header-h) + 36px);
    align-self: start;
  }
  .admin__list li:first-child {
    border-top: 0;
    padding-top: 0;
  }
}
.rollout__steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.rollout__steps li {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.rollout__n {
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent-ink);
}
.rollout__steps h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.rollout__steps p {
  color: var(--text-2);
  max-width: 36ch;
}
@media (min-width: 900px) {
  .rollout__steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .rollout__steps li {
    padding: 32px 28px 32px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .rollout__steps li:not(:first-child) {
    padding-left: 28px;
  }
  .rollout__steps li:last-child {
    border-right: 0;
  }
}

/* ============ Ressources ============ */
.res-index {
  list-style: none;
  display: grid;
  gap: 4px;
  justify-self: start;
}
.res-index li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 280px;
}
.res-index .display {
  font-size: 3.2rem;
  line-height: 0.9;
  color: var(--accent-ink);
  min-width: 1.2ch;
}
.res-index span:last-child {
  color: var(--text-2);
  font-size: 0.92rem;
}
.resources__tabs {
  display: grid;
  gap: 28px;
}
.resources .tab .i {
  margin-right: -2px;
}
.resources__guides {
  max-width: 900px;
}
.tpl-grid {
  display: grid;
  gap: 16px;
}
.tpl {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  align-content: start;
}
.tpl__h {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.tpl__h h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.tpl__body {
  margin: 0;
  padding: 16px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.tpl__f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}
@media (min-width: 900px) {
  .tpl-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.gloss {
  display: grid;
  border-top: 1px solid var(--line);
  max-width: 960px;
}
.gloss__row {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.gloss dt {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.gloss dd {
  margin: 0;
  color: var(--text-2);
  max-width: 54ch;
}
@media (min-width: 800px) {
  .gloss__row {
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: baseline;
  }
}

/* ============ Contact ============ */
.contact {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
  padding-bottom: var(--section);
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(244, 242, 236, 0.96) 0%,
      rgba(244, 242, 236, 0.88) 48%,
      rgba(244, 242, 236, 0.2) 100%
    ),
    url("../img/contact-side.webp") right top / auto 100% no-repeat;
}
.contact__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.contact__intro {
  display: grid;
  justify-items: start;
  align-content: start;
}
.contact__intro > .eyebrow {
  justify-items: start;
}
.contact__title {
  font-size: var(--fs-3xl);
  line-height: 0.92;
  margin: 22px 0 22px;
  max-width: 10ch;
}
.contact__title em {
  color: var(--accent-ink);
}
.contact__lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 36em;
  line-height: 1.5;
}
.contact__steps {
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line);
}
.contact__steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact__steps .mono {
  color: var(--accent-ink);
  font-size: 0.78rem;
  padding-top: 0.35em;
}
.contact__steps h2 {
  font-size: 1rem;
  font-weight: 600;
}
.contact__steps p {
  color: var(--text-2);
  font-size: 0.92rem;
}
.contact__mail {
  font-size: 0.92rem;
  color: var(--text-2);
}
.contact__card {
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.contact__ok {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-block: 24px;
  outline: none;
}
.contact__ok[hidden] {
  display: none;
}
.contact__ok h2 {
  font-size: var(--fs-2xl);
  line-height: 1;
}
.contact__ok-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form__fine {
  font-size: 0.8rem;
  color: var(--text-2);
}
.form[hidden] {
  display: none;
}
@media (min-width: 960px) {
  .contact {
    background:
      linear-gradient(
        90deg,
        rgba(244, 242, 236, 0.98) 0%,
        rgba(244, 242, 236, 0.9) 44%,
        rgba(244, 242, 236, 0.18) 100%
      ),
      url("../img/contact-side.webp") right top / auto 100% no-repeat;
  }
  .contact__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
  }
  .contact__intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ============ Pages solutions : éléments communs ============ */
.density__h {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
  margin-bottom: 12px;
  font-weight: 400;
}
.studio-sec__studio {
  margin-top: clamp(32px, 5vw, 56px);
}
.taprows__list {
  list-style: none;
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  border-top: 1px solid var(--line);
}
.taprow {
  display: grid;
  gap: 20px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.taprow__tap {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
}
.taprow__tap p {
  color: var(--text-2);
  max-width: 32ch;
  font-size: 0.94rem;
}
.taprow__ex {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: inset 3px 0 0 var(--tone, var(--accent));
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}
.taprow__ex .mono {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .taprow {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
  }
}
.related__t {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
  margin-bottom: 14px;
}
.related__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  transition:
    border-color var(--t-fast),
    transform var(--t-med) var(--ease),
    background var(--t-fast);
}
.related__list a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.related__ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
}
.related__list .i:last-child {
  opacity: 0.5;
}
.note-box {
  padding: 20px 24px;
  border-left: 3px solid var(--ochre);
  background: rgba(246, 232, 195, 0.4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-2);
}
.note-box strong {
  color: var(--ink);
}
.checks__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .checks__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
}

/* Résumer : densité */
.density {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 24px;
  min-width: 0;
}
.density__ctrl {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.density__slider {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 360px;
  min-width: 0;
}
.density__slider label {
  font-weight: 600;
  font-size: 0.9rem;
}
.density__slider output {
  min-width: 7ch;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
}
.density__count {
  color: var(--text-2);
  font-size: 0.72rem;
  margin-left: auto;
  white-space: nowrap;
}
.density input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 140px;
  height: 28px;
  background: none;
  cursor: pointer;
  --fill: 33%;
}
.density input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--accent) var(--fill),
    var(--line) var(--fill)
  );
}
.density input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
}
.density input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--accent);
}
.density input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
  transition: transform var(--t-med) var(--ease);
}
.density input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
}
.density input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}
.density__grid {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.density__src,
.density__out {
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--r-lg);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 220px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.density__src {
  background: var(--surface);
  border: 1px solid var(--line);
}
.density__out {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 4px 0 0 var(--accent);
}
.density__out .res-p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.dens-s {
  color: var(--muted);
  border-radius: 3px;
  transition:
    color var(--t-med),
    background var(--t-med);
}
.dens-s.is-kept {
  color: var(--ink);
  background: linear-gradient(transparent 58%, rgba(255, 85, 56, 0.32) 58%);
}
@media (min-width: 900px) {
  .density__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
@media (max-width: 560px) {
  .density__ctrl {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: var(--r-md);
  }
  .density__ctrl .seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--r-md);
  }
  .density__ctrl .seg button {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
    line-height: 1.1;
    height: auto;
    min-height: 34px;
  }
  .density__slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    flex-basis: auto;
  }
  .density input[type="range"] {
    min-width: 0;
  }
  .density__slider output {
    min-width: 0;
    text-align: right;
    font-size: 1.32rem;
  }
  .density__count {
    grid-column: 1 / -1;
    margin-left: 0;
    white-space: normal;
  }
  .density__src,
  .density__out {
    padding: 16px;
    border-radius: var(--r-md);
  }
  .density__out .res-p {
    font-size: 1.3rem;
  }
}

/* Rédiger : registres */
.tones {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 22px;
  min-width: 0;
}
.tones__ctrl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.tones__meta {
  color: var(--text-2);
  font-size: 0.74rem;
}
.tones__grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.tones__src,
.tones__out {
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--r-lg);
  min-height: 260px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tones__src {
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--text-2);
  display: grid;
  gap: 10px;
  align-content: start;
}
.tones__out {
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue-soft);
}
.tones__arrow {
  display: none;
  align-self: center;
  color: var(--muted);
}
@media (min-width: 900px) {
  .tones__grid {
    grid-template-columns: 1fr 40px 1fr;
    align-items: stretch;
  }
  .tones__arrow {
    display: grid;
    justify-items: center;
  }
}
.changes__list {
  list-style: none;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.changes__row {
  display: grid;
  gap: 6px 18px;
  align-items: baseline;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
}
.changes__from s {
  color: var(--muted);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.changes__arrow {
  display: none;
  color: var(--muted);
}
.changes__to {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.changes__why {
  color: var(--text-2);
  font-size: 0.9rem;
}
@media (min-width: 900px) {
  .changes__row {
    grid-template-columns: 1fr 28px 1.2fr 1fr;
  }
  .changes__arrow {
    display: block;
  }
}

/* Traduire : texte aligné */
.parallel {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 14px;
  min-width: 0;
}
.parallel__ctrl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  min-width: 0;
}
.parallel__head {
  display: none;
}
.parallel__body {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.par-row {
  display: grid;
  gap: 8px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: background var(--t-med);
  outline: none;
  min-width: 0;
}
.par-fr,
.par-tr {
  min-width: 0;
  overflow-wrap: anywhere;
}
.par-fr {
  color: var(--text-2);
}
.par-tr {
  font-weight: 500;
}
.par-row.is-hot {
  background: var(--moss-soft);
}
.par-row:focus-visible {
  outline: 2px solid var(--ink);
}
@media (min-width: 800px) {
  .parallel__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 6px 12px;
    color: var(--text-2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }
  .par-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.adapt__grid {
  display: grid;
  gap: 32px;
}
.adapt__list {
  display: grid;
}
.adapt__list > div {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.adapt__list dt {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.adapt__list dt .mono {
  font-size: 0.74rem;
  color: var(--accent-ink);
}
.adapt__list dd {
  margin: 0;
  color: var(--text-2);
  max-width: 54ch;
}
@media (min-width: 900px) {
  .adapt__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
  }
  .adapt__list > div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Extraire : surlignage */
.hl-box {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.hl-ctrl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hl-chip {
  height: 38px;
  padding: 0 14px;
}
.hl-chip[aria-pressed="false"] {
  opacity: 0.6;
  background: transparent;
}
.hl-chip[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--tone);
  box-shadow: inset 0 0 0 1px var(--tone);
}
.hl-chip .mono {
  opacity: 0.6;
  font-size: 0.7rem;
}
.hl-text {
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 1.06rem;
  line-height: 2.05;
  white-space: pre-line;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hl {
  border-radius: 4px;
  transition:
    background var(--t-med),
    box-shadow var(--t-med),
    color var(--t-med);
}
[data-hl-date="1"] .hl--i[data-cat="date"] {
  background: var(--ochre-soft);
  box-shadow: 0 0 0 3px var(--ochre-soft);
}
[data-hl-amount="1"] .hl--i[data-cat="amount"] {
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
[data-hl-person="1"] .hl--i[data-cat="person"] {
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue-soft);
  font-weight: 500;
}
[data-hl-action="1"] .hl--s[data-cat="action"] {
  background: linear-gradient(transparent 0, transparent 0), var(--moss-soft);
  box-shadow: 0 0 0 4px var(--moss-soft);
}
[data-hl-decision="1"] .hl--s[data-cat="decision"] {
  background: var(--ink-soft);
  box-shadow: 0 0 0 4px var(--ink-soft);
}
[data-hl-question="1"] .hl--s[data-cat="question"] {
  background: var(--rose-soft);
  box-shadow: 0 0 0 4px var(--rose-soft);
}
.hl-legend {
  font-size: 0.84rem;
}

/* Marketing : déclinaisons */
.formats {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 24px;
  min-width: 0;
}
.formats__brief {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  font-size: 0.92rem;
  color: var(--text-2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.formats__tone-l {
  margin-top: 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.formats__brief .seg {
  justify-self: start;
}
.formats__main {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.formats__panel {
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 6px 6px 0 var(--rose-soft);
  min-height: 320px;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .formats {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
  }
}
.consist__grid {
  display: grid;
  gap: 32px;
}
.consist__list {
  list-style: none;
  display: grid;
}
.consist__list li {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.consist__list .mono {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-ink);
}
.consist__list p {
  color: var(--text-2);
  max-width: 52ch;
}
@media (min-width: 900px) {
  .consist__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
  }
  .consist__list li:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Réunions : chronologie et tableau */
.after__steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.after__steps li {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.after__n {
  font-size: 0.74rem;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.after__steps p {
  color: var(--text-2);
  max-width: 30ch;
  font-size: 0.94rem;
}
@media (min-width: 900px) {
  .after__steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .after__steps li {
    padding: 28px 24px 28px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .after__steps li:not(:first-child) {
    padding-left: 24px;
  }
  .after__steps li:last-child {
    border-right: 0;
  }
}
.board {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 20px;
  min-width: 0;
}
.board__progress {
  display: flex;
  align-items: center;
  gap: 16px;
}
.board__track {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 8px;
  background: var(--line-soft);
  overflow: hidden;
}
.board__bar {
  height: 100%;
  width: var(--p, 0%);
  background: var(--moss);
  border-radius: 8px;
  transition: width 0.6s var(--ease);
}
.board__progress .mono {
  color: var(--text-2);
  font-size: 0.74rem;
  white-space: nowrap;
}
.board__cols {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.board__col {
  padding: 16px;
  background: rgba(251, 250, 247, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 180px;
  min-width: 0;
}
.board__col h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.board__col h3 .mono {
  font-size: 0.76rem;
  color: var(--muted);
}
.board__list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.task {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 10px;
  min-width: 0;
}
.task__t {
  font-size: 0.94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.task__moves {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}
.task__move {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.task__move:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
}
.task__move:disabled {
  opacity: 0.3;
  cursor: default;
}
.task-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
@media (min-width: 800px) {
  .board__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .tones__ctrl,
  .parallel__ctrl {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .tones__ctrl .seg,
  .parallel__ctrl .seg,
  .formats__brief .seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--r-md);
  }
  .tones__ctrl .seg button,
  .parallel__ctrl .seg button,
  .formats__brief .seg button {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
    line-height: 1.1;
    height: auto;
    min-height: 34px;
  }
  .tones__src,
  .tones__out,
  .hl-text,
  .formats__brief,
  .formats__panel,
  .board__col {
    padding: 16px;
    border-radius: var(--r-md);
  }
  .board__progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .board__progress .mono {
    white-space: normal;
  }
  .task__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .task__moves {
    margin-left: 0;
  }
}

/* ============ Pages légales ============ */
.phead--legal {
  padding-bottom: clamp(24px, 4vw, 48px);
}
.phead--legal .phead__title {
  max-width: 18ch;
  font-size: var(--fs-2xl);
}
.legal__upd {
  margin-top: 20px;
  font-size: 0.74rem;
  color: var(--text-2);
}
.legal {
  padding-bottom: var(--section);
}
.legal__grid {
  display: grid;
  gap: 32px;
}
.legal__toc {
  font-size: 0.9rem;
}
.legal__toc-t {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
  margin-bottom: 12px;
}
.legal__toc ol,
.legal__toc ul {
  list-style: none;
  display: grid;
  gap: 2px;
}
.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  text-decoration: none;
  color: var(--text-2);
  transition:
    color var(--t-fast),
    transform var(--t-med) var(--ease);
}
.legal__toc a:hover {
  color: var(--ink);
  transform: translateX(4px);
}
.legal__toc a .mono {
  color: var(--accent-ink);
  font-size: 0.72rem;
  padding-top: 0.3em;
}
.legal__links {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal__body section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}
.legal__body section:first-child {
  border-top: 0;
  padding-top: 0;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.prose h2 .mono {
  font-size: 0.76rem;
  color: var(--accent-ink);
}
.prose p,
.prose ul,
.prose table,
.prose dl {
  max-width: 68ch;
}
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + table,
.prose table + p,
.prose p + dl {
  margin-top: 14px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.prose ul {
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.prose ul li::marker {
  color: var(--accent);
}
.kv {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  margin: 14px 0 0;
}
.kv > div {
  display: grid;
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv dt {
  font-size: 0.84rem;
  color: var(--text-2);
}
.kv dd {
  margin: 0;
  color: var(--ink);
}
@media (min-width: 640px) {
  .kv > div {
    grid-template-columns: 220px 1fr;
  }
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 14px;
}
.tbl th,
.tbl td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.tbl thead th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.82rem;
}
.tbl td {
  color: var(--text-2);
}
@media (min-width: 960px) {
  .legal__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
  }
  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
}

/* ============ 404 ============ */
.nf {
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 120px));
  padding-bottom: var(--section);
}
.nf__in {
  display: grid;
  gap: 32px;
  align-items: center;
}
.nf__code {
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.8;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.nf__t {
  font-size: var(--fs-2xl);
  margin: 18px 0;
}
.nf__t em {
  color: var(--accent-ink);
}
.nf__p {
  color: var(--text-2);
  max-width: 40ch;
}
.nf__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 900px) {
  .nf__in {
    grid-template-columns: auto 1fr;
    gap: 64px;
  }
}

/* ============ Ajustements responsive finaux ============ */
@media (max-width: 599px) {
  .plan__amt {
    font-size: 4.4rem;
  }
  .studio__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .studio__foot .btn {
    justify-content: space-between;
  }
  .cta-band__tap {
    display: none;
  }
}
