/* AutoTube — F-3++ « Operator » — dark dominant / dense / futuriste warm */

@import url("tokens.css");

/* ============ LAYOUT BASE ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
  position: relative;
}

/* ============ GLOBAL OVERLAYS ============ */
/* Grain sitewide */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px;
}
/* Global grid background — discret mais présent */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============ NEWS TICKER ============ */
.news-ticker {
  border-bottom: 1px solid var(--color-line-2);
  background: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-paper);
  overflow: hidden;
  position: relative;
}
.news-ticker::before,
.news-ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.news-ticker::before { left: 0; background: linear-gradient(90deg, var(--color-ink), transparent); }
.news-ticker::after  { right: 0; background: linear-gradient(270deg, var(--color-ink), transparent); }
.news-ticker-track {
  display: flex;
  gap: var(--sp-8);
  padding-block: 12px;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
}
.news-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.news-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  flex-shrink: 0;
}
.news-cat.cat--ia       { background: rgba(233,69,96,0.15); color: var(--color-accent-light); border: 1px solid rgba(233,69,96,0.3); }
.news-cat.cat--robo     { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.news-cat.cat--quantum  { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Legacy ticker alias */
.top-ticker { display: none; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-ink) 70%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}
.nav { flex-wrap: wrap; }
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  line-height: 1;
}
.logo-img { height: 32px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-paper);
}
.logo-text span { color: var(--color-accent); }
.nav { display: flex; gap: var(--sp-4); align-items: center; }
.nav a:not(.nav-cta) {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-paper-80);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:not(.nav-cta):hover { color: var(--color-accent); }
.nav a.nav-login {
  padding: 9px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--color-line-2);
  background: var(--color-paper-10);
  color: var(--color-paper);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a.nav-login::before { content: "↗"; font-size: 12px; color: var(--color-amber); }
.nav a.nav-login:hover { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.nav a.nav-login:hover::before { color: var(--color-ink); }

.nav a.nav-cta {
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--color-accent);
  color: var(--color-paper);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nav a.nav-cta:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: var(--sh-accent); }

/* Language dropdown */
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--color-ink-3);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-md);
  padding: 4px;
  min-width: 140px;
  box-shadow: var(--sh-md);
  z-index: 100;
}
.lang-dropdown.show { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--color-paper-80);
  transition: background var(--dur-fast);
  text-decoration: none;
}
.lang-option:hover { background: var(--color-paper-10); color: var(--color-paper); }

/* ============ TYPO ============ */
.font-heading { font-family: var(--font-heading); font-weight: 700; letter-spacing: var(--tr-tight); line-height: var(--lh-tight); }
/* italic accent = Fraunces (plus éditorial que Nunito italic) */
h1 .italic, h2 .italic, h3 .italic, .italic { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 144; }
.kinetic-italic { font-family: var(--font-accent); font-style: italic; font-variation-settings: "opsz" 144, "wght" 400; transition: font-variation-settings 1.6s var(--ease-out); display: inline-block; }
.kinetic-italic.is-alive { font-variation-settings: "opsz" 144, "wght" 600; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-amber);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::before { content: "▎"; color: var(--color-amber); }

/* ============ LIVE CHIP ============ */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--color-paper-10);
  border: 1px solid var(--color-line-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper);
  margin-bottom: var(--sp-4);
  backdrop-filter: blur(8px);
}
.live-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-sage);
  box-shadow: 0 0 0 0 rgba(107, 142, 90, 0.7);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(107, 142, 90, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(107, 142, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 142, 90, 0); }
}

/* ============ HERO ============ */
.hero {
  padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.7;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 69, 96, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(18, 18, 31, 0.15) 0%, rgba(18, 18, 31, 0.55) 50%, rgba(18, 18, 31, 0.92) 100%);
}

.hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 3vw + 16px, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-paper);
  margin-top: var(--sp-4);
}
.hero h1 .italic { color: var(--color-accent); }
.section-head h2 .italic { color: var(--color-accent); }
.hero-lead {
  max-width: 580px;
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  color: var(--color-paper-80);
  margin-top: var(--sp-5);
}
.hero-cta {
  margin-top: var(--sp-7);
  display: inline-flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero compact variant */
.hero--compact { padding-block: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.hero--compact h1 { font-size: clamp(30px, 2.5vw + 14px, 52px); }
.hero-split {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: var(--sp-7);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: var(--sp-4); }
.hero-visual { position: relative; }
.hero-image-wrapper {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}
.hero-mockup {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--color-line-2);
}
.hero-floating-card {
  position: absolute;
  background: var(--color-ink-3);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: float 3s ease-in-out infinite;
  color: var(--color-paper);
  white-space: nowrap;
}
.hero-floating-card.card-1 {
  top: -16px;
  right: -24px;
}
.hero-floating-card.card-2 {
  bottom: 32px;
  left: -32px;
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-subscribe {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  max-width: 520px;
  width: 100%;
}
.hero-subscribe input {
  flex: 1;
  padding: 14px 20px;
  background: var(--color-paper-10);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-full);
  color: var(--color-paper);
  font-size: var(--fs-base);
}
.hero-subscribe input:focus { outline: none; border-color: var(--color-accent); }
.hero-subscribe input::placeholder { color: var(--color-paper-40); }
.newsletter-msg {
  margin-top: var(--sp-3);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  max-width: 520px;
}
.newsletter-msg--ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-sage);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.newsletter-msg--err {
  background: rgba(233, 69, 96, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(233, 69, 96, 0.3);
}
.hero-links {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--color-paper-60);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-links a { color: var(--color-paper-80); transition: color var(--dur-fast); }
.hero-links a:hover { color: var(--color-accent); }

/* Articles section */
.articles-section { padding-block: clamp(32px, 4vw, 56px); }
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
}
.articles-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-paper);
}
.btn--sm { padding: 10px 18px; font-size: var(--fs-xs); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.article-card {
  padding: var(--sp-4);
  background: var(--color-ink-3);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease-out);
}
.article-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,69,96,0.1);
}
.article-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-paper-40);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
}
.article-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--color-paper);
}
.article-excerpt {
  font-size: var(--fs-xs);
  color: var(--color-paper-60);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-read {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
}
.article-card:hover .article-read { text-decoration: underline; }

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  position: relative;
  z-index: 1;
}
.trust-item {
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
  background: rgba(18, 18, 31, 0.6);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
}
.trust-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-paper);
}
.trust-value .sfx { color: var(--color-accent); }
.trust-label {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  transition: all var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: var(--color-paper); font-weight: 700; box-shadow: var(--sh-accent); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--color-paper-10); color: var(--color-paper); border-color: var(--color-line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); transform: translateY(-2px); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ GLASS MOCK DASHBOARD (HERO RIGHT) ============ */
.dash {
  background: var(--color-glass-strong);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}
