/* ==========================================================================
   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;
  --header-h: 74px;
  --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%;
  scrollbar-gutter: stable;
}

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: #000000;
}

: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%);
}

.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%, #000000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000000 35%, transparent 80%);
}

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

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

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

.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: #000000;
}

/* 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: 60;
  padding-top: 14px;
  background: transparent;
  pointer-events: none; /* seule la capsule est cliquable */
}

.nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 28px;
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .nav {
  height: calc(var(--header-h) - 10px);
}

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

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.brand:hover .mark {
  transform: rotate(360deg);
}

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

/* Liens desktop */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-link {
  position: relative;
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-link[aria-current="page"] {
  color: #000000;
  background: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.nav-links + .nav-cta {
  margin-left: 0;
}

.nav-discord {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav-discord:hover {
  color: var(--white);
}

/* Bouton hamburger — mobile uniquement */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  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;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

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

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

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

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

/* ---------- Panneau mobile ---------- */

.drawer {
  display: none;
}

@media (max-width: 1020px) {
  .nav {
    gap: 12px;
    justify-content: space-between;
  }

  .nav-links,
  .nav-discord {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.45s;
  }

  .drawer.open {
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .drawer.open .drawer-backdrop {
    opacity: 1;
  }

  .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 10px) 24px max(24px, env(safe-area-inset-bottom));
    background: #0a0a0a;
    border-left: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }

  .drawer.open .drawer-panel {
    transform: none;
  }

  .drawer-list {
    list-style: none;
    border-top: 1px solid var(--line);
  }

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

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 2px;
    min-height: 56px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--muted);
    transition: color 0.25s ease;
  }

  .drawer-label {
    flex: 1;
  }

  .drawer-link::after {
    content: "\2192";
    font-size: 17px;
    font-weight: 400;
    color: var(--muted-soft);
    transition: transform 0.35s var(--ease), color 0.25s ease;
  }

  .drawer-link[target="_blank"]::after {
    content: "\2197";
  }

  .drawer-link:active,
  .drawer-link:focus-visible,
  .drawer-link[aria-current="page"] {
    color: var(--white);
  }

  .drawer-link[aria-current="page"]::after {
    color: var(--white);
  }

  .drawer-link:focus-visible {
    outline-offset: -2px;
  }

  .drawer-num {
    flex: none;
    width: 22px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--muted-soft);
  }

  .drawer-foot {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .drawer-foot .btn {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .drawer-meta {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted-soft);
    text-align: center;
  }

  .drawer-meta a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
  }

  .drawer-list li,
  .drawer-foot {
    opacity: 0;
    transform: translateX(18px);
  }

  .drawer.open .drawer-list li,
  .drawer.open .drawer-foot {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .drawer.open .drawer-list li:nth-child(1) { transition-delay: 0.08s; }
  .drawer.open .drawer-list li:nth-child(2) { transition-delay: 0.12s; }
  .drawer.open .drawer-list li:nth-child(3) { transition-delay: 0.16s; }
  .drawer.open .drawer-list li:nth-child(4) { transition-delay: 0.20s; }
  .drawer.open .drawer-list li:nth-child(5) { transition-delay: 0.24s; }
  .drawer.open .drawer-list li:nth-child(6) { transition-delay: 0.28s; }
  .drawer.open .drawer-list li:nth-child(7) { transition-delay: 0.32s; }
  .drawer.open .drawer-foot { transition-delay: 0.38s; }
}

@media (max-width: 1020px) and (hover: hover) {
  .drawer-link:hover {
    color: var(--white);
  }
  .drawer-link:hover::after {
    transform: translateX(4px);
    color: var(--white);
  }
}

@media (max-width: 1020px) and (max-height: 640px) {
  .drawer-link {
    padding: 11px 2px;
    min-height: 0;
    font-size: 18px;
  }
  .drawer-foot {
    padding-top: 18px;
  }
}

