/* ==========================================================================
   UTY3 — styles globaux
   Charte : Space Grotesk (Regular texte, Medium titres), encre #021132, ivoire #F4F6F8,
   brume #7F7E96 (éléments secondaires), bleu ciel #BAC1FF (boutons).
   --mist-deep est une teinte dérivée de la brume, pour du texte secondaire lisible sur ivoire
   (la brume seule n'atteint que 3,6:1 sur ivoire ; sur encre elle atteint 4,7:1).
   ========================================================================== */

:root {
  --ink: #021132;
  --ivory: #f4f6f8;
  --mist: #7f7e96;
  --mist-deep: #5a5973;
  --sky: #bac1ff;
  --error: #a3122e;

  --font: 'Space Grotesk', 'Space Grotesk Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 90rem;
  --section-pad: clamp(4.5rem, 10vw, 9rem);

  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --fs-h2: clamp(2.15rem, 1.3rem + 2.4vw, 3.85rem);
  --fs-display: clamp(2.75rem, 1.15rem + 5.4vw, 7rem);

  --radius: 0.375rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thèmes de section : chaque section pose ses couleurs, les composants les héritent. */
.theme-ivory {
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: var(--mist-deep);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
}
/* Teinte dérivée de la brume, pour distinguer un bloc (ex. Piinuts) sans sortir de la palette. */
.theme-tint {
  --bg: color-mix(in srgb, var(--mist) 14%, var(--ivory));
  --fg: var(--ink);
  --muted: var(--mist-deep);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
}
.theme-ink {
  --bg: var(--ink);
  --fg: var(--ivory);
  --muted: var(--mist);
  --line: color-mix(in srgb, var(--ivory) 22%, transparent);
}
.is-home {
  background: #fff;
}
.is-home .page,
.is-home .theme-ivory {
  --bg: #fff;
  background: #fff;
}
.is-home .theme-tint {
  --bg: color-mix(in srgb, var(--mist) 10%, #fff);
}
.hero.theme-ink {
  --fg: #fff;
  --line: color-mix(in srgb, #fff 22%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Mise en page ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}

/* ---------- Typographie ---------- */

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34em;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--fs-small);
}

.measure {
  max-width: 62ch;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-thickness 0.15s var(--ease);
}
.link:hover {
  text-decoration-thickness: 3px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid var(--fg, var(--ink));
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--ink);
  border-color: var(--sky);
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--fg, var(--ink));
  border-color: var(--fg, var(--ink));
}
.btn--ghost {
  background: transparent;
  color: var(--fg, var(--ink));
  border-color: var(--fg, var(--ink));
}
.btn--ghost:hover {
  background: var(--fg, var(--ink));
  color: var(--bg, var(--ivory));
  border-color: var(--fg, var(--ink));
}
.btn--sm {
  padding: 0.65rem 1.05rem;
  font-size: var(--fs-small);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  pointer-events: none;
  --menu-out: nav-menu-out;
  --menu-ms: 680ms;
}