.dash::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244,239,230,0.12), transparent 50%, rgba(212,165,116,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-line);
}
.dash-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-title::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-sage);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-sage);
  animation: pulse-dot 2s infinite;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-paper-40); }
.dash-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.dash-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: var(--sp-2);
  align-items: center;
  padding: 8px 10px;
  background: var(--color-paper-10);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  min-width: 0;
  transition: all var(--dur-fast) var(--ease-out);
}
.dash-row > span { min-width: 0; }
.dash-row .label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row:hover { border-color: var(--color-amber); background: rgba(212,165,116,0.06); }
.dash-row .icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(224,122,95,0.2), rgba(212,165,116,0.15));
  border: 1px solid var(--color-line-2);
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--color-amber);
}
.dash-row .label { color: var(--color-paper); font-weight: 500; }
.dash-row .sub { display: block; color: var(--color-paper-60); font-size: var(--fs-xs); font-family: var(--font-mono); margin-top: 2px; }
.dash-row .metric { font-family: var(--font-mono); color: var(--color-amber); font-size: var(--fs-xs); }
.dash-row .status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
  box-shadow: 0 0 6px var(--color-sage);
}
.dash-row .status.warn { background: var(--color-amber); box-shadow: 0 0 6px var(--color-amber); }
.dash-row .status.off { background: var(--color-mute); box-shadow: none; }
.dash-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-paper-60);
  text-transform: uppercase;
  letter-spacing: var(--tr-wider);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line);
}

/* ============ SERVICES OVERVIEW (light bg) ============ */
.services-overview {
  background: var(--color-light-bg);
  padding-block: clamp(48px, 5vw, 80px);
  color: var(--color-light-ink);
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-8);
}
.eyebrow--dark { color: var(--color-accent) !important; }
.eyebrow--dark::before { color: var(--color-accent) !important; }
.section-title--dark {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  color: var(--color-light-ink);
  margin-top: var(--sp-3);
}
.section-desc--dark {
  font-size: var(--fs-lg);
  color: var(--color-light-mute);
  line-height: var(--lh-normal);
  margin-top: var(--sp-4);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--color-light-bg-2);
  border: 1px solid rgba(18, 18, 31, 0.08);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--color-light-ink);
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(233,69,96,0.1), 0 4px 12px rgba(0,0,0,0.06);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(233,69,96,0.08);
  display: grid; place-items: center;
  color: var(--color-accent);
  transition: background var(--dur-base) var(--ease-out);
}
.service-card:hover .service-icon { background: rgba(233,69,96,0.14); }
.service-icon--tools { background: rgba(59,130,246,0.08); color: #3B82F6; }
.service-card:hover .service-icon--tools { background: rgba(59,130,246,0.14); }
.service-icon--auto { background: rgba(240,165,0,0.08); color: var(--color-amber); }
.service-card:hover .service-icon--auto { background: rgba(240,165,0,0.14); }
.service-cat {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--color-light-ink);
}
.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-light-mute);
  line-height: var(--lh-normal);
  flex: 1;
}
.service-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--dur-fast) var(--ease-out);
}
.service-card:hover .service-link { gap: 10px; }

/* ============ CONTENT SPLIT ============ */
.content-split {
  padding-block: clamp(40px, 5vw, 72px);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.split-grid--reverse { direction: rtl; }
.split-grid--reverse > * { direction: ltr; }
.split-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.split-text h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  color: var(--color-paper);
}
.split-text h2 .italic { color: var(--color-accent); }
.split-lead {
  font-size: var(--fs-base);
  color: var(--color-paper-80);
  line-height: var(--lh-normal);
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block: var(--sp-2);
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--color-paper-80);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(233,69,96,0.12);
  border: 1.5px solid var(--color-accent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 5px;
  border-left: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(-45deg);
}
.split-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-lg);
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ============ ACTUALITES IA ============ */
.actu-section { padding-block: clamp(40px, 5vw, 80px); }
.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.actu-card {
  padding: var(--sp-5);
  background: var(--color-ink-3);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--dur-base) var(--ease-out);
}
.actu-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,69,96,0.1);
}
.actu-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  width: fit-content;
}
.actu-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--color-paper);
}
.actu-excerpt {
  font-size: var(--fs-sm);
  color: var(--color-paper-60);
  line-height: var(--lh-normal);
  flex: 1;
}
.actu-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-paper-40);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line);
}

/* ============ STATS RUBAN (legacy) ============ */
.stats {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stat {
  padding: var(--sp-5);
  background: rgba(18, 18, 31, 0.85);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-paper);
}
.stat-value .sfx { color: var(--color-amber); }
.stat-label {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  margin-top: var(--sp-2);
}

/* ============ SECTIONS ============ */
section { padding-block: clamp(40px, 5vw, 80px); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-4);
}
.section-head h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  color: var(--color-paper);
}
/* replaced above */
.section-head p {
  font-size: var(--fs-lg);
  color: var(--color-paper-80);
  max-width: 560px;
  line-height: var(--lh-normal);
}