/* Téléphone : en-tête épuré (logo + hamburger), panneau plein écran */
@media (max-width: 640px) {
  .nav-add {
    display: none;
  }

  .drawer-panel {
    width: 100%;
    border-left: 0;
  }

  .site-header.menu-open .nav {
    background: #0a0a0a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 340px) {
  .brand-name {
    font-size: 15px;
  }
}

/* ---------- 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;
}

/* ---------- 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: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #0a0a0a;
  overflow: hidden;
  flex: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-card[aria-disabled="true"] .bot-avatar img {
  filter: saturate(0.75);
}

.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;
  line-height: 1.5;
  overflow-wrap: anywhere;
  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 {
  min-width: 0;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.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) {
  :root {
    --header-h: 66px;
  }
  .site-header.is-scrolled .nav {
    height: 60px;
  }
  .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: 48px;
    height: 48px;
    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;
  }
  /* 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-left: 18px;
    padding-right: 18px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
  }
  .toc a {
    font-size: 12.5px;
    padding-left: 9px;
  }
}

@media (max-width: 340px) {
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .btn {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---------- 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;
  }
  .pill .dot::after,
  .hero-badge {
    animation: none !important;
  }
  .drawer,
  .drawer *,
  .nav-link {
    transition: none !important;
  }
  .btn-primary::before {
    display: none;
  }
}


/* ---------- Effet de scroll : cartes des bots ---------- */
/* --p (0 → 1) est piloté par le défilement (voir script.js) */
.js .bot-card[data-scroll] {
  --sx: -70px;
  opacity: calc(0.1 + var(--p, 1) * 0.9);
  translate: calc((1 - var(--p, 1)) * var(--sx)) calc((1 - var(--p, 1)) * 80px);
  scale: calc(0.88 + var(--p, 1) * 0.12);
  rotate: calc((1 - var(--p, 1)) * var(--rot, -2deg));
  filter: blur(calc((1 - var(--p, 1)) * 6px));
  will-change: translate, scale, opacity;
}

.js .bot-card[data-scroll]:nth-child(even) {
  --sx: 70px;
  --rot: 2deg;
}

@media (max-width: 820px) {
  .js .bot-card[data-scroll],
  .js .bot-card[data-scroll]:nth-child(even) {
    --sx: 0px;
    --rot: 0deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .bot-card[data-scroll] {
    opacity: 1;
    translate: none;
    scale: none;
    rotate: none;
    filter: none;
  }
}


/* ---------- Page « Ajouter un bot » ---------- */

.add-list {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.add-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.add-item:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.add-item .bot-avatar {
  width: 72px;
  height: 72px;
}

.add-body {
  min-width: 0;
}

.add-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.add-title h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.add-body p {
  margin: 8px 0 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.add-action .btn {
  white-space: nowrap;
}

.add-help {
  max-width: 860px;
  margin: 8px auto 0;
  padding-bottom: 72px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-soft);
}

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

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

@media (max-width: 680px) {
  .add-item {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 16px;
    padding: 20px;
  }
  .add-item .bot-avatar {
    width: 52px;
    height: 52px;
  }
  .add-body p {
    margin: 6px 0 12px;
  }
  .add-action {
    grid-column: 1 / -1;
  }
  .add-action .btn {
    width: 100%;
  }
}


/* ---------- /ajouter : améliorations ---------- */

.badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.add-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.add-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.add-stats strong {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.add-stats span {
  font-size: 12.5px;
  color: var(--muted-soft);
}

.add-steps,
.team {
  max-width: 860px;
  margin: 56px auto 0;
}

.add-steps h2,
.team h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 10px 0 22px;
}

.add-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.add-steps li {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-n {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
}

.add-steps h3 {
  margin: 12px 0 6px;
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.add-steps li p {
  font-size: 14px;
  color: var(--muted);
}

.add-tip {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

.add-tip strong {
  color: var(--text);
}

.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dev {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.dev:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.dev-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-weight: 650;
}

.dev-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 680px) {
  .add-steps ol,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .add-stats li {
    flex: 1;
    min-width: 0;
  }
}


/* ---------- Navbar : capsule flottante ---------- */

.site-header .nav {
  pointer-events: auto;
  width: min(var(--max), calc(100% - 24px));
  max-width: none;
  margin: 0 auto;
  height: 62px;
  padding: 0 9px 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: height 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled .nav {
  height: 56px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 10, 0.9);
}

.nav-toggle {
  border-radius: 50%;
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 10px;
  }
  .site-header .nav,
  .site-header.is-scrolled .nav {
    height: 54px;
    padding: 0 7px 0 16px;
  }
}
/* ==========================================================================
   Site Ozone Groupe — thème clair (même langage visuel que le dashboard,
   inspiré du panel Zenode). Chargé après style.css sur toutes les pages.
   ========================================================================== */

:root {
  --bg: #f6f6f6; --bg-soft: #f9f9f9; --card: #ffffff; --card-hover: #ffffff;
  --line: #e8e8e8; --line-strong: #d8d8d8;
  --text: #1f1f1f; --muted: #717171; --muted-soft: #9d9d9d;
  --white: #0a0a0a;               /* ancien « blanc » : devient l'encre foncée (textes, soulignements) */
  --g: #0a0a0a; --g-dark: #2b2b2b; --g-soft: #f2f2f2; --g-line: #d4d4d4; --ink: #0a0a0a;
  --radius: 10px; --radius-lg: 12px;
}
body { background: var(--bg); color: var(--text); }
::selection { background: var(--g-line); color: var(--ink); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.bg-glow, .bg-grid { display: none; }

/* ---------- En-tête : barre blanche plate ---------- */
.site-header { padding-top: 0; background: #ffffff; border-bottom: 1px solid var(--line); pointer-events: auto; }
.site-header .nav, .site-header.is-scrolled .nav {
  width: 100%; max-width: var(--max); height: 64px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 24px);
  border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-scrolled .nav { height: 60px; }
.brand .mark { width: 34px; height: 34px; padding: 6px; border-radius: 8px; background: var(--ink); }
.brand:hover .mark { transform: none; }
.nav-links ul { border: 0; background: transparent; padding: 0; gap: 4px; }
.nav-link { border-radius: 8px; color: #474747; }
.nav-link:hover { background: #f4f4f4; color: var(--text); }
.nav-link[aria-current="page"] { background: var(--g-soft); color: var(--g-dark); font-weight: 600; }
.nav-discord { color: var(--muted); }
.nav-discord:hover { color: var(--text); }
.nav-toggle, .site-header .nav-toggle { border-radius: 8px; background: #ffffff; }
.nav-toggle:hover { background: #f5f5f5; border-color: var(--line-strong); }
.drawer-backdrop { background: rgba(35, 35, 35, .35); }
.drawer-panel { background: #ffffff; }
.site-header.menu-open .nav { background: #ffffff; }

/* ---------- Boutons ---------- */
.btn { border-radius: 8px; }
.btn-primary { background: var(--g); color: var(--on-g, #ffffff); border-color: var(--g); }
.btn-primary::before { display: none; }
.btn-primary:hover { background: var(--g-dark); border-color: var(--g-dark); transform: none; box-shadow: none; }
.btn-ghost { background: #ffffff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: #f5f5f5; border-color: var(--line-strong); transform: none; }

/* ---------- Accueil ---------- */
.hero-badge { background: #ffffff; border-color: var(--line); color: var(--muted); animation: none; }
.hero-badge .dot, .pill .dot { background: var(--g); box-shadow: none; }
.hero-badge .dot { box-shadow: 0 0 0 4px rgba(125, 125, 125, .15); }
.pill { background: #ffffff; border-color: var(--line); }
.pill.soon .dot { background: var(--muted-soft); }
.badge { background: #f1f1f1; color: var(--muted); }

.bot-card, .value-card, .dev, .add-item { background: #ffffff; border-color: var(--line); box-shadow: 0 1px 2px rgba(34, 34, 34, .04); }
.bot-card::after { display: none; }
.bot-card:hover { background: #ffffff; border-color: var(--g-line); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 34, 34, .08); }
.bot-avatar { background: #f5f5f5; box-shadow: 0 2px 8px rgba(34, 34, 34, .1); border-radius: 12px; }
.bot-card:hover .bot-avatar { transform: none; border-color: var(--g-line); }

.cta { background: var(--g-soft); border-color: var(--g-line); }
.cta:hover { border-color: var(--g); }

/* ---------- Pages légales / ajouter ---------- */
.legal-content, .toc, .legal-table, .add-body { color: var(--text); }
.legal-content a { text-decoration-color: var(--g); }
.legal-table { background: #ffffff; }

/* ---------- Pied de page ---------- */
.site-footer { background: #ffffff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--g-dark); }

/* Barre plate : on neutralise tout reste de la capsule flottante (ombre, fond, bordure) */
.site-header { box-shadow: none; }
.site-header .nav::before, .site-header .nav::after { display: none; }
.site-header.menu-open .nav, .site-header.is-scrolled.menu-open .nav { box-shadow: none; }

/* Avatars des bots : photos de profil d'origine, en couleur (plus de filtre en niveaux de gris) */
