/* TapsAI — composants */

.i {
  flex: none;
}

/* ============ Logo ============ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  transition: transform var(--t-med) var(--ease);
}
.logo__dot {
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo__dot {
  transform: translateX(14px);
}
.logo__w {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  padding-bottom: 2px;
}
.logo__ai {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-left: 3px;
  vertical-align: super;
  font-weight: 500;
}
.logo--lg .logo__w {
  font-size: 2.2rem;
}

/* ============ En-tête ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  transition:
    background var(--t-med),
    box-shadow var(--t-med);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(244, 242, 236, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-open {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
} /* le menu mobile est en position: fixed : un backdrop-filter sur le parent le piégerait */
.site-header__in {
  max-width: var(--maxw);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav {
  display: none;
  flex: 1;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 2px;
  margin-left: 16px;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  position: relative;
  transition: background var(--t-fast);
}
.nav__link:hover,
.nav__link[aria-expanded="true"] {
  background: var(--surface-2);
}
.nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__chev {
  transition: transform var(--t-med) var(--ease);
  opacity: 0.6;
}
.nav__link[aria-expanded="true"] .nav__chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -60px;
  width: min(780px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: 80px 0;
  transition:
    opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
.mega.is-open {
  opacity: 1;
  transform: none;
}
.mega__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
}
.mega__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.mega__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-fast);
}
.mega__link:hover,
.mega__link:focus-visible,
.mega__link.is-current {
  background: var(--bg);
}
.mega__ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
  flex: none;
  transition: transform var(--t-med) var(--ease);
}
.mega__link:hover .mega__ic {
  transform: scale(1.1) rotate(-6deg);
}
.mega__tx {
  display: grid;
  gap: 2px;
}
.mega__tx strong {
  font-weight: 500;
  font-size: 0.92rem;
}
.mega__tx small {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.4;
}
.mega__side {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.mega__side-t {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}
.mega__side-p {
  font-size: 0.86rem;
  color: #c9c5bb;
}
.mega__side .btn--link {
  color: var(--bg);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 0.85rem;
  transition:
    background var(--t-fast),
    border-color var(--t-fast);
}
.palette-trigger:hover {
  background: var(--surface);
  border-color: var(--muted);
}
.palette-trigger kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--surface);
  color: var(--text-2);
}
.palette-trigger__t {
  display: none;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform var(--t-med) var(--ease),
    top var(--t-med) var(--ease);
}
.nav-toggle__bars i:first-child {
  top: 1px;
}
.nav-toggle__bars i:last-child {
  top: 8px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  top: 4.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  top: 4.5px;
  transform: rotate(-45deg);
}

@media (min-width: 1040px) {
  .nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .site-header__actions {
    margin-left: 0;
  }
}
@media (min-width: 1240px) {
  .palette-trigger__t {
    display: inline;
  }
  .palette-trigger {
    padding-right: 8px;
  }
}

/* Menu mobile */
.mmenu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  overflow-y: auto;
  padding: 12px var(--gutter) 40px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