/* ============ SHOWCASE IA EN ACTION ============ */
.showcase { padding-block: clamp(40px, 5vw, 80px); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.showcase-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  isolation: isolate;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  pointer-events: none;
  z-index: 3;
}
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(233,69,96,0.28);
}
.showcase-card:hover::after {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 24px rgba(233,69,96,0.18);
}
.showcase-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.showcase-card:hover img { transform: scale(1.05); }
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,31,0.35) 0%, rgba(18,18,31,0.7) 45%, rgba(18,18,31,0.95) 75%, rgba(18,18,31,0.99) 100%);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  justify-content: flex-end;
  transition: background var(--dur-base) var(--ease-out);
}
.showcase-card:hover .showcase-overlay {
  background: linear-gradient(180deg, rgba(18,18,31,0.5) 0%, rgba(18,18,31,0.8) 45%, rgba(18,18,31,0.97) 75%, rgba(18,18,31,1) 100%);
}
.showcase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-amber);
}
.showcase-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-paper);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
}
.showcase-lead {
  font-size: var(--fs-sm);
  color: var(--color-paper-80);
  line-height: var(--lh-normal);
}
.showcase-corner {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: 4px 8px;
  background: var(--color-glass-strong);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper);
  backdrop-filter: blur(10px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.showcase-corner::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-sage); box-shadow: 0 0 6px var(--color-sage); }

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

/* ============ MARKETPLACE OUTILS ============ */
.tools-intro {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-5);
  padding: 10px 16px;
  background: var(--color-glass);
  border: 1px solid var(--color-line);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  width: fit-content;
}
.tools-intro .live-count { color: var(--color-amber); font-weight: 600; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.tool-card {
  padding: var(--sp-4);
  background: var(--color-ink-3);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  background: #2B2B42;
  border-color: var(--color-amber);
  transform: translateY(-2px);
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.tool-card:hover::before { opacity: 1; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.tool-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(224,122,95,0.2), rgba(212,165,116,0.1));
  border: 1px solid var(--color-line-2);
  display: grid; place-items: center;
  color: var(--color-amber);
  font-size: 14px;
}
.tool-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  padding: 2px 6px;
  border: 1px solid var(--color-line);
  border-radius: 3px;
}
.tool-name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  color: var(--color-paper);
  font-weight: 700;
  line-height: 1.2;
}
.tool-desc { color: var(--color-paper-60); font-size: var(--fs-xs); line-height: var(--lh-normal); }
.tool-meta {
  display: flex;
  justify-content: space-between;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
}
.tool-meta .cost { color: var(--color-amber); }

/* ============ BENTO SERVICES ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-3);
}
.bento-card {
  grid-column: span 4;
  background: var(--color-ink-3);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 220px;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  pointer-events: none;
  z-index: 3;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(233,69,96,0.3);
}
.bento-card:hover::after {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 30px rgba(233,69,96,0.16);
}
.bento-card--img {
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Le gradient est appliqué directement sur chaque card via style inline,
     AVANT l'image, pour éviter les bugs de ::before z-index entre navigateurs. */
}
.bento-card--img .bento-title,
.bento-card--img .bento-lead,
.bento-card--img .bento-index,
.bento-card--img li { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85); }
.bento-card--glass { background: var(--color-ink-3); border-color: var(--color-line-2); }
.bento-card--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-paper);
  border-color: var(--color-accent-dark);
}
.bento-card--amber {
  background: linear-gradient(135deg, var(--color-amber) 0%, #B88A58 100%);
  color: var(--color-ink);
  border-color: #B88A58;
}
.bento-card--amber .bento-title,
.bento-card--amber .bento-lead { color: var(--color-ink); }
.bento-card--amber .bento-index { color: var(--color-ink); opacity: 0.7; }

.bento-card--lg { grid-column: span 8; }
.bento-card--md { grid-column: span 6; }
.bento-card--sm { grid-column: span 4; }

.bento-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
}
.bento-card--img .bento-index,
.bento-card--accent .bento-index { color: var(--color-paper-80); }
.bento-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  color: var(--color-paper);
}
.bento-card--img .bento-title { color: var(--color-paper); }
.bento-lead {
  font-size: var(--fs-sm);
  color: var(--color-paper-80);
  line-height: var(--lh-normal);
}
.bento-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; font-size: var(--fs-sm); }
.bento-card li { padding-left: 1.2em; position: relative; color: var(--color-paper-80); }
.bento-card li::before { content: "→"; position: absolute; left: 0; color: var(--color-amber); }
.bento-card--amber li { color: rgba(11, 9, 8, 0.85); }
.bento-card--amber li::before { color: var(--color-ink); }

.data-tag {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  padding: 4px 8px;
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-sm);
  background: var(--color-glass-strong);
  backdrop-filter: blur(8px);
}
.bento-card--amber .data-tag { color: var(--color-ink); background: rgba(11, 9, 8, 0.15); border-color: rgba(11, 9, 8, 0.3); }

/* ============ COMPARE AVANT/APRÈS ============ */
.compare-wrap {
  background: var(--color-ink-2);
  border: 1px solid var(--color-line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.compare-wrap::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(224,122,95,0.15), transparent 50%);
  pointer-events: none;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  position: relative;
}
.compare-card {
  background: var(--color-ink-3);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.compare-card .tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
}
.tag-before { color: var(--color-paper-60); }
.tag-after { color: var(--color-amber); }
.compare-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--color-paper);
  font-weight: 700;
}
.compare-metric {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--color-paper);
  margin-top: auto;
  font-weight: 800;
}
.compare-card--after .compare-metric { color: var(--color-amber); }

/* ============ FORMATIONS ============ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.formation-card {
  padding: var(--sp-5);
  background: var(--color-ink-3);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.formation-card:hover { border-color: var(--color-amber); transform: translateY(-2px); }
.formation-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
  opacity: 0.5;
}
.formation-kind {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-amber);
}
.formation-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  color: var(--color-paper);
}
.formation-desc { color: var(--color-paper-80); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.formation-meta {
  display: flex;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-paper-60);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
}

/* ============ CTA FINAL ============ */
.cta-block {
  background: var(--color-ink-2);
  border: 1px solid var(--color-line);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 80% 0%, rgba(212,165,116,0.2), transparent 55%);
  pointer-events: none;
}