.float-nav {
  pointer-events: auto;
  position: absolute;
  top: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: calc(min(100%, var(--max)) - 2 * var(--gutter));
  height: 56px;
  align-items: center;
  padding: 0 0.55rem 0 1.6rem;
  transform: translateX(-50%);
  transform-origin: top center;
  transition: transform 0.4s var(--ease);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 82%, transparent);
  background: color-mix(in srgb, #fff 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 72%, transparent),
    0 12px 40px color-mix(in srgb, var(--ink) 18%, transparent);
}
html.is-scrolled .float-nav {
  transform: translateX(-50%) scale(0.72);
}
.float-nav .logo,
.float-nav .header-tools {
  align-self: center;
}
.float-nav .logo img {
  height: 28px;
  display: block;
  transform: translateY(2px);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.logo img {
  height: 28px;
  width: auto;
}
.logo__mark {
  display: block;
  width: 70px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url('/brand/uty3.svg') left center / contain no-repeat;
  mask: url('/brand/uty3.svg') left center / contain no-repeat;
}
.logo__word {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.float-nav .header-tools {
  gap: 0;
}

.site-header > .clock {
  display: inline-flex;
  position: fixed;
  top: 1.15rem;
  right: var(--gutter);
  z-index: 60;
  order: 0;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  background: color-mix(in srgb, #fff 86%, transparent);
  border: 1px solid color-mix(in srgb, #fff 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 72%, transparent),
    0 12px 40px color-mix(in srgb, var(--ink) 18%, transparent);
}
html:has(dialog[open]) .site-header > .clock {
  visibility: hidden;
}
.clock:empty {
  display: none;
}
.clock__dial {
  width: 10px;
  height: 10px;
  flex: none;
  display: block;
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-size: var(--fs-small);
  font-weight: 500;
}
.lang-switch a {
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: var(--mist-deep);
  border-radius: var(--radius);
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current='true'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.float-nav .lang-switch a {
  color: var(--mist-deep);
  font-weight: 400;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}
.menu-btn__bars {
  display: grid;
  gap: 5px;
  width: 1.5rem;
}
.menu-btn__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}
.float-nav .menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  color: var(--ink);
}
.float-nav .lang-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: none;
  opacity: 1;
  overflow: visible;
  transform: none;
  pointer-events: auto;
}
.float-nav .lang-switch a {
  display: grid;
  padding: 0;
  text-decoration: none;
}
.float-nav .lang-switch a span {
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0.35rem 0.5rem;
}
.float-nav .lang-switch a[aria-current='true'] {
  order: 1;
  color: var(--ink);
  text-decoration: none;
}
.float-nav .lang-switch a:not([aria-current='true']) {
  position: relative;
  grid-template-columns: 0fr;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition:
    grid-template-columns 0.4s var(--ease),
    opacity 0.34s var(--ease);
}
.float-nav:hover .lang-switch a:not([aria-current='true']),
.float-nav:focus-within .lang-switch a:not([aria-current='true']) {
  position: relative;
  grid-template-columns: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.float-nav:hover .lang-switch a:nth-child(2),
.float-nav:focus-within .lang-switch a:nth-child(2) {
  transition-delay: 90ms;
}
.float-nav:hover .lang-switch a:nth-child(3),
.float-nav:focus-within .lang-switch a:nth-child(3) {
  transition-delay: 180ms;
}
@media (prefers-reduced-motion: reduce) {
  .float-nav,
  .float-nav .logo img,
  .float-nav .lang-switch,
  .float-nav .lang-switch a,
  .float-nav .lang-switch a span,
  .menu[open],
  .menu[open]::backdrop,
  .menu[data-closing]::backdrop,
  .menu[open] .menu__link,
  .menu[data-closing] .menu__link {
    animation: none;
    transition: none;
  }
}
@media (max-width: 719px) {
  .header-tools .btn {
    display: none;
  }
}

/* ---------- Menu plein écran ---------- */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--ivory);
  opacity: 0;
}
.menu[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
  animation: nav-menu-in var(--menu-ms) var(--ease) both;
}
.menu[open]::backdrop {
  animation: nav-menu-in var(--menu-ms) var(--ease) both;
}
.menu[data-closing]::backdrop {
  animation: nav-menu-out var(--menu-ms) var(--ease) forwards;
}
.menu[open] .menu__link {
  animation: nav-link-in 0.8s var(--ease) both;
}
.menu[open] .menu__link:nth-child(1) { animation-delay: 70ms; }
.menu[open] .menu__link:nth-child(2) { animation-delay: 130ms; }
.menu[open] .menu__link:nth-child(3) { animation-delay: 190ms; }
.menu[open] .menu__link:nth-child(4) { animation-delay: 250ms; }
.menu[open] .menu__link:nth-child(5) { animation-delay: 310ms; }
.menu[data-closing] .menu__link,
.menu[data-closing] .menu__link:nth-child(n) {
  animation: nav-link-out 0.28s var(--ease) both;
  animation-delay: 0s;
}
@keyframes nav-menu-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes nav-menu-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px); }
}
@keyframes nav-link-in {
  from { opacity: 0; transform: translateY(1.15rem); }
  to { opacity: 1; transform: none; }
}
@keyframes nav-link-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(0.45rem); }
}
.menu::backdrop {
  background: var(--ink);
}
html:has(dialog[open]) {
  overflow: hidden;
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}
.menu .logo {
  margin-right: 0;
}
.menu .logo__mark {
  transform: translateY(2px);
}
.menu__close {
  background: none;
  border: 0;
  padding: 0.65rem 0;
  cursor: pointer;
  font-weight: 500;
}

.menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
}

.menu__nav {
  display: grid;
  gap: 0.25rem;
}
.menu__link {
  display: block;
  width: fit-content;
  font-size: clamp(2.4rem, 1rem + 6.5vw, 6.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.menu__link:hover {
  color: var(--mist);
}
.menu__link[aria-current='page'] {
  color: var(--mist);
}

.menu__foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 22%, transparent);
}
.menu .clock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0 auto;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
  white-space: nowrap;
  pointer-events: none;
}
.clock__flag {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
}
.menu .lang-switch a {
  color: var(--mist);
}
.menu .lang-switch a:hover,
.menu .lang-switch a[aria-current='true'] {
  color: var(--ivory);
}

/* ---------- Accueil : hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(3rem, 8vw, 6rem);
}
/* Halo qui suit le curseur. Derrière le texte : le titre reste net, seule l'encre s'éclaire. */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--glow-on, 0);
  transition: opacity 0.35s;
  background:
    radial-gradient(
      circle 140px at var(--mx, -400px) var(--my, -400px),
      color-mix(in srgb, var(--ivory) 20%, transparent),
      transparent 70%
    ),
    radial-gradient(
      circle 340px at var(--mx, -400px) var(--my, -400px),
      color-mix(in srgb, var(--ivory) 9%, transparent),
      transparent 78%
    );
}
.hero > .container {
  position: relative;
  z-index: 1;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero__glow {
    display: none;
  }
}
.hero__title {
  max-width: 12.5ch;
}
.hero__row {
  margin-top: clamp(2.25rem, 6vw, 4.5rem);
  row-gap: 1.75rem;
}
.hero__lead {
  grid-column: 1 / span 6;
}
.hero__actions {
  grid-column: 8 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
@media (max-width: 899px) {
  .hero__lead,
  .hero__actions {
    grid-column: 1 / -1;
  }
}

/* ---------- Accueil : texte de présentation ---------- */

.brief__text {
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 36ch;
  text-wrap: pretty;
}
.brief__link {
  display: inline-block;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-size: var(--fs-lead);
  font-weight: 500;
}

/* ---------- Accueil : How we work ---------- */

.how__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 3rem;
}
.how__head {
  grid-column: 1 / span 5;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}
