/* Fonts and theme tokens are now loaded directly via <link> in <head>
   for parallel fetching (see index.html) instead of @import, which
   forces a slow serial request chain that delays first paint. */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section-pad {
  padding: 6rem 0;
}

.section-tint {
  background: linear-gradient(180deg, transparent, var(--bg2) 30%, var(--bg2) 70%, transparent);
}

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.text-center {
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }
}

.reveal-armed.reveal,
.reveal-armed.reveal-left,
.reveal-armed.reveal-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-armed.reveal {
  transform: translateY(24px);
}

.reveal-armed.reveal-left {
  transform: translateX(-24px);
}

.reveal-armed.reveal-right {
  transform: translateX(24px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: .8rem 1.6rem;
  font-size: .88rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.btn-outline {
  border-color: var(--border-h);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--input-bg);
}

.kbd-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem;
  opacity: .5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .05rem .3rem;
  margin-left: .15rem;
}

/* ---------- Maintenance overlay ---------- */

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.maintenance-box {
  max-width: 420px;
}

.maintenance-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--cyan);
  margin: 0 auto 1.25rem;
}

.maintenance-box h2 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.maintenance-box p {
  color: var(--text-sub);
  font-size: .92rem;
  line-height: 1.7;
}

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.5rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform .2s ease;
}

.search-overlay.open .search-box {
  transform: none;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
}

.search-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
}

.search-input-row input::placeholder {
  color: var(--text-sub);
}

.search-hint {
  font-size: .68rem;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .4rem;
}

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  padding: .25rem;
}

.search-close:hover {
  color: var(--text);
}

.search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: .5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease;
}

.search-result-item:hover {
  background: var(--input-bg);
}

.sr-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--cyan);
  flex-shrink: 0;
}

.sr-title {
  font-size: .88rem;
  font-weight: 500;
}

.sr-section {
  font-size: .72rem;
  color: var(--text-sub);
  margin-top: .1rem;
}

.search-empty {
  padding: 1.25rem;
  color: var(--text-muted);
  text-align: center;
  font-size: .85rem;
}

.search-footer {
  display: flex;
  gap: 1.25rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-shortcut {
  font-size: .7rem;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.search-shortcut kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .05rem .35rem;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-logo span {
  color: var(--cyan);
}

.logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 13px;
  height: 13px;
}

.logo-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.nav-center {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-center a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .15s ease;
  position: relative;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, border-color .15s ease;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: .4rem;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 0 1.25rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .25s ease, padding .25s ease, visibility 0s .25s;
}

.mobile-menu.open {
  max-height: 480px;
  padding: 1rem 1.25rem 1.5rem;
  visibility: visible;
  transition: max-height .25s ease, padding .25s ease, visibility 0s;
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .25rem;
  font-size: .88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-actions {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
}

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

#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, var(--cyan-glow), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  background: var(--surface);
  max-width: 100%;
}

.hero-discord-widget {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 1.75rem;
  transition: border-color .2s ease, transform .15s ease;
}

.hero-discord-widget:hover {
  border-color: #5865F2;
  transform: translateY(-1px);
}

.hero-discord-widget svg {
  color: #5865F2;
  flex-shrink: 0;
}

.hero-discord-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2.4s ease infinite;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .hero-discord-widget {
    font-size: .74rem;
    padding: .5rem 1rem;
    border-radius: var(--radius);
  }
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2.4s ease infinite;
  flex-shrink: 0;
  margin-top: .45em;
}

@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: .72rem;
    padding: .5rem 1rem;
    border-radius: var(--radius);
  }
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin-bottom: 1.5rem;
}

#hero h1 span {
  display: block;
}

.line-2 {
  color: var(--cyan);
  font-style: italic;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section headers ---------- */

.section-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  margin-bottom: .85rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: .9rem;
}

.section-sub {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 520px;
}

.text-center .section-sub {
  margin: 0 auto;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feat-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color .2s ease, transform .2s ease;
}

.feat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--badge-bg);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feat-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.feat-desc {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-big {
  flex: 1;
  min-width: 130px;
  text-align: center;
}

.stat-big .n {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--text);
}

.stat-big .n.accent {
  color: var(--cyan);
}

.stat-big .n.accent-green {
  color: var(--green);
}

.stat-big .l {
  font-size: .8rem;
  color: var(--text-sub);
  margin-top: .35rem;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.svc-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.svc-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.svc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem;
  color: var(--text-sub);
  margin-bottom: 1.4rem;
}

.svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--badge-bg);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.svc-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: .6rem;
}

.svc-desc {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* ---------- Partenaires ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.partner-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.partner-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow);
}

.partner-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--badge-bg);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.partner-desc {
  font-size: .86rem;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-btn {
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.empty-note {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 1.5rem;
}

/* ---------- Testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.testi-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.testi-stars {
  display: flex;
  gap: .25rem;
  margin-bottom: 1rem;
}

.testi-star {
  width: 13px;
  height: 13px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testi-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.testi-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-name {
  font-size: .86rem;
  font-weight: 600;
}

.testi-role {
  font-size: .74rem;
  color: var(--text-sub);
}

/* ---------- Devcenter Bot ---------- */

.bot-label-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: .3rem;
}

.bot-showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.bot-showcase-desc {
  color: var(--text-sub);
  font-size: .95rem;
  line-height: 1.75;
  margin-top: 1.1rem;
  max-width: 46ch;
}

.bot-showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0 1.75rem;
}

