/* ==========================================================================
   Ozone Groupe ™ — Design system (noir & blanc, premium, minimaliste)
   ========================================================================== */

:root {
  --bg: #060606;
  --bg-soft: #0b0b0b;
  --card: #0e0e0e;
  --card-hover: #131313;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --muted-soft: #6f6f6f;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-lock {
  overflow: hidden;
}

::selection {
  background: var(--white);
  color: #000;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Décor de fond ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(255, 255, 255, 0.10), transparent 62%),
    radial-gradient(700px 420px at 88% 8%, rgba(255, 255, 255, 0.045), transparent 60%);
  will-change: transform;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 80%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- Utilitaires ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.9s var(--ease) 0.2s;
}

.js .section-head .eyebrow::before {
  width: 0;
}

.js .section-head.is-visible .eyebrow::before {
  width: 22px;
}

.section {
  padding: clamp(80px, 10vw, 110px) 0;
}

section[id],
.legal-content h2 {
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--white);
  color: #000;
}

/* Balayage lumineux au survol */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(0, 0, 0, 0.16), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}

.btn-primary:hover::before {
  animation: btn-sweep 0.85s ease;
}

@keyframes btn-sweep {
  to {
    transform: translateX(260%);
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Header au-dessus du menu plein écran */
.site-header.menu-open,
.site-header.menu-open.is-scrolled {
  background: #060606;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .nav {
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 16.5px;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex: none;
  transition: transform 0.6s var(--ease), background 0.3s ease, color 0.3s ease;
}

.brand:hover .mark {
  transform: rotate(360deg);
  background: var(--white);
  color: #000;
}

.brand .tm {
  font-size: 10px;
  vertical-align: super;
  color: var(--muted);
  font-weight: 500;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bouton hamburger — visible à toutes les tailles */
.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.site-header.menu-open .nav-toggle span {
  background: transparent;
}

.site-header.menu-open .nav-toggle span::before {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span::after {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

/* ---------- Menu plein écran (hamburger) ---------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #060606;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s var(--ease);
}

.site-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: 104px;
  padding-bottom: 44px;
}

.menu-list {
  list-style: none;
  width: 100%;
  max-width: 860px;
}

.menu-list li {
  border-bottom: 1px solid var(--line);
}

.menu-list li:first-child {
  border-top: 1px solid var(--line);
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(12px, 2.4vh, 22px) 4px;
  font-size: clamp(27px, 5.2vw, 54px);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.45s var(--ease);
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--white);
  transform: translateX(12px);
}

.menu-num {
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
  flex: none;
  transform: translateY(-0.5em);
  transition: color 0.3s ease;
}

.menu-link:hover .menu-num {
  color: var(--text);
}

.site-menu-foot {
  margin-top: clamp(26px, 5vh, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 860px;
}

.menu-meta {
  font-size: 13px;
  color: var(--muted-soft);
}

.menu-meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.menu-meta a:hover {
  color: var(--white);
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-menu.open .menu-list li {
  animation: menu-item-in 0.6s var(--ease) both;
}

.site-menu.open .menu-list li:nth-child(1) { animation-delay: 0.05s; }
.site-menu.open .menu-list li:nth-child(2) { animation-delay: 0.11s; }
.site-menu.open .menu-list li:nth-child(3) { animation-delay: 0.17s; }
.site-menu.open .menu-list li:nth-child(4) { animation-delay: 0.23s; }
.site-menu.open .menu-list li:nth-child(5) { animation-delay: 0.29s; }
.site-menu.open .menu-list li:nth-child(6) { animation-delay: 0.35s; }

.site-menu.open .site-menu-foot {
  animation: menu-item-in 0.6s var(--ease) 0.45s both;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(70px, 11vw, 120px) 0 clamp(60px, 9vw, 100px);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  animation: badge-float 5s ease-in-out infinite;
}

@keyframes badge-float {
  50% {
    transform: translateY(-5px);
  }
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.hero h1 {
  margin: 30px auto 0;
  max-width: 900px;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.hero h1 .tm {
  font-size: 0.28em;
  vertical-align: super;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.hero p {
  margin: 26px auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(15.5px, 2.4vw, 17.5px);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-strip {
  margin-top: clamp(50px, 8vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.hero-strip div {
  padding: 26px 20px;
  text-align: center;
}

.hero-strip div + div {
  border-left: 1px solid var(--line);
}

.hero-strip strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-strip span {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* ---------- Bandeau défilant (marquee) ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 46px);
  padding-right: clamp(26px, 4vw, 46px);
}

.mq-item {
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 680;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.mq-item.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.mq-sep {
  color: var(--muted-soft);
  font-size: clamp(12px, 1.6vw, 16px);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cartes de bots ---------- */

.bots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.bot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
  overflow: hidden;
}

/* Spot lumineux suivant le curseur */
.bot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bot-card:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.bot-card:hover::after {
  opacity: 1;
}

.bot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.bot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #1b1b1b, #0a0a0a);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex: none;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.bot-card:hover .bot-avatar {
  transform: translateY(-3px) rotate(-4deg);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill .dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* Halo pulsé du statut « en ligne » */
.pill .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  70%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.pill.soon {
  opacity: 0.6;
}

.pill.soon .dot,
.pill.soon .dot::after {
  background: var(--muted-soft);
  animation: none;
}

.bot-card h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.bot-card h3 .tm {
  font-size: 10px;
  vertical-align: super;
  color: var(--muted);
}

.bot-card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.bot-tags span {
  font-size: 12px;
  color: var(--muted-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.bot-card:hover .bot-tags span {
  border-color: var(--line-strong);
  color: var(--muted);
}

.bot-card .btn {
  align-self: flex-start;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ---------- Engagements ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), background 0.3s ease;
}

.value-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--card);
}

.value-num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
  display: inline-block;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.value-card:hover .value-num {
  transform: translateX(6px);
  color: var(--text);
}

.value-card h3 {
  margin-top: 16px;
  font-size: 18.5px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.value-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.value-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.25s ease;
}

.value-card a:hover {
  text-decoration-color: var(--white);
}

/* ---------- CTA final ---------- */

.cta {
  text-align: center;
  padding: clamp(60px, 8vw, 90px) clamp(22px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(680px 320px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 65%),
    var(--bg-soft);
  transition: border-color 0.4s ease;
}

.cta:hover {
  border-color: var(--line-strong);
}

.cta h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.035em;
  font-weight: 670;
  line-height: 1.1;
  text-wrap: balance;
}

.cta p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.cta .hero-actions {
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}

.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-grid a {
  font-size: 14.5px;
  color: var(--muted);
  background-image: linear-gradient(var(--white), var(--white));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--white);
  background-size: 100% 1px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 320px;
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-soft);
  font-size: 13.5px;
}

.footer-bottom a {
  color: var(--muted-soft);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- Pages légales ---------- */

.legal-hero {
  padding: clamp(60px, 9vw, 90px) 0 30px;
}

.legal-hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.5vw, 56px);
  letter-spacing: -0.04em;
  font-weight: 680;
  line-height: 1.08;
  text-wrap: balance;
}