.how__head .lead {
  margin-top: 1.5rem;
  color: var(--muted);
}
.steps {
  grid-column: 7 / -1;
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}
.steps::before {
  background: color-mix(in srgb, var(--fg) 22%, transparent);
}
.steps::after {
  background: var(--fg);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 9vh, 5.5rem);
}
.step:first-child {
  padding-top: 0;
}
.step:last-child {
  padding-bottom: 0;
}
.step__n {
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  min-width: 0.7em;
  color: var(--fg);
  transition: color 0.35s var(--ease);
}
.step__t {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.step__d {
  margin-top: 0.75rem;
  max-width: 34ch;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
/* Le script active ce mode ; sans JavaScript, tout reste visible. */
.steps[data-live] .step__n {
  color: var(--muted);
}
.steps[data-live] .step.is-reached .step__n,
.steps[data-live] .step.is-reached .step__d {
  color: var(--fg);
}
@media (max-width: 899px) {
  .how__head {
    grid-column: 1 / -1;
    position: static;
  }
  .steps {
    grid-column: 1 / -1;
  }
}

/* ---------- Démo Piinuts ---------- */

.piinuts-block__grid {
  align-items: center;
  row-gap: 3rem;
}
.piinuts-block__text {
  grid-column: 1 / span 5;
}
.piinuts-block__text .lead {
  margin-top: 1.5rem;
  color: var(--muted);
}
.piinuts-block__text .btn {
  margin-top: 2rem;
}
.demo {
  grid-column: 7 / -1;
  border: 1.5px solid var(--fg);
  border-radius: var(--radius);
  background: var(--bg);
}
.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1.5px solid var(--fg);
}
.demo__title {
  font-size: var(--fs-small);
  color: var(--muted);
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}
.switch__track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  transition: background-color 0.5s var(--ease);
}
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 7px);
  height: calc(1.5rem - 7px);
  border-radius: 50%;
  background: var(--fg);
  transition:
    transform 0.5s var(--ease),
    background-color 0.5s var(--ease);
}
.switch[aria-checked='true'] .switch__track {
  background: var(--fg);
}
.switch[aria-checked='true'] .switch__thumb {
  transform: translateX(1.25rem);
  background: var(--bg);
}
.demo__text {
  padding: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.7;
  min-height: 11rem;
}
.demo__text .swap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  white-space: nowrap;
}
.demo__text .sens,
.demo__text .tag {
  border-radius: 3px;
  transition:
    opacity 0.55s var(--ease),
    filter 0.55s var(--ease);
}
.demo__text .sens {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  padding: 0.02em 0.16em;
}
.demo__text .tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  background: var(--fg);
  color: var(--bg);
  padding: 0.04em 0.32em;
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.demo[data-anon='true'] .sens {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}
.demo[data-anon='true'] .tag {
  position: static;
  top: auto;
  transform: none;
  opacity: 1;
  filter: none;
}
@media (max-width: 899px) {
  .piinuts-block__text,
  .demo {
    grid-column: 1 / -1;
  }
}

/* ---------- Logos clients ---------- */