/* ============ PAGES LÉGALES ============ */
.legal-page { padding-block: clamp(60px, 6vw, 96px) clamp(40px, 4vw, 64px); }
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-ink-2);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
}
.legal-wrap .eyebrow { margin-bottom: var(--sp-3); }
.legal-wrap h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-paper);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--color-line);
}
.legal-wrap h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-amber);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.legal-wrap p, .legal-wrap li {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-paper-80);
  margin-bottom: var(--sp-3);
}
.legal-wrap ul { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal-wrap li { margin-bottom: var(--sp-2); }
.legal-wrap a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap a:hover { color: var(--color-accent-light); }
.legal-meta {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
}

/* ============ ADMIN LAYOUT ============ */
.admin-topbar { background: var(--color-ink); border-bottom: 1px solid var(--color-line); padding-block: var(--sp-3); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); }
.admin-topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.admin-topbar .brand { display: flex; gap: var(--sp-3); align-items: center; }
.admin-topbar .brand .logo { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-xl); color: var(--color-paper); letter-spacing: -0.02em; }
.admin-topbar .brand .logo span { color: var(--color-accent); }
.admin-topbar .brand .badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-accent); padding: 4px 10px; background: rgba(233,69,96,0.12); border: 1px solid rgba(233,69,96,0.3); border-radius: var(--r-full); font-weight: 700; }
.admin-topbar .actions { display: flex; gap: var(--sp-3); align-items: center; }
.admin-topbar .search { padding: 8px 14px; background: var(--color-paper-10); border: 1px solid var(--color-line-2); border-radius: var(--r-full); color: var(--color-paper); font-size: var(--fs-sm); width: 260px; }
.admin-topbar .user { display: flex; gap: 10px; align-items: center; padding: 6px 12px; background: var(--color-paper-10); border: 1px solid var(--color-line-2); border-radius: var(--r-full); font-size: var(--fs-sm); }
.admin-topbar .user .ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-amber)); display: grid; place-items: center; font-weight: 800; color: var(--color-paper); font-size: 12px; }
.admin-topbar .user .n { color: var(--color-paper); font-weight: 500; }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-5); align-items: start; padding-block: var(--sp-5); }
.admin-sidebar { position: sticky; top: 76px; background: var(--color-ink-2); border: 1px solid var(--color-line); border-radius: var(--r-lg); padding: var(--sp-3); max-height: calc(100vh - 100px); overflow-y: auto; }
.admin-sidebar-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); padding: 8px 10px; margin-top: var(--sp-3); }
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-link { display: flex; align-items: center; gap: var(--sp-2); padding: 9px 12px; border-radius: var(--r-sm); color: var(--color-paper-80); font-size: var(--fs-sm); font-weight: 500; transition: all var(--dur-fast) var(--ease-out); }
.admin-nav-link:hover { background: var(--color-paper-10); color: var(--color-paper); }
.admin-nav-link.active { background: rgba(233,69,96,0.12); color: var(--color-accent); font-weight: 700; border-left: 2px solid var(--color-accent); padding-left: 10px; }
.admin-nav-link .badge-n { margin-left: auto; font-family: var(--font-mono); font-size: 9px; background: var(--color-accent); color: var(--color-paper); padding: 2px 6px; border-radius: var(--r-full); letter-spacing: var(--tr-wider); }
.admin-nav-link .ico { display: inline-grid; place-items: center; width: 18px; font-size: 13px; color: var(--color-amber); }
.admin-nav-link.active .ico { color: var(--color-accent); }

.admin-content { min-width: 0; }
.admin-page-head { display: flex; justify-content: space-between; align-items: start; gap: var(--sp-4); margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--color-line); }
.admin-page-head h1 { font-family: var(--font-heading); font-size: clamp(24px, 2vw + 8px, 32px); font-weight: 800; color: var(--color-paper); letter-spacing: var(--tr-tight); line-height: 1.1; }
.admin-page-head p { color: var(--color-paper-80); font-size: var(--fs-sm); margin-top: 6px; max-width: 640px; line-height: var(--lh-normal); }
.admin-page-head .crumb { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); margin-bottom: 8px; }
.admin-page-head .crumb a { color: var(--color-amber); }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.admin-kpi { padding: var(--sp-4); background: var(--color-ink-3); border: 1px solid var(--color-line); border-radius: var(--r-md); }
.admin-kpi .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.admin-kpi .val { font-family: var(--font-heading); font-size: var(--fs-2xl); font-weight: 800; color: var(--color-paper); margin-top: 4px; line-height: 1; }
.admin-kpi .delta { font-family: var(--font-mono); font-size: var(--fs-xs); margin-top: 6px; }
.admin-kpi .delta.up { color: var(--color-sage); }
.admin-kpi .delta.down { color: var(--color-accent); }

.admin-panel { padding: 0; background: var(--color-ink-3); border: 1px solid var(--color-line); border-radius: var(--r-lg); margin-bottom: var(--sp-4); overflow: hidden; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--color-line); gap: var(--sp-3); flex-wrap: wrap; }
.admin-panel-head h2 { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--color-paper); font-weight: 700; }
.admin-panel-head .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.admin-panel-body { padding: var(--sp-4) var(--sp-5); }
.admin-panel-body.no-pad { padding: 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.admin-table thead { background: var(--color-ink-2); }
.admin-table th { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); font-weight: 600; border-bottom: 1px solid var(--color-line); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); color: var(--color-paper-80); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .strong { color: var(--color-paper); font-weight: 500; }
.admin-table .mono { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-paper-60); }
.admin-table .actions-cell { display: flex; gap: 6px; }
.admin-table .actions-cell a { padding: 4px 10px; border-radius: var(--r-sm); background: var(--color-paper-10); border: 1px solid var(--color-line-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-80); transition: all var(--dur-fast) var(--ease-out); }
.admin-table .actions-cell a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.admin-table .actions-cell a.danger:hover { border-color: var(--color-accent); background: rgba(233,69,96,0.12); }