.legal-hero .updated {
  margin-top: 16px;
  color: var(--muted-soft);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
  padding: 40px 0 clamp(80px, 10vw, 110px);
}

.toc {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-soft);
}

.toc h2 {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 9px;
}

.toc a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  padding-left: 11px;
  border-left: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.toc a:hover {
  color: var(--white);
}

.toc a.active {
  color: var(--white);
  border-left-color: var(--white);
  transform: translateX(3px);
}

.legal-content {
  max-width: 720px;
}

.legal-content section + section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin-top: 22px;
  font-size: 16.5px;
  font-weight: 620;
}

.legal-content p,
.legal-content li {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.legal-content ul,
.legal-content ol {
  margin-top: 14px;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.25s ease;
}

.legal-content a:hover {
  text-decoration-color: var(--white);
}

.legal-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--muted);
}

.legal-note strong {
  color: var(--text);
}

/* Tableau des bases légales */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  color: var(--text);
  font-weight: 600;
  width: 46%;
}

.legal-table td {
  color: var(--muted);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Animations d'apparition ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Délais en cascade dans les grilles */
.bots-grid .reveal:nth-child(2),
.values-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.bots-grid .reveal:nth-child(3),
.values-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.bots-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* Titres découpés en mots */
.js [data-split] {
  opacity: 0;
}

.js [data-split].split-ready {
  opacity: 1;
}

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

[data-split] .wi {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.95s var(--ease), opacity 0.6s ease;
}

[data-split].split-in .wi {
  transform: none;
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .toc {
    position: static;
  }
  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px 16px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 44px;
  }
}

@media (max-width: 820px) {
  .bots-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    height: 66px;
  }
  .site-header.is-scrolled .nav {
    height: 60px;
  }
  .nav-cta .btn {
    display: none;
  }
  .site-menu-inner {
    padding-top: 86px;
    padding-bottom: 34px;
  }
  .hero-strip {
    margin-top: 50px;
  }
  .hero-strip div {
    padding: 20px 16px;
  }
  .cta {
    padding: 56px 22px;
  }
  .footer-grid {
    gap: 34px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .site-footer {
    padding: 52px 0 34px;
  }
}

@media (max-width: 640px) {
  .hero-badge {
    font-size: 11px;
    padding: 6px 13px 6px 10px;
    letter-spacing: 0.06em;
  }
  .hero h1 {
    margin-top: 24px;
  }
  .hero p {
    margin-top: 20px;
  }
  .hero-actions {
    margin-top: 32px;
    gap: 12px;
  }
  .section-head h2 {
    font-size: clamp(27px, 7.5vw, 36px);
  }
  .section-head p {
    font-size: 15.5px;
  }
  .bot-card {
    padding: 24px;
    gap: 14px;
  }
  .bot-avatar {
    width: 46px;
    height: 46px;
    font-size: 17px;
    border-radius: 14px;
  }
  .value-card {
    padding: 24px;
  }
  .legal-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }
  .legal-content h2 {
    font-size: 20px;
  }
  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
  .legal-content ul,
  .legal-content ol {
    padding-left: 18px;
  }
  .legal-note {
    padding: 16px;
  }
  .menu-link {
    font-size: clamp(25px, 7.5vw, 34px);
    padding: clamp(11px, 2vh, 16px) 2px;
  }
  .site-menu-foot .btn {
    width: 100%;
  }
  /* Tableau empilé en cartes */
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 16px 12px;
    margin-bottom: 14px;
    background: var(--bg-soft);
  }
  .legal-table th {
    border-bottom: 0;
    padding: 12px 0 4px;
  }
  .legal-table td {
    border-bottom: 0;
    padding: 0;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 18px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-strip strong {
    font-size: 19px;
  }
  .hero-strip div {
    padding: 17px 10px;
  }
  .hero-strip span {
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }
  .mq-item {
    font-size: 20px;
  }
  .toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
  }
  .toc a {
    font-size: 12.5px;
    padding-left: 9px;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js [data-split],
  [data-split] .wi {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track,
  .pill .dot::after,
  .hero-badge {
    animation: none !important;
  }
  .site-menu,
  .site-menu.open,
  .site-menu.open .menu-list li,
  .site-menu.open .site-menu-foot {
    transition: none;
    animation: none;
  }
  .btn-primary::before {
    display: none;
  }
}