.logos__title {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
}
@media (min-width: 720px) {
  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  text-align: center;
}
.logos img {
  height: var(--logo-h, 48px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
}
.logos__name {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.logos a:hover img,
.logos a:hover .logos__name {
  opacity: 0.72;
}
.logos a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ---------- Bloc d'appel à l'action ---------- */

.cta {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg, #fff);
  border-top: 1px solid var(--line, color-mix(in srgb, var(--ink) 14%, transparent));
}
.cta__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}
.cta__copy {
  min-width: min(100%, 18rem);
  max-width: 38rem;
}
.cta__title {
  max-width: 28ch;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta__text {
  margin-top: 0.35rem;
  color: var(--muted);
  max-width: 46ch;
}
.cta .btn {
  flex: none;
}

/* ---------- En-tête de page intérieure ---------- */

.page-head {
  padding-block: clamp(3.5rem, 9vw, 8rem) clamp(2.5rem, 6vw, 5rem);
}
.page-head .display {
  max-width: 15ch;
}
.page-head .lead,
.page-head .prose {
  margin-top: clamp(2.25rem, 5vw, 4rem);
}
.page-head .lead {
  color: var(--muted);
}
.jobs-intro {
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.jobs-list {
  padding-top: 0;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 46rem;
}
.job-meta__label {
  color: var(--muted);
}
.job-meta__sep {
  color: var(--muted);
}
.job__title {
  max-width: 18ch;
  margin-top: clamp(1.35rem, 3vw, 2rem);
}
.job__summary {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted);
}
.job-body {
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

/* ---------- Services : piliers ---------- */

.pillar {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  row-gap: 1.5rem;
}
.pillar:last-child {
  border-bottom: 1px solid var(--line);
}
.pillar__title {
  grid-column: 1 / span 5;
}
.pillar__body {
  grid-column: 7 / -1;
}
.pillar__body p {
  font-size: var(--fs-lead);
  line-height: 1.35;
  max-width: 30em;
}
.pillar__items {
  margin-top: 1.75rem;
  display: grid;
  gap: 0;
}
.pillar__items li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.pillar__link {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 500;
}
@media (max-width: 899px) {
  .pillar__title,
  .pillar__body {
    grid-column: 1 / -1;
  }
}

/* ---------- Média (image ou emplacement) ---------- */

.media {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  background: color-mix(in srgb, var(--fg, var(--ink)) 8%, var(--bg, var(--ivory)));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide .media:has(img),
.cover:has(img) {
  border: 1px solid color-mix(in srgb, var(--fg) 42%, transparent);
  border-radius: var(--radius);
}
article .prose img {
  border-radius: var(--radius);
}
.media--ph {
  background-color: color-mix(in srgb, var(--mist) 8%, var(--ivory));
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    color-mix(in srgb, var(--ink) 11%, transparent) 11px 12px
  );
  display: grid;
  place-items: center;
}
.media--quiet .media__label {
  display: none;
}
.cover {
  width: min(100%, 40rem);
}
.media__label {
  font-size: var(--fs-small);
  color: var(--muted, var(--mist-deep));
  padding: 0.35rem 0.75rem;
  background: var(--bg, var(--ivory));
  border-radius: var(--radius);
}

/* ---------- Slider ---------- */

.slider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.slider__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.slider__count {
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 3.5em;
  text-align: right;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--fg);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.icon-btn:hover:not([disabled]) {
  background: var(--fg);
  color: var(--bg);
}
.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.slider__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  overscroll-behavior-x: contain;
  cursor: grab;
}
.slider__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.slider__track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 min(82vw, 34rem);
  scroll-snap-align: start;
  position: relative;
}
.slide__body {
  padding-top: 1.25rem;
  max-width: 44rem;
}
.slide__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
}
.slide__title a {
  text-decoration: none;
}
.slide__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slide__excerpt {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 52ch;
}
.slide .media {
  transition: opacity 0.2s var(--ease);
}
.slide:hover .media {
  opacity: 0.88;
}
.slide a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Accueil : trois dernières actualités ---------- */