.mmenu.is-open {
  opacity: 1;
  transform: none;
}
.mmenu[hidden] {
  display: none;
}
.mmenu__list,
.mmenu__sub {
  list-style: none;
}
.mmenu__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mmenu__t {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.mmenu__sub {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}
.mmenu__sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 500;
}
.mmenu__ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
}
.mmenu__cta {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.mmenu__cta .btn {
  justify-content: space-between;
}
body.menu-open {
  overflow: hidden;
}

/* ============ Boutons ============ */
.btn {
  --h: 52px;
  --ic: 36px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--h);
  padding: 0 calc((var(--h) - var(--ic)) / 2) 0 26px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  will-change: transform;
  transition:
    background var(--t-med) var(--ease),
    color var(--t-med),
    border-color var(--t-med),
    box-shadow var(--t-med);
  --mx: 50%;
  --my: 50%;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    120px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.38),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--t-med);
}
.btn:hover::after {
  opacity: 1;
}
.btn__l {
  white-space: nowrap;
}
.btn__ic {
  display: grid;
  place-items: center;
  width: var(--ic);
  height: var(--ic);
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  transition:
    transform var(--t-med) var(--ease),
    background var(--t-med);
}
.btn__ic .i {
  transition: transform var(--t-med) var(--ease);
}
.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 22px -10px rgba(255, 85, 56, 0.75);
}
.btn--primary .btn__ic {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: #ff6a50;
}
.btn--ink {
  background: var(--ink);
  color: var(--bg);
}
.btn--ink .btn__ic {
  background: var(--accent);
  color: var(--ink);
}
.btn--ink:hover {
  background: #2b2b29;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost .btn__ic {
  background: var(--ink);
  color: var(--bg);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--ghost:hover .btn__ic {
  background: var(--accent);
  color: var(--ink);
}
.btn--ghost:not(:has(.btn__ic)) {
  padding-right: 26px;
}
.btn--light {
  background: var(--bg);
  color: var(--ink);
}
.btn--light .btn__ic {
  background: var(--ink);
  color: var(--bg);
}
.btn--ghost-light {
  background: transparent;
  color: var(--bg);
  border-color: rgba(244, 242, 236, 0.55);
}
.btn--ghost-light .btn__ic {
  background: var(--bg);
  color: var(--ink);
}
.btn--ghost-light:hover {
  background: var(--bg);
  color: var(--ink);
}
.btn--ghost-light:hover .btn__ic {
  background: var(--accent);
}
.btn--sm {
  --h: 40px;
  --ic: 28px;
  font-size: 0.88rem;
  padding-left: 18px;
}
.btn--sm:not(:has(.btn__ic)) {
  padding-right: 18px;
}
.btn--lg {
  --h: 60px;
  --ic: 42px;
  font-size: 1.02rem;
  padding-left: 30px;
}

.btn--link {
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 8px;
  color: inherit;
  overflow: visible;
}
.btn--link::after {
  display: none;
}
.btn--link .btn__l {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-med) var(--ease);
}
.btn--link:hover .btn__l {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.btn--link .btn__ic {
  width: auto;
  height: auto;
  background: none;
  color: inherit;
}
.btn--link:hover .btn__ic .i {
  transform: translateX(4px);
}

/* ============ Taps (pastilles) ============ */
.tap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 5px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
  transition:
    transform var(--t-med) var(--ease),
    border-color var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-med);
}
.tap__ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
  transition:
    transform var(--t-med) var(--ease),
    background var(--t-fast);
}
button.tap,
a.tap {
  cursor: pointer;
}
button.tap:hover,
a.tap:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -8px rgba(23, 23, 22, 0.35);
}
button.tap:hover .tap__ic,
a.tap:hover .tap__ic {
  transform: rotate(-10deg) scale(1.08);
}
.tap--solid,
.tap[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.tap--solid .tap__ic,
.tap[aria-checked="true"] .tap__ic {
  background: var(--tone);
  color: var(--ink);
}
[data-tone="ink"].tap--solid .tap__ic,
[data-tone="ink"].tap[aria-checked="true"] .tap__ic {
  background: var(--bg);
}
.tap--lg {
  height: 44px;
  font-size: 1rem;
  padding-right: 18px;
}
.tap--lg .tap__ic {
  width: 32px;
  height: 32px;
}

/* Pile de Taps animée */
.tap-stack {
  position: relative;
  width: 230px;
  height: 290px;
}
.tap-stack__item {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 100%;
  transition:
    transform 0.8s var(--ease),
    opacity 0.8s var(--ease),
    filter 0.8s var(--ease);
  will-change: transform;
}
.tap-stack__item .tap {
  box-shadow: var(--shadow-2);
}
.tap-stack__item[data-pos="0"] {
  transform: translate(0, 140px) rotate(0);
  opacity: 1;
  z-index: 5;
}
.tap-stack__item[data-pos="1"] {
  transform: translate(18px, 98px) rotate(-3deg);
  opacity: 0.95;
  z-index: 4;
}
.tap-stack__item[data-pos="2"] {
  transform: translate(6px, 58px) rotate(2deg);
  opacity: 0.8;
  z-index: 3;
}
.tap-stack__item[data-pos="3"] {
  transform: translate(26px, 22px) rotate(-2deg);
  opacity: 0.55;
  z-index: 2;
}
.tap-stack__item[data-pos="4"] {
  transform: translate(10px, -10px) rotate(3deg);
  opacity: 0;
  z-index: 1;
}
.tap-stack__item[data-pos="out"] {
  transform: translate(140px, 150px) rotate(8deg) scale(0.9);
  opacity: 0;
  z-index: 6;
}

/* Marquee de Taps */
.marquee {
  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
  );
}
.marquee__row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 60s linear infinite;
  padding-block: 6px;
}
.marquee__row--rev {
  animation-direction: reverse;
  animation-duration: 75s;
}
.marquee:hover .marquee__row {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Puces / actions secondaires */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-med) var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip--mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.chip[data-tone] .chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--tone-soft, var(--accent-soft));
  color: var(--tone-ink, var(--accent-ink));
}