.admin-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-full); font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; font-weight: 600; }
.admin-status::before { content: "●"; font-size: 8px; }
.admin-status.ok { background: rgba(16,185,129,0.12); color: var(--color-sage); border: 1px solid rgba(16,185,129,0.3); }
.admin-status.warn { background: rgba(240,165,0,0.12); color: var(--color-amber); border: 1px solid rgba(240,165,0,0.3); }
.admin-status.ko { background: rgba(233,69,96,0.12); color: var(--color-accent); border: 1px solid rgba(233,69,96,0.3); }
.admin-status.off { background: var(--color-paper-10); color: var(--color-paper-60); border: 1px solid var(--color-line-2); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.admin-btn-small { padding: 8px 14px; border-radius: var(--r-md); background: var(--color-accent); color: var(--color-paper); font-size: var(--fs-xs); font-weight: 700; font-family: var(--font-mono); letter-spacing: var(--tr-wider); text-transform: uppercase; transition: all var(--dur-fast) var(--ease-out); display: inline-flex; gap: 6px; align-items: center; }
.admin-btn-small:hover { background: var(--color-accent-dark); }
.admin-btn-small.ghost { background: var(--color-paper-10); color: var(--color-paper); border: 1px solid var(--color-line-2); }
.admin-btn-small.ghost:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-paper-10); }

.admin-form .field { margin-bottom: var(--sp-3); display: flex; flex-direction: column; gap: 6px; }
.admin-form label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.admin-form input, .admin-form select, .admin-form textarea { padding: 11px 14px; background: var(--color-paper-10); border: 1px solid var(--color-line-2); border-radius: var(--r-md); color: var(--color-paper); font-family: inherit; font-size: var(--fs-sm); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--color-accent); }
.admin-form textarea { resize: vertical; min-height: 100px; }
.admin-form .field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.admin-form .field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: static; } .admin-kpis { grid-template-columns: repeat(2, 1fr); } .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .admin-topbar .search { display: none; } .admin-topbar .user .n { display: none; } }

/* ============ SIDEBAR OUTILS (partagée outils.html + pages/services/*) ============ */
.outils-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6); align-items: start; padding-block: clamp(16px, 2vw, 32px); }
.outils-sidebar { position: sticky; top: calc(var(--sp-6) + 60px); background: var(--color-ink-2); border: 1px solid var(--color-line); border-radius: var(--r-lg); padding: var(--sp-4); max-height: calc(100vh - 120px); overflow-y: auto; }
.outils-sidebar-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--sp-3); margin-bottom: var(--sp-3); border-bottom: 1px solid var(--color-line); }
.outils-sidebar-title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.outils-sidebar-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-amber); letter-spacing: var(--tr-wider); }
.sidebar-link { display: flex; align-items: center; gap: var(--sp-2); padding: 8px 10px; border-radius: var(--r-sm); color: var(--color-paper-80); font-size: var(--fs-sm); font-weight: 500; transition: all var(--dur-fast) var(--ease-out); margin-bottom: var(--sp-2); }
.sidebar-link:hover, .sidebar-link.active { background: rgba(233,69,96,0.1); color: var(--color-accent); }
.sidebar-section { margin-bottom: var(--sp-2); }
.sidebar-section-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: transparent; color: var(--color-paper); font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 700; text-align: left; border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease-out); cursor: pointer; }
.sidebar-section-toggle:hover { background: var(--color-paper-10); }
.sidebar-section-toggle .right { display: flex; align-items: center; gap: 8px; }
.sidebar-section-toggle .chevron { font-size: 10px; color: var(--color-paper-60); transition: transform var(--dur-base) var(--ease-out); }
.sidebar-section.open .chevron { transform: rotate(180deg); }
.sidebar-section-items { display: none; flex-direction: column; gap: 2px; padding-left: var(--sp-3); margin-top: var(--sp-2); }
.sidebar-section.open .sidebar-section-items { display: flex; }
.sidebar-item { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 6px 10px; border-radius: var(--r-sm); color: var(--color-paper-80); font-size: var(--fs-sm); transition: all var(--dur-fast) var(--ease-out); }
.sidebar-item:hover { background: var(--color-paper-10); color: var(--color-paper); }
.sidebar-item.hidden-tool { opacity: 0.45; }
.sidebar-item.hidden-tool:hover { opacity: 0.75; }
.admin-toggle { display: inline-flex; align-items: center; cursor: pointer; padding: 2px; border-radius: 4px; transition: background var(--dur-fast) var(--ease-out); }
.admin-toggle:hover { background: rgba(233,69,96,0.15); }
.admin-toggle input { display: none; }
.admin-toggle .eye-icon { font-size: 12px; color: var(--color-sage); transition: color var(--dur-fast) var(--ease-out); }
.admin-toggle input:not(:checked) ~ .eye-icon { color: var(--color-paper-40); text-decoration: line-through; }
.admin-toggle .eye-icon::before { content: "👁"; }
.admin-bar-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-amber); padding: 6px 10px; background: rgba(240,165,0,0.08); border: 1px dashed rgba(240,165,0,0.3); border-radius: var(--r-sm); margin-bottom: var(--sp-3); text-align: center; }

/* ============ PAGES OUTILS INDIVIDUELS ============ */
.tool-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-5); align-items: start; padding-block: clamp(16px, 2vw, 32px); }
.tool-content { min-width: 0; }