.news-home__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.news-home__head .link {
  flex: none;
  font-size: var(--fs-small);
}
.news-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.news-home > li {
  position: relative;
  min-width: 0;
}
.news-home__title {
  font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-top: 0.45rem;
}
.news-home__title a {
  text-decoration: none;
}
.news-home > li:hover .news-home__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.news-home__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.news-home__excerpt {
  margin-top: 0.65rem;
  color: var(--muted);
}
.news-home > li:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.news-home a:focus-visible {
  outline: none;
}
@media (min-width: 900px) {
  .news-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.meta > span + span::before {
  content: '·';
  margin-inline: 0.55rem;
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ---------- Liste filtrable ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.chip {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 500;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.chip:hover,
.chip[aria-pressed='true'] {
  background: var(--fg);
  color: var(--bg);
}
.rows li {
  border-top: 1px solid var(--line);
}
.rows li:last-child {
  border-bottom: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding-block: 1.4rem;
  text-decoration: none;
}
.row__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.row:hover .row__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
@media (min-width: 900px) {
  .row {
    grid-template-columns: 11rem minmax(0, 1fr) 14rem;
    align-items: baseline;
  }
  .row__tags {
    text-align: right;
  }
}
[hidden] {
  display: none !important;
}

/* ---------- Détail d'une publication ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  margin-block: clamp(2rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}
.facts dt {
  font-size: var(--fs-small);
  color: var(--muted);
}
.facts dd {
  margin: 0.2rem 0 0;
  font-weight: 500;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2,
.prose h3 {
  margin-top: 1.8em;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  list-style: revert;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.detail-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 1rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.detail-section > h2 {
  grid-column: 1 / span 4;
}
.detail-section > .prose {
  grid-column: 6 / -1;
  font-size: var(--fs-lead);
  line-height: 1.4;
}
@media (max-width: 899px) {
  .detail-section > h2,
  .detail-section > .prose {
    grid-column: 1 / -1;
  }
}
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: var(--fs-small);
}

/* ---------- À propos ---------- */

.about__title {
  max-width: 20ch;
}

.about__text {
  margin-top: 2rem;
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
}
.team__name {
  margin-top: 0.75rem;
  font-weight: 500;
}
.team__role {
  color: var(--muted);
  font-size: var(--fs-small);
}

/* ---------- Contact ---------- */

.contact__grid {
  row-gap: 3rem;
}
.contact__aside {
  grid-column: 1 / span 4;
}
.contact__address {
  font-style: normal;
  line-height: 1.55;
}
.address__place,
.address__reach {
  display: block;
}
.address__reach {
  margin-top: 1.35rem;
}
.address__reach a {
  display: block;
}
.contact__form {
  grid-column: 6 / -1;
}
@media (max-width: 899px) {
  .contact__aside,
  .contact__form {
    grid-column: 1 / -1;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--fg);
  border-radius: 0;
  font-size: var(--fs-lead);
  letter-spacing: -0.01em;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23021132' stroke-width='1.8'%3E%3Cpath d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.4;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-width: 4px;
  margin-bottom: -2.5px;
}
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea {
  border-bottom-color: var(--error);
}
.field__error {
  color: var(--error);
  font-size: var(--fs-small);
  font-weight: 500;
}
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.85rem;
}
.field--check input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}
.field--check label {
  font-weight: 400;
  font-size: var(--fs-body);
}
.field--check .field__error {
  grid-column: 2;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1.25rem;
  font-weight: 500;
}
.form-status[data-state='error'] {
  color: var(--error);
}

/* ---------- Emploi, états vides ---------- */

.empty {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.empty p {
  margin-top: 1rem;
  max-width: 44ch;
  font-size: var(--fs-lead);
}
.empty .link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 500;
}

/* ---------- Page Piinuts ---------- */

.tool-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .tool-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 3vw, 3rem);
  }
}
.tool-list li {
  padding-block: 1.5rem;
  border-top: 1.5px solid var(--fg);
}
.tool-list p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* ---------- Pied de page qui s'ouvre ---------- */

.page {
  position: relative;
  z-index: 1;
  background: var(--ivory);
}
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  --muted: var(--mist);
  overflow: hidden;
}
.site-footer__inner {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem);
}
.footer-brand .logo {
  margin-right: 0;
}
.footer-brand .logo__mark {
  width: 112px;
  height: 45px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-grid h2 {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--mist);
  margin-bottom: 0.9rem;
}
.footer-grid li + li {
  margin-top: 0.35rem;
}
.footer-address address {
  font-style: normal;
  white-space: nowrap;
  line-height: 1.55;
}
.footer-grid a {
  text-decoration: none;
}
.footer-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  font-size: var(--fs-small);
  color: var(--mist);
}
.footer-legal a {
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--ivory);
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

/* Le pied de page est fixé derrière la page dès le premier rendu, sur grand écran.
   L'attribut est dans le HTML pour éviter un décalage au moment où le script le pose.
   Le script retire l'attribut si le pied de page est plus haut que la fenêtre. */