.bot-showcase-features span {
  font-size: .8rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  background: var(--surface);
  color: var(--text-sub);
}

.bot-showcase-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 3rem;
  border-left: 1px solid var(--border);
}

.bot-stat-value {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bot-stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

@media (max-width: 760px) {
  .bot-showcase {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .bot-showcase-stats {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    gap: 2.5rem;
  }
}

/* ---------- Effet 3D au survol (feat / svc / testi cards) ---------- */

.card-3d {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
}

.card-3d:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow);
}

.card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 60%);
}

.card-3d:hover::before {
  opacity: 1;
}

.card-3d>* {
  position: relative;
  z-index: 0;
}

.card-3d .feat-icon,
.card-3d .svc-icon-wrap,
.card-3d .testi-av,
.card-3d .partner-logo {
  transition: transform .25s ease;
  transform: translateZ(22px);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 2.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
}

.faq-icon {
  color: var(--text-sub);
  display: flex;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  font-size: .87rem;
  color: var(--text-sub);
  line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-a {
  max-height: 260px;
  padding: 0 1.4rem 1.3rem;
}

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

footer {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  background: var(--bg2);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .9rem;
}

.footer-brand .logo span {
  color: var(--cyan);
}

.footer-brand p {
  font-size: .84rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  gap: .6rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}

.social-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.footer-col h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col a {
  font-size: .85rem;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom p {
  font-size: .78rem;
  color: var(--text-sub);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  color: var(--text-sub);
}

.footer-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2.4s ease infinite;
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: .85rem;
  max-width: 340px;
  animation: fadeIn .25s ease;
}

.toast-icon {
  display: flex;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--green);
}

.toast.error .toast-icon {
  color: var(--red);
}

.toast.info .toast-icon {
  color: var(--cyan);
}

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

@media (max-width: 900px) {
  .nav-center {
    display: none;
  }

  .nav-right .btn-ghost,
  .nav-right .btn-primary {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .features-grid,
  .services-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {

  .features-grid,
  .services-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    justify-content: flex-start;
  }

  .stat-big {
    min-width: 45%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 4rem 0;
  }
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

.legal-hero .back-link:hover {
  color: var(--cyan);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: .6rem;
}

.legal-hero .legal-updated {
  color: var(--text-sub);
  font-size: .84rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: .9rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-sub);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--text-sub);
  font-size: .92rem;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: .4rem;
}

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

.legal-content a {
  color: var(--cyan);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--badge-bg);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}

.legal-note svg {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: .15rem;
}

.legal-note p {
  color: var(--text);
  font-size: .86rem;
  margin: 0;
  line-height: 1.65;
}

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

.credit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.4rem;
  background: var(--surface);
}

.credit-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .55rem;
  color: var(--text);
}

.credit-card p {
  color: var(--text-sub);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: .9rem;
}

.credit-card p:last-child {
  margin-bottom: 0;
}

.credit-reward {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-h);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--cyan);
}

.credit-reward svg {
  flex-shrink: 0;
}

.credit-warning {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.credit-warning svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ---------- Legal pages v2 (sommaire + cartes) ---------- */

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border-h);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
}

.legal-badge svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.legal-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
  margin: 2.25rem 0 3rem;
}

.legal-highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
}

.legal-highlight .legal-highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--cyan);
  margin-bottom: .7rem;
}

.legal-highlight h4 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
}

.legal-highlight p {
  font-size: .8rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-toc {
  position: sticky;
  top: 1.75rem;
}

.legal-toc-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sub);
  margin-bottom: .9rem;
  font-weight: 600;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
}

.legal-toc a {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--text-sub);
  line-height: 1.4;
  transition: color .15s ease, background .15s ease;
}

.legal-toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  color: var(--text-sub);
  opacity: .6;
  flex-shrink: 0;
}

.legal-toc a:hover {
  color: var(--text);
  background: var(--surface);
}

.legal-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.legal-section {
  scroll-margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.75rem 1.9rem;
  margin-bottom: 1.1rem;
}

.legal-section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.legal-section-num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  font-weight: 600;
}

.legal-section h2 {
  font-size: 1.1rem;
  margin: 0;
}

.legal-section p,
.legal-section ul {
  color: var(--text-sub);
  font-size: .92rem;
  line-height: 1.75;
}

.legal-section p {
  margin-bottom: .85rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 .85rem 1.2rem;
}

.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section li {
  margin-bottom: .4rem;
}

.legal-section li::marker {
  color: var(--cyan);
}

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

.legal-section a {
  color: var(--cyan);
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.1rem;
}

.legal-contact-card a.btn {
  font-size: .82rem;
}

@media (max-width: 860px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .legal-toc {
    position: static;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    background: var(--surface);
  }

  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .legal-toc a {
    padding: .35rem .65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .legal-toc a::before {
    display: none;
  }

  .legal-section {
    padding: 1.4rem 1.3rem;
  }
}