.tool-hero-card { padding: var(--sp-6); background: linear-gradient(160deg, rgba(233,69,96,0.12) 0%, var(--color-ink-3) 70%); border: 1px solid var(--color-line); border-radius: var(--r-lg); position: relative; overflow: hidden; margin-bottom: var(--sp-4); }
.tool-hero-card::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 90% 10%, rgba(233,69,96,0.15), transparent 50%); pointer-events: none; }
.tool-hero-card > * { position: relative; z-index: 1; }
.tool-hero-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.tool-hero-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(233,69,96,0.22), rgba(240,165,0,0.12)); border: 1px solid var(--color-line-2); display: grid; place-items: center; font-size: 24px; color: var(--color-amber); }
.tool-hero-meta { display: flex; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); align-items: center; }
.tool-hero-cat { color: var(--color-accent); font-weight: 700; }
.tool-hero-cost { color: var(--color-amber); padding: 4px 10px; background: rgba(240,165,0,0.1); border: 1px solid rgba(240,165,0,0.3); border-radius: var(--r-full); font-weight: 600; }
.tool-hero-card h1 { font-family: var(--font-heading); font-size: clamp(26px, 2vw + 12px, 38px); font-weight: 800; color: var(--color-paper); letter-spacing: var(--tr-tight); line-height: 1.1; margin-block: var(--sp-2); }
.tool-hero-card p { color: var(--color-paper-80); font-size: var(--fs-base); line-height: var(--lh-normal); max-width: 720px; }

.tool-panel { padding: var(--sp-5); background: var(--color-ink-3); border: 1px solid var(--color-line); border-radius: var(--r-lg); margin-bottom: var(--sp-4); }
.tool-panel h2 { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--color-paper); font-weight: 700; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--color-line); display: flex; justify-content: space-between; align-items: center; }
.tool-panel h2 .badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-amber); padding: 4px 8px; background: rgba(240,165,0,0.1); border-radius: var(--r-sm); font-weight: 500; }
.tool-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.tool-form .field { display: flex; flex-direction: column; gap: 6px; }
.tool-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.tool-form label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.tool-form input, .tool-form select, .tool-form textarea { padding: 12px 14px; background: var(--color-paper-10); border: 1px solid var(--color-line-2); border-radius: var(--r-md); color: var(--color-paper); font-family: inherit; font-size: var(--fs-base); transition: border-color var(--dur-fast) var(--ease-out); }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { outline: none; border-color: var(--color-accent); }
.tool-form textarea { resize: vertical; min-height: 120px; }
.tool-form input::placeholder, .tool-form textarea::placeholder { color: var(--color-paper-40); }
.tool-form .helper { font-size: var(--fs-xs); color: var(--color-paper-60); line-height: var(--lh-normal); }
.tool-submit-row { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-3); border-top: 1px solid var(--color-line); margin-top: var(--sp-3); }
.tool-submit-row .balance { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.tool-submit-row .balance strong { color: var(--color-amber); font-size: var(--fs-base); }

.tool-result { padding: var(--sp-5); background: var(--color-ink-2); border: 1px dashed var(--color-line-2); border-radius: var(--r-lg); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-3); }
.tool-result .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--color-paper-10); display: grid; place-items: center; font-size: 22px; color: var(--color-paper-60); }
.tool-result h3 { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--color-paper); font-weight: 700; }
.tool-result p { color: var(--color-paper-60); font-size: var(--fs-sm); max-width: 380px; line-height: var(--lh-normal); }

.tool-history { padding: var(--sp-5); background: var(--color-ink-3); border: 1px solid var(--color-line); border-radius: var(--r-lg); }
.tool-history h3 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-amber); margin-bottom: var(--sp-3); }
.tool-history .row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px dashed var(--color-line); align-items: center; font-size: var(--fs-sm); }
.tool-history .row:last-child { border-bottom: 0; }
.tool-history .name { color: var(--color-paper); font-weight: 500; }
.tool-history .date { color: var(--color-paper-60); font-family: var(--font-mono); font-size: var(--fs-xs); }
.tool-history .cost { color: var(--color-accent); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; }
.tool-history .empty { color: var(--color-paper-60); text-align: center; padding: var(--sp-4); font-size: var(--fs-sm); }

.tool-admin-bar { padding: 10px 14px; background: rgba(240,165,0,0.06); border: 1px dashed rgba(240,165,0,0.3); border-radius: var(--r-md); display: flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.tool-admin-bar .lbl { color: var(--color-amber); font-weight: 700; }
.tool-admin-bar label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tool-admin-bar .sep { width: 1px; height: 16px; background: var(--color-line-2); }

@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } .tool-form .field-row { grid-template-columns: 1fr; } }

/* ============ NEWSLETTER BLOCK ============ */
.newsletter-block {
  background: linear-gradient(160deg, var(--color-ink-2) 0%, var(--color-ink-3) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.newsletter-block::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 80% 20%, rgba(240,165,0,0.20), transparent 55%), radial-gradient(circle at 20% 90%, rgba(233,69,96,0.14), transparent 50%);
  pointer-events: none;
}
.newsletter-block > * { position: relative; z-index: 1; }
.newsletter-block .eyebrow { color: var(--color-amber); }
.newsletter-block h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-paper);
  line-height: 1.1;
  letter-spacing: var(--tr-tight);
  margin-top: var(--sp-3);
}
.newsletter-block h2 .italic { color: var(--color-amber); }
.newsletter-block p { color: var(--color-paper-80); font-size: var(--fs-base); line-height: var(--lh-normal); margin-top: var(--sp-3); max-width: 420px; }
.newsletter-block .meta { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--color-paper-60); }
.newsletter-block .meta span::before { content: "●"; color: var(--color-sage); margin-right: 6px; }

.newsletter-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.newsletter-input-row { display: flex; gap: var(--sp-2); }
.newsletter-input-row input {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-paper-10);
  border: 1px solid var(--color-line-2);
  border-radius: var(--r-full);
  color: var(--color-paper);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.newsletter-input-row input:focus { outline: none; border-color: var(--color-accent); }
.newsletter-input-row input::placeholder { color: var(--color-paper-40); }
.newsletter-form small { font-size: var(--fs-xs); color: var(--color-paper-60); line-height: var(--lh-normal); }
.newsletter-form small a { color: var(--color-accent); }

@media (max-width: 960px) {
  .newsletter-block { grid-template-columns: 1fr; }
}