@media (min-width: 900px) {
  html[data-footer-reveal] .site-footer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 0;
  }
  html[data-footer-reveal] .page {
    margin-bottom: var(--footer-h, 34rem);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 719px) {
  .hero {
    align-items: flex-end;
    min-height: 100svh;
    padding-top: calc(1rem + 56px + 0.75rem);
    padding-bottom: clamp(2.25rem, 8vw, 4rem);
  }
  .page-head {
    padding-top: calc(1rem + 56px + 1.25rem);
    padding-bottom: 1.15rem;
  }
  .page-head .lead,
  .page-head .prose {
    margin-top: 1rem;
  }
  .jobs-intro {
    padding-bottom: 0.35rem;
  }
  .jobs-list .row {
    padding-block: 0.85rem;
  }
  .job-meta {
    margin-top: 0.65rem;
  }
  .job__title {
    margin-top: 0.7rem;
  }
  .job-body {
    padding-top: 0.15rem;
  }
  .job-body .prose > :first-child,
  .page-head + section .prose > :first-child {
    margin-top: 0;
  }
  .facts {
    margin-top: 0.85rem;
  }
  .detail-section:first-of-type {
    padding-top: 1.15rem;
  }

  .logos-rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .logos-rail::-webkit-scrollbar {
    display: none;
  }
  .logos-rail.is-marquee {
    overflow: hidden;
    padding-inline: 0;
  }
  .logos-track.is-marquee {
    display: flex;
    width: max-content;
    animation: logos-drift var(--logo-duration, 32s) linear infinite;
  }
  .logos-rail.is-marquee:focus-within .logos-track,
  .logos-rail.is-marquee.is-holding .logos-track {
    animation-play-state: paused;
  }
  .logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.75rem;
    width: max-content;
  }
  .logos-track.is-marquee .logos {
    padding-right: 2.75rem;
  }
  .logos li {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 4.5rem;
  }
  .logos a {
    width: auto;
  }
  .logos img {
    height: var(--logo-h, 48px);
    width: auto;
    max-width: none;
    max-height: none;
  }

  .cta .btn {
    padding: 0.65rem 1.05rem;
    font-size: var(--fs-small);
  }

  .float-nav:hover .lang-switch:not(.is-open) a:not([aria-current='true']),
  .float-nav:focus-within .lang-switch:not(.is-open) a:not([aria-current='true']) {
    grid-template-columns: 0fr;
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
  }
  .float-nav .lang-switch.is-open a:not([aria-current='true']) {
    grid-template-columns: 1fr;
    opacity: 1;
    pointer-events: auto;
  }
  .menu-btn:focus,
  .menu-btn:focus-visible,
  .menu:focus,
  .menu:focus-visible,
  .menu :focus,
  .menu :focus-visible {
    outline: none;
  }
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0.85rem;
  }

  .site-footer__inner {
    padding-block: 2.5rem 1.75rem;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .footer-brand .logo__mark {
    width: 84px;
    height: 34px;
  }
  .footer-grid li + li {
    margin-top: 0.55rem;
  }
  .footer-address address {
    white-space: normal;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 2rem;
  }
}

/* ---------- Apparition ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Déplacement seul : le titre reste visible, sinon il ne compte pour le LCP qu'à la fin du fondu. */
  .hero__title,
  .hero__lead,
  .hero__actions {
    animation: hero-in 0.7s var(--ease) both;
  }
  .hero__lead {
    animation-delay: 0.08s;
  }
  .hero__actions {
    animation-delay: 0.14s;
  }
  .section.is-pending {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
    transition:
      opacity 1.15s var(--ease),
      transform 1.15s var(--ease),
      filter 1.15s var(--ease);
  }
  .section.is-pending.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes logos-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes hero-in {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}
@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Bandeau de consentement ---------- */

.consent {
  position: fixed;
  z-index: 70;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 26rem;
  padding: 1rem 1.1rem;
  background: var(--ivory);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.consent[hidden] {
  display: none;
}
.consent__text {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.45;
}
.consent__text .link {
  margin-left: 0.35rem;
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-legal__links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.footer-legal__links button:hover {
  color: var(--ivory);
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