/* Segmented control */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.seg button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast);
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed="true"],
.seg button[aria-selected="true"],
.seg button[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--line);
}

/* Spotlight sensible au curseur */
[data-spotlight] {
  position: relative;
  --mx: 50%;
  --my: 50%;
  --spot: rgba(255, 85, 56, 0.12);
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    var(--spot),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
[data-spotlight]:hover::before {
  opacity: 1;
}
[data-spotlight] > * {
  position: relative;
  z-index: 1;
}

/* Cartes génériques */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}

/* Listes à coches */
.ticks {
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks__ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: none;
  margin-top: 2px;
}

/* ============ Studio ============ */
.studio {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  text-align: left;
}
.studio__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8rem;
}
.studio__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.studio__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.studio__path {
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.studio__hint {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.studio__hint kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--bg);
  color: var(--text-2);
}
@media (min-width: 700px) {
  .studio__hint {
    display: inline-flex;
  }
}

.studio__taps {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-soft);
}
.studio__taps::-webkit-scrollbar {
  display: none;
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .studio__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .studio__pane--out {
    border-left: 1px solid var(--line-soft);
  }
}
.studio__pane {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.studio__pane--out {
  background: linear-gradient(180deg, var(--bg), var(--surface));
}
.studio__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.studio__label label {
  cursor: pointer;
}
.studio__count {
  color: var(--muted);
  letter-spacing: 0.04em;
}
.studio__result-label {
  color: var(--tone-ink, var(--accent-ink));
}
.studio__samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio__samples .chip {
  height: 28px;
  font-size: 0.76rem;
  padding: 0 11px;
}
.studio__src {
  width: 100%;
  min-height: 232px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  line-height: 1.6;
  font-size: 0.9rem;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.studio__src:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 22, 0.08);
}
.studio__options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-height: 36px;
}
.studio__options .opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.studio__options .opt > span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.studio__options .seg button {
  height: 28px;
  font-size: 0.78rem;
  padding: 0 11px;
}