/* Footer — petite newsletter compacte dans le footer */
.footer-newsletter { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--color-line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.footer-newsletter h5 { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; color: var(--color-paper); margin-bottom: 4px; }
.footer-newsletter p { color: var(--color-paper-60); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.footer-newsletter form { display: flex; gap: var(--sp-2); }
.footer-newsletter input { flex: 1; padding: 12px 16px; background: var(--color-paper-10); border: 1px solid var(--color-line-2); border-radius: var(--r-full); color: var(--color-paper); font-size: var(--fs-sm); }
.footer-newsletter input:focus { outline: none; border-color: var(--color-accent); }
@media (max-width: 720px) { .footer-newsletter { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-ink);
  border-top: 1px solid var(--color-line);
  padding-block: clamp(40px, 4vw, 64px) var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--color-paper-60);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { color: var(--color-paper-80); font-size: var(--fs-base); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--color-amber); }
.footer-brand {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 96px);
  line-height: 1;
  color: var(--color-paper);
  font-weight: 900;
}
.footer-brand span { color: var(--color-accent); }
.footer-bottom {
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  color: var(--color-paper-60);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  flex-wrap: wrap;
}

/* ============ ANIMATIONS ============ */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: baseline; }
/* Par défaut visibles — GSAP anime depuis 110% quand JS tourne. Si JS absent, restent visibles. */
.reveal-word > span { display: inline-block; will-change: transform; }
.js-loaded .reveal-word > span { transform: translateY(110%); }
/* fade-up : animation GSAP OPT-IN. Par défaut opacity 1 pour éviter les flashes blancs si JS échoue */
.fade-up { opacity: 1; transform: none; }
.js-loaded .fade-up { opacity: 0; transform: translateY(20px); }

.kinetic-italic {
  font-style: italic;
  font-weight: 700, "wght" 400;
  transition: font-variation-settings 1.6s var(--ease-out);
}
.kinetic-italic.is-alive { font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 500; }

.btn[data-magnetic] { transition: transform 240ms var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dash { max-width: 520px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-floating-card.card-1 { right: -12px; }
  .hero-floating-card.card-2 { left: -12px; }
}
@media (max-width: 860px) {
  .bento-card, .bento-card--lg, .bento-card--md, .bento-card--sm { grid-column: span 12; }
  .section-head { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; }
  .split-grid, .split-grid--reverse { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split-grid--reverse { direction: ltr; }
  .actu-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-header { flex-direction: column; gap: var(--sp-3); align-items: start; }
}
@media (max-width: 640px) {
  .nav { gap: var(--sp-3); }
  .nav a:not(.nav-cta):not(.nav-login) { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .hero h1 { font-size: clamp(28px, 6vw, 40px); }
  .services-grid { gap: var(--sp-3); }
}

/* ============ ADMIN DARK OVERRIDES ============ */
/* Force dark theme sur les pages admin copiees de la prod (theme clair) */
.admin-content { background: var(--color-ink) !important; color: var(--color-paper) !important; }
.admin-card, .admin-content .card { background: var(--color-ink-3) !important; color: var(--color-paper) !important; border: 1px solid var(--color-line-2); }
.admin-table th { background: var(--color-ink-2) !important; color: var(--color-paper-60) !important; border-color: var(--color-line) !important; }
.admin-table td { color: var(--color-paper-80) !important; border-color: var(--color-line) !important; }
.admin-table tr:hover { background: var(--color-ink-2) !important; }
.admin-header, .admin-title { color: var(--color-paper) !important; }
.admin-content h1, .admin-content h2, .admin-content h3 { color: var(--color-paper) !important; }
.admin-content p, .admin-content label, .admin-content span { color: var(--color-paper-80); }
.admin-content input[type="text"], .admin-content input[type="email"], .admin-content input[type="number"],
.admin-content input[type="password"], .admin-content input[type="url"], .admin-content input[type="date"],
.admin-content textarea, .admin-content select {
  background: var(--color-ink-2) !important; color: var(--color-paper) !important;
  border: 1px solid var(--color-line-2) !important; border-radius: var(--r-sm);
}
.admin-content input::placeholder { color: var(--color-paper-40) !important; }
.admin-content .btn, .admin-content button[type="submit"] { background: var(--color-accent); color: #fff; border: none; }
.admin-content .btn:hover, .admin-content button[type="submit"]:hover { background: var(--color-accent-dark); }
.admin-content a { color: var(--color-accent); }
.admin-content .badge, .admin-content .badge-active { border-radius: var(--r-sm); padding: 2px 8px; font-size: 0.75rem; }
.admin-content .badge-active { background: rgba(16,185,129,0.15) !important; color: var(--color-sage) !important; }
.admin-content .badge-inactive { background: rgba(233,69,96,0.15) !important; color: var(--color-accent) !important; }
.modal-content { background: var(--color-ink-3) !important; color: var(--color-paper) !important; border: 1px solid var(--color-line-2); }
.modal-header { border-color: var(--color-line) !important; }
.modal-close { color: var(--color-paper-60) !important; }
.admin-tabs { background: var(--color-ink-3) !important; }
.admin-tab { color: var(--color-paper-60) !important; }
.admin-tab:hover { color: var(--color-paper) !important; background: var(--color-ink-2) !important; }
.admin-tab.active { background: var(--color-accent) !important; color: #fff !important; }
.stat-mini, .stats-mini .stat-mini { background: var(--color-ink-3) !important; }
.stat-mini-value { color: var(--color-paper) !important; }
.stat-mini-label { color: var(--color-paper-60) !important; }
.btn-edit { background: var(--info) !important; }
.btn-delete, .btn-icon-delete { background: var(--color-accent) !important; color: #fff !important; }
.product-thumb { background: var(--color-ink-2) !important; }
#editPromoForm, .admin-content form { color: var(--color-paper); }
.admin-content .text-muted, .admin-content small { color: var(--color-paper-40) !important; }

/* ============ DARK OVERRIDES — pages legacy (copiées de la prod) ============ */
/* Ces pages utilisent des background:white, #f8f9fa etc. hardcodés dans leurs <style> blocs */

/* Conteneurs principaux */
.orders-container, .credits-container, .downloads-container,
.faq-container, .products-container, .success-container,
.profile-container, .formations-container,
.order-card, .credit-card, .download-card, .product-card,
.faq-card, .faq-item-card, .profile-card,
.empty-state, .empty-orders, .empty-downloads {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}

/* Titres et textes dans les pages legacy */
.orders-container h1, .orders-container h2, .orders-container h3,
.credits-container h1, .credits-container h2, .credits-container h3,
.downloads-container h1, .downloads-container h2, .downloads-container h3,
.faq-container h1, .faq-container h2, .faq-container h3,
.products-container h1, .products-container h2, .products-container h3,
.success-container h1, .success-container h2, .success-container h3,
.profile-container h1, .profile-container h2, .profile-container h3,
.formations-container h1, .formations-container h2, .formations-container h3 {
  color: var(--color-paper) !important;
}

/* Tables dans les pages legacy */
.orders-table, .credits-table, .downloads-table,
.orders-table th, .credits-table th, .downloads-table th,
.orders-table td, .credits-table td, .downloads-table td {
  background: var(--color-ink-2) !important;
  color: var(--color-paper-80) !important;
  border-color: var(--color-line) !important;
}
.orders-table th, .credits-table th, .downloads-table th {
  color: var(--color-paper-60) !important;
}

/* FAQ specifique — accordions et cards */
.faq-category, .faq-accordion, .faq-answer,
.faq-question, details.faq-q, .faq-section {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.faq-question, summary { color: var(--color-paper) !important; }
.faq-answer, .faq-q p, details.faq-q p { color: var(--color-paper-80) !important; }

/* Produits / catalogue */
.products-hero, .products-section, .product-filters,
.filter-btn, .product-grid, .products-empty {
  background: var(--color-ink) !important;
  color: var(--color-paper) !important;
}
.products-banner {
  background: var(--color-ink-2) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.filter-btn {
  background: var(--color-ink-3) !important;
  color: var(--color-paper-80) !important;
  border-color: var(--color-line) !important;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

/* Success page */
.success-card, .success-box, .payment-success {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.success-card h2, .success-box h2, .payment-success h2 { color: var(--color-paper) !important; }
.success-card p, .success-box p, .payment-success p { color: var(--color-paper-80) !important; }

/* Profile */
.profile-section, .profile-form, .password-section {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.profile-form input, .profile-form select, .password-section input {
  background: var(--color-ink-2) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}

/* Formations utilisateur */
.formation-card, .formation-progress, .module-list,
.module-item, .lesson-item {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}

/* Override générique — tout div/section/article avec fond blanc inline */
[style*="background: white"], [style*="background:#fff"],
[style*="background: #fff"], [style*="background-color: white"],
[style*="background-color:#fff"], [style*="background-color: #fff"] {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
}
[style*="background: #f8"], [style*="background:#f8"],
[style*="background: #f5"], [style*="background:#f5"],
[style*="background: #fee"], [style*="background: #fef"] {
  background: var(--color-ink-2) !important;
  color: var(--color-paper) !important;
}

/* Products page — bandeau + filtres + section */
.demo-banner, .demo-banner-content {
  background: var(--color-ink-2) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.demo-banner-text strong { color: var(--color-paper) !important; }
.demo-banner-text span { color: var(--color-paper-80) !important; }
.products-section {
  background: var(--color-ink) !important;
}
.category-filter-btn {
  background: var(--color-ink-3) !important;
  color: var(--color-paper-80) !important;
  border-color: var(--color-line) !important;
}
.category-filter-btn.active {
  background: var(--color-accent) !important;
  color: #fff !important;
}
.product-card {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
.product-card-price-section, .product-card h3, .product-card .product-card-desc {
  color: var(--color-paper) !important;
}

/* Success page — carte blanche */
.success-wrapper, .success-content {
  background: var(--color-ink-3) !important;
  color: var(--color-paper) !important;
}
.success-wrapper h2, .success-content h2 { color: var(--color-paper) !important; }
.success-wrapper p, .success-content p { color: var(--color-paper-80) !important; }

/* Boutons, badges, icônes dans les pages legacy */
.orders-container .btn, .credits-container .btn,
.downloads-container .btn, .faq-container .btn,
.products-container .btn, .success-container .btn,
.profile-container .btn, .formations-container .btn {
  color: #fff !important;
}
.order-status, .credit-type, .badge, .tag, .label,
.status-badge, .order-badge {
  color: #fff !important;
}
/* Sidebar FAQ — liens de catégories */
.faq-sidebar a, .faq-nav a, .faq-categories a,
.faq-sidebar .faq-cat, .faq-cat-link {
  color: var(--color-paper-80) !important;
}
.faq-sidebar a:hover, .faq-nav a:hover,
.faq-sidebar a.active, .faq-nav a.active {
  color: var(--color-accent) !important;
}
/* Inputs/selects dans les pages legacy */
.orders-container input, .orders-container select,
.downloads-container input, .downloads-container select,
.credits-container input, .credits-container select,
.faq-container input, .products-container input,
.products-container select {
  background: var(--color-ink-2) !important;
  color: var(--color-paper) !important;
  border-color: var(--color-line) !important;
}
/* Texte muted / descriptions */
.text-muted, .text-secondary, .order-date, .credit-date,
.download-date, .product-desc, .order-total, .empty-text {
  color: var(--color-paper-60) !important;
}
/* Séparateurs */
.orders-container hr, .credits-container hr,
.downloads-container hr, .faq-container hr {
  border-color: var(--color-line) !important;
}

/* Override texte sombre hardcodé */
[style*="color: #333"], [style*="color:#333"],
[style*="color: #444"], [style*="color:#444"],
[style*="color: #555"], [style*="color:#555"],
[style*="color: #666"], [style*="color:#666"],
[style*="color: #000"], [style*="color:#000"] {
  color: var(--color-paper-80) !important;
}