.studio__out {
  position: relative;
  flex: 1;
  min-height: 232px;
  max-height: 440px;
  overflow: auto;
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  background: rgba(251, 250, 247, 0.6);
  padding: 16px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  scrollbar-width: thin;
  transition:
    border-color var(--t-med),
    background var(--t-med);
}
.studio.has-result .studio__out {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--tone, var(--accent));
}
.studio__empty {
  color: var(--muted);
  display: grid;
  place-items: center;
  min-height: 190px;
  text-align: center;
  font-size: 0.9rem;
}
.studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.studio__actions[hidden] {
  display: none;
}
.studio__chain {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.studio__chain::before {
  content: "Puis";
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 2px;
}
.studio__chain:empty {
  display: none;
}
.studio__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.studio__status {
  font-size: 0.82rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.studio.is-working .studio__status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.studio__noscript {
  padding: 12px 18px;
  color: var(--text-2);
  font-size: 0.85rem;
}
.studio__run[disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.studio--compact .studio__src {
  min-height: 180px;
}
.studio--compact .studio__out {
  min-height: 180px;
  max-height: 340px;
}

/* Squelette de chargement */
.skel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.skel i {
  display: block;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--line-soft) 20%,
    var(--surface-2) 40%,
    var(--line-soft) 60%
  );
  background-size: 240% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skel i:nth-child(2) {
  width: 88%;
}
.skel i:nth-child(3) {
  width: 72%;
}
.skel i:nth-child(4) {
  width: 80%;
}
.skel i:nth-child(5) {
  width: 44%;
}
@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

/* Rendu des résultats */
.res > * + * {
  margin-top: 14px;
}
.res-block {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.res-block.is-shown {
  opacity: 1;
  transform: none;
}
.res-h {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--tone-ink, var(--accent-ink));
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.res-p {
  text-wrap: pretty;
}
.res .w {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.res .w.on {
  opacity: 1;
}
.res-ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.res-ul li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
}
.res-ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--tone, var(--accent));
}
.res-ul li strong {
  font-weight: 600;
}
.res-ol {
  list-style: none;
  counter-reset: n;
  display: grid;
  gap: 9px;
}
.res-ol li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
}
.res-ol li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 0.25em;
}
.res-tasks {
  list-style: none;
  display: grid;
  gap: 10px;
}
.res-task {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--bg);
}
.res-task__box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.res-task__box .i {
  opacity: 0;
  transform: scale(0.6);
  transition: 0.2s;
}
.res-task input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.res-task input:checked + .res-task__box {
  background: var(--ink);
  color: var(--bg);
}
.res-task input:checked + .res-task__box .i {
  opacity: 1;
  transform: none;
}
.res-task input:checked ~ .res-task__body .res-task__t {
  text-decoration: line-through;
  color: var(--muted);
}
.res-task input:focus-visible + .res-task__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.res-task {
  position: relative;
  cursor: pointer;
}
.res-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-2);
}
.pill-meta--owner {
  background: var(--ink);
  color: var(--bg);
}
.pill-meta--due {
  background: var(--ochre-soft);
  color: #7a4f06;
}
.res-kv {
  display: grid;
  gap: 12px;
}
.res-kv__row {
  display: grid;
  gap: 6px;
}
.res-kv__k {
  font-size: 0.74rem;
  color: var(--text-2);
  font-weight: 500;
}
.res-kv__v {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.res-kv__v .pill-meta {
  height: 26px;
  font-size: 0.8rem;
  background: var(--tone-soft, var(--accent-soft));
  color: var(--ink);
}
.res-mail {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.res-mail__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.84rem;
}
.res-mail__row span:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.2em;
}
.res-mail__row strong {
  font-weight: 600;
}
.res-mail__body {
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.res-post {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.res-post__by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-2);
}
.res-post__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.res-post__av i {
  width: 16px;
  height: 9px;
  border-radius: 6px;
  border: 1.5px solid var(--bg);
  position: relative;
}
.res-post__av i::after {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.res-post__tags {
  color: var(--blue);
  font-weight: 500;
}
.res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.res-meta span {
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: var(--bg);
}
.res-flag {
  background: linear-gradient(transparent 62%, var(--ochre-soft) 62%);
  border-radius: 2px;
}
.res-note {
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 8px 12px;
  border-left: 2px solid var(--ochre);
  background: rgba(246, 232, 195, 0.35);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.res-serp {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--surface);
  display: grid;
  gap: 3px;
}
.res-serp__u {
  font-size: 0.74rem;
  color: var(--moss);
}
.res-serp__t {
  font-size: 1.05rem;
  color: var(--blue);
}
.res-serp__d {
  font-size: 0.86rem;
  color: var(--text-2);
}
.res-caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============ Onglets ============ */
.tablist {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
.tab:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tabpanel[hidden] {
  display: none;
}
.tabpanel {
  animation: panel-in 0.55s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Onglets verticaux éditoriaux */
.vtabs {
  display: grid;
  gap: 28px;
}
.vtabs__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.vtab {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition:
    color var(--t-med),
    padding var(--t-med) var(--ease);
}
.vtab small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.vtab .i {
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.3s var(--ease);
}
.vtab:hover {
  color: var(--ink);
}
.vtab[aria-selected="true"] {
  color: var(--ink);
  padding-left: 14px;
}
.vtab[aria-selected="true"] .i {
  opacity: 1;
  transform: none;
  color: var(--accent-ink);
}
.vtab[aria-selected="true"] small {
  color: var(--accent-ink);
}
@media (min-width: 900px) {
  .vtabs {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q:hover {
  color: var(--accent-ink);
}
.faq__ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: none;
  transition:
    transform var(--t-med) var(--ease),
    background var(--t-fast),
    border-color var(--t-fast);
}
.faq__item[open] .faq__ic {
  transform: rotate(135deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq__a-in {
  padding: 0 56px 26px 0;
  color: var(--text-2);
  max-width: 70ch;
  display: grid;
  gap: 12px;
}
.faq__a-in a {
  color: var(--ink);
}

/* ============ Formulaires ============ */
.form {
  display: grid;
  gap: 20px;
}
.form__row {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.field > .field__l,
.fieldset legend {
  font-size: 0.86rem;
  font-weight: 500;
}
.field > label small,
.field__l small {
  color: var(--muted);
  font-weight: 400;
}
.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 16px;
  height: 52px;
  font-size: 0.98rem;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
}
.textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.55;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23171716' stroke-width='1.5' stroke-linecap='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--muted);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 22, 0.07);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--accent-ink);
  background: #fff8f6;
}
.field__err {
  color: var(--accent-ink);
  font-size: 0.82rem;
  display: none;
}
.field.has-error .field__err {
  display: block;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.radio-cards {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .radio-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.radio-card {
  position: relative;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-card span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
}
.radio-card strong {
  font-weight: 600;
  font-size: 0.92rem;
}
.radio-card small {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.4;
}
.radio-card input:checked + span {
  border-color: var(--ink);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.radio-card input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.check input:checked {
  background: var(--ink);
}
.check input:checked::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.check a {
  color: var(--ink);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  display: none;
}
.form__status.is-error {
  display: block;
  background: #fff0ec;
  color: var(--accent-ink);
  border: 1px solid #ffc9bb;
}
.form__status.is-ok {
  display: block;
  background: var(--moss-soft);
  color: #1f4a32;
  border: 1px solid #bcd5c1;
}

/* ============ Tableau comparatif ============ */
.cmp {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}
.cmp__feature {
  width: 42%;
}
.cmp__plan {
  width: 19.333%;
}
.cmp caption {
  text-align: left;
  padding-bottom: 16px;
}
.cmp th,
.cmp td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.cmp thead th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  background: var(--surface);
  text-align: center;
  white-space: normal;
  vertical-align: middle;
}
.cmp thead th:first-child {
  text-align: left;
}
.cmp tbody th {
  font-weight: 500;
}
.cmp tbody td {
  text-align: center;
}
.cmp tbody tr.cmp__group th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: var(--surface-2);
  border-bottom: 0;
  padding-block: 10px;
}
.cmp td .i {
  color: var(--moss);
}
.cmp .no {
  color: var(--muted);
}
.cmp-wrap {
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-gutter: stable;
}
.cmp-wrap .cmp {
  min-width: 680px;
}
@media (max-width: 640px) {
  .cmp th,
  .cmp td {
    padding: 12px 10px;
  }
  .cmp-wrap .cmp {
    min-width: 600px;
  }
}

/* ============ Bande CTA ============ */
.cta-band {
  padding: 0 var(--gutter) var(--section);
}
.cta-band__in {
  max-width: var(--maxw);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
  --spot: rgba(255, 85, 56, 0.22);
  isolation: isolate;
}
.cta-band__in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(23, 23, 22, 0.96) 0%,
      rgba(23, 23, 22, 0.78) 52%,
      rgba(23, 23, 22, 0.45) 100%
    ),
    url("../img/cta-bg.webp") center / cover no-repeat;
  opacity: 0.95;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 0.92;
  letter-spacing: -0.025em;
  max-width: 12ch;
  text-wrap: balance;
}
.cta-band__title em {
  color: var(--accent);
}
.cta-band__text {
  margin-top: 24px;
  color: #c9c5bb;
  max-width: 46ch;
  font-size: var(--fs-md);
}
.cta-band__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-band__title,
.cta-band__text,
.cta-band__actions {
  position: relative;
  z-index: 1;
}
.cta-band .btn--ghost {
  color: var(--bg);
  border-color: rgba(244, 242, 236, 0.5);
}
.cta-band .btn--ghost .btn__ic {
  background: var(--bg);
  color: var(--ink);
}
.cta-band .btn--ghost:hover {
  background: var(--bg);
  color: var(--ink);
}
.cta-band__taps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-band__tap {
  position: absolute;
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
}
.cta-band__tap:nth-child(1) {
  right: 8%;
  top: 14%;
}
.cta-band__tap:nth-child(2) {
  right: 22%;
  top: 34%;
}
.cta-band__tap:nth-child(3) {
  right: 6%;
  top: 52%;
}
.cta-band__tap:nth-child(4) {
  right: 26%;
  top: 68%;
}
.cta-band__tap:nth-child(5) {
  right: 10%;
  top: 80%;
}
.cta-band__tap:nth-child(6) {
  right: 34%;
  top: 12%;
}
.cta-band__tap .tap {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@media (max-width: 899px) {
  .cta-band__taps {
    opacity: 0.35;
  }
}

/* ============ Pied de page ============ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.site-footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-footer__brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  align-content: start;
}
.site-footer__pitch {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.site-footer__mail a {
  font-size: 0.92rem;
}
.site-footer__h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 14px;
}
.site-footer__h--sp {
  margin-top: 28px;
}
.site-footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.site-footer ul a {
  text-decoration: none;
  font-size: 0.92rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  transition: background-size var(--t-med) var(--ease);
  padding-bottom: 1px;
}
.site-footer ul a:hover {
  background-size: 100% 1px;
}
.site-footer__bottom {
  margin-top: 56px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-2);
}
.site-footer__word {
  font-family: var(--font-display);
  font-size: clamp(8rem, 30vw, 28rem);
  line-height: 0.72;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--surface-2);
  user-select: none;
  margin-top: 6px;
  height: 0.62em;
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

/* ============ Palette de commandes ============ */
.palette {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(640px, 92vw);
  max-width: none;
  margin: 12vh auto auto;
  color: var(--ink);
  overflow: visible;
}
.palette::backdrop {
  background: rgba(23, 23, 22, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.palette[open] {
  animation: pal-in 0.35s var(--ease);
}
@keyframes pal-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.palette__box {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.palette__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.palette__input {
  flex: 1;
  border: 0;
  background: none;
  font-size: 1.05rem;
  outline: none;
  min-width: 0;
}
.palette__esc {
  background: none;
  border: 0;
  padding: 0;
}
.palette__esc kbd,
.palette__foot kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--bg);
  color: var(--text-2);
  margin-right: 4px;
}
.palette__list {
  list-style: none;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 8px;
}
.palette__group {
  padding: 10px 12px 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.palette__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.94rem;
}
.palette__item small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.palette__item[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.palette__item[aria-selected="true"] small {
  color: #b8b4aa;
}
.palette__empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.92rem;
}
.palette__foot {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  color: var(--text-2);
  background: var(--bg);
}

/* Dialogue Tap */
.tdialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1040px, 94vw);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  overflow: visible;
}
.tdialog::backdrop {
  background: rgba(23, 23, 22, 0.45);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.tdialog[open] {
  animation: pal-in 0.4s var(--ease);
}
.tdialog__box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: clamp(18px, 3vw, 32px);
  max-height: 92vh;
  overflow: auto;
}
.tdialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  z-index: 3;
  transition:
    background var(--t-fast),
    transform var(--t-med) var(--ease);
}
.tdialog__close:hover {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(90deg);
}
.tdialog__head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding-right: 48px;
}
.tdialog__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.tdialog__desc {
  color: var(--text-2);
  max-width: 58ch;
}

/* ============ Cookie popup ============ */
.cookie-pop {
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.cookie-pop::backdrop {
  background: rgba(23, 23, 22, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.cookie-pop__panel {
  position: relative;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.cookie-pop.is-open .cookie-pop__panel {
  opacity: 1;
  transform: none;
}
.cookie-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}
.cookie-pop__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.cookie-pop__body {
  min-width: 0;
  padding-right: 34px;
}
.cookie-pop__k {
  color: var(--accent-ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-pop__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.55rem + 1.8vw, 3rem);
  line-height: 0.98;
}
.cookie-pop__body p:last-child {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.cookie-pop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
 (max-width: 520px) {
  .cookie-pop {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .cookie-pop__panel {
    max-height: calc(100dvh - 24px);
    gap: 14px;
    padding: 20px 16px 16px;
    border-radius: var(--r-md);
  }
  .cookie-pop__body {
    padding-right: 30px;
  }
  .cookie-pop__actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .cookie-pop__actions .btn {
    width: 100%;
    --h: 44px;
  }
}
