/* ============================================================
   MatDev — Pages SEO Premium (motion + glass + depth)
   ============================================================ */

.seo-page {
  --seo-read-max: 68ch;
  --seo-section-gap: clamp(3rem, 6vw, 5rem);
  --seo-glass: rgba(12, 16, 36, 0.72);
  --seo-glass-border: rgba(255, 255, 255, 0.09);
  --seo-glow: rgba(232, 197, 71, 0.35);
  background: var(--bg-primary, #060912);
}

/* --- Ambiance globale --- */
.seo-page .noise-overlay {
  opacity: 0.045;
  pointer-events: none;
}

.seo-page .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent-gold, #e8c547), var(--accent-2, #20c7e8), var(--accent-gold, #e8c547));
  box-shadow: 0 0 16px var(--seo-glow);
  transition: width 0.12s linear;
}

.seo-page .header--seo {
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    backdrop-filter 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-page .header--seo.is-scrolled {
  background: rgba(6, 9, 18, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Hero SEO compact premium --- */
.seo-hero {
  position: relative;
  padding: calc(var(--header-height, 72px) + 1.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  min-height: auto;
  border-bottom: none;
}

.seo-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  max-width: 1120px;
}

@media (min-width: 960px) {
  .seo-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.seo-hero__mesh {
  opacity: 0.85;
}

.seo-hero__orbs .orb {
  animation-duration: 16s;
}

.seo-breadcrumb--hero {
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  max-width: 100%;
}

.seo-pricing-card__tier {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-1-light, #a78bfa);
}

.seo-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.5));
}

.seo-breadcrumb__item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.45;
}

.seo-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.seo-breadcrumb a:hover,
.seo-breadcrumb a:focus-visible {
  color: var(--accent-1-light, #a78bfa);
}

.seo-hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold, #e8c547);
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.1);
}

.seo-hero__published {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.48));
  letter-spacing: 0.01em;
}

.seo-hero__published time {
  font-variant-numeric: tabular-nums;
}

.seo-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2, #20c7e8);
  box-shadow: 0 0 12px rgba(32, 199, 232, 0.7);
}

.seo-hero__badge-pulse {
  position: absolute;
  left: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2, #20c7e8);
  animation: seoBadgePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes seoBadgePulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

.seo-hero__title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.125rem;
  max-width: 16ch;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.88) 45%, rgba(167, 139, 250, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-hero__intro {
  font-size: clamp(1.025rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
  max-width: var(--seo-read-max);
  margin: 0 0 1.75rem;
}

.seo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.seo-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.35s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.35s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-hero__highlights li:hover {
  border-color: rgba(118, 87, 255, 0.35);
  transform: translateY(-2px);
}

.seo-hero__check {
  color: var(--accent-2, #20c7e8);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero visual card */
.seo-hero__visual {
  display: none;
  justify-content: center;
  perspective: 900px;
}

@media (min-width: 960px) {
  .seo-hero__visual {
    display: flex;
  }
}

.seo-hero__orb-card {
  position: relative;
  width: min(100%, 320px);
  padding: 2rem 1.75rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--seo-glass-border);
  background: linear-gradient(145deg, rgba(118, 87, 255, 0.12) 0%, rgba(6, 9, 18, 0.85) 55%, rgba(32, 199, 232, 0.08) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  animation: seoCardFloat 8s ease-in-out infinite alternate;
}

@keyframes seoCardFloat {
  0% { transform: translateY(0) rotateX(2deg) rotateY(-3deg); }
  100% { transform: translateY(-10px) rotateX(-2deg) rotateY(3deg); }
}

.seo-hero__orb-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(118, 87, 255, 0.4), transparent, rgba(32, 199, 232, 0.35), transparent, rgba(118, 87, 255, 0.4));
  opacity: 0.35;
  filter: blur(12px);
  z-index: -1;
  animation: seoGlowSpin 12s linear infinite;
}

@keyframes seoGlowSpin {
  to { transform: rotate(360deg); }
}

.seo-hero__orb-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 16px rgba(118, 87, 255, 0.45));
}

.seo-hero__orb-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.seo-hero__orb-title span {
  color: var(--accent-1-light, #a78bfa);
}

.seo-hero__orb-sub {
  font-size: 0.8125rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  margin: 0 0 1.25rem;
}

.seo-hero__orb-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-hero__orb-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Meta / TOC --- */
.seo-updated {
  padding: 0.75rem 0 0;
  color: var(--text-subtle, rgba(255, 255, 255, 0.45));
}

.seo-toc-wrap {
  padding: 0.5rem 0 0;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.seo-toc {
  background: var(--seo-glass);
  border: 1px solid var(--seo-glass-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

@media (min-width: 768px) {
  .seo-toc {
    text-align: center;
  }

  .seo-toc__list {
    display: table;
    margin-inline: auto;
    text-align: left;
  }
}

.seo-toc:hover {
  border-color: rgba(118, 87, 255, 0.28);
  box-shadow: 0 16px 48px rgba(118, 87, 255, 0.12);
  transform: translateY(-2px);
}

.seo-toc__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--accent-1-light, #a78bfa);
}

.seo-toc__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.85;
}

.seo-toc__list a {
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.seo-toc__list a:hover,
.seo-toc__list a:focus-visible {
  color: #fff;
  padding-left: 0.15rem;
}

/* --- Sections --- */
.seo-section {
  position: relative;
  padding: var(--seo-section-gap) 0;
  overflow: hidden;
}

.seo-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.seo-section__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(118, 87, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 87, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 95%);
}

.seo-section[data-tone="0"] .seo-section__bg {
  background:
    radial-gradient(ellipse 70% 55% at 0% 20%, rgba(118, 87, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(32, 199, 232, 0.06) 0%, transparent 50%);
}

.seo-section[data-tone="1"] .seo-section__bg {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(32, 199, 232, 0.09) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 40%);
}

.seo-section[data-tone="2"] .seo-section__bg {
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(232, 197, 71, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 30%, rgba(118, 87, 255, 0.08) 0%, transparent 50%);
}

.seo-section[data-tone="3"] .seo-section__bg {
  background:
    linear-gradient(135deg, rgba(118, 87, 255, 0.05) 0%, transparent 50%),
    linear-gradient(315deg, rgba(32, 199, 232, 0.04) 0%, transparent 45%);
}

.seo-section__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.seo-section__header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.seo-section__label {
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}

.seo-section__title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem);
}

.seo-section__intro {
  max-width: var(--seo-read-max);
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
  margin: -0.5rem 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Prose --- */
.seo-prose {
  max-width: var(--seo-read-max);
  line-height: 1.78;
  color: var(--text-muted, rgba(255, 255, 255, 0.78));
  font-size: 1.025rem;
}

.seo-prose > * + * {
  margin-top: 1.125rem;
}

.seo-prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 1.75rem 0 0.5rem;
}

.seo-prose ul,
.seo-prose ol {
  padding-left: 1.35rem;
}

.seo-prose li {
  margin-top: 0.35rem;
}

.seo-prose a {
  color: var(--accent-1-light, #a78bfa);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.25s ease;
}

.seo-prose a:hover,
.seo-prose a:focus-visible {
  color: var(--accent-2, #20c7e8);
}

.seo-prose strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* --- Cards grid --- */
.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.125rem;
}

.seo-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--seo-glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  transition:
    transform 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.seo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(118, 87, 255, 0.35), transparent 50%, rgba(32, 199, 232, 0.2));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.seo-card:hover,
.seo-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(118, 87, 255, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(118, 87, 255, 0.08);
}

.seo-card:hover::before {
  opacity: 1;
}

.seo-card__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-2, #20c7e8);
  margin: 0 0 0.5rem;
}

.seo-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.seo-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

/* --- Benefits --- */
.seo-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.875rem;
}

.seo-benefits__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 0.4s ease,
    background 0.4s ease;
}

.seo-benefits__item:hover {
  transform: translateX(6px);
  border-color: rgba(118, 87, 255, 0.25);
  background: rgba(118, 87, 255, 0.06);
}

.seo-benefits__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(118, 87, 255, 0.25), rgba(32, 199, 232, 0.15));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(118, 87, 255, 0.2);
}

.seo-benefits__item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.seo-benefits__item p {
  margin: 0;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Process steps --- */
.seo-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.875rem;
  counter-reset: seo-step;
}

.seo-process__step {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  padding: 1.25rem 1.375rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.4s ease;
}

.seo-process__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.seo-process__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1, #7657ff), rgba(32, 199, 232, 0.8));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 6px 16px rgba(118, 87, 255, 0.35);
}

.seo-process__step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.025rem;
  font-weight: 600;
}

.seo-process__step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  line-height: 1.65;
}

/* --- Tables --- */
.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--seo-glass-border);
  background: var(--seo-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.seo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.seo-table__caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem 0.5rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.55));
  font-size: 0.875rem;
}

.seo-table th,
.seo-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  background: rgba(118, 87, 255, 0.1);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-table tbody tr {
  transition: background 0.25s ease;
}

.seo-table tbody tr:hover {
  background: rgba(118, 87, 255, 0.06);
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Callout --- */
.seo-callout {
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(118, 87, 255, 0.25);
  background: linear-gradient(135deg, rgba(118, 87, 255, 0.12) 0%, rgba(32, 199, 232, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.seo-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-1, #7657ff), var(--accent-2, #20c7e8));
  border-radius: 4px 0 0 4px;
}

.seo-callout__title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* --- Project cards --- */
.seo-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.seo-project-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--seo-glass-border);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.45s ease;
}

.seo-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.seo-project-card__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-project-card:hover .seo-project-card__img {
  transform: scale(1.04);
}

.seo-project-card__body {
  padding: 1.125rem 1.375rem 1.375rem;
}

.seo-project-card__meta {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-2, #20c7e8);
  margin: 0 0 0.4rem;
}

.seo-project-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.seo-project-card__desc {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

.seo-project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-1-light, #a78bfa);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.seo-project-card__link::after {
  content: '→';
  transition: transform 0.25s ease;
}

.seo-project-card__link:hover,
.seo-project-card__link:focus-visible {
  color: var(--accent-2, #20c7e8);
}

.seo-project-card__link:hover::after {
  transform: translateX(4px);
}

/* --- Related links --- */
.seo-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.seo-related a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted, rgba(255, 255, 255, 0.78));
  text-decoration: none;
  transition:
    transform 0.35s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 0.35s ease,
    color 0.35s ease;
}

.seo-related a::before {
  content: '→';
  color: var(--accent-1-light, #a78bfa);
  font-weight: 700;
  transition: transform 0.25s ease;
}

.seo-related a:hover,
.seo-related a:focus-visible {
  transform: translateX(6px);
  border-color: rgba(118, 87, 255, 0.28);
  color: #fff;
}

.seo-related a:hover::before {
  transform: translateX(3px);
}

/* --- Pricing --- */
.seo-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.125rem;
}

.seo-pricing-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--seo-glass-border);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.45s ease;
}

.seo-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.seo-pricing-card--featured {
  border-color: rgba(118, 87, 255, 0.4);
  background: linear-gradient(160deg, rgba(118, 87, 255, 0.14) 0%, rgba(6, 9, 18, 0.6) 100%);
  box-shadow: 0 0 0 1px rgba(118, 87, 255, 0.15), 0 16px 40px rgba(118, 87, 255, 0.12);
}

.seo-pricing-card__name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.0625rem;
}

.seo-pricing-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: var(--accent-2, #20c7e8);
  background: rgba(32, 199, 232, 0.12);
}

.seo-pricing-card__price {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  background: linear-gradient(135deg, #fff, var(--accent-1-light, #a78bfa));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-pricing-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

/* --- Before / After — comparaison scénario réel --- */
.seo-section--ba .seo-section__inner {
  max-width: 1100px;
}

.seo-before-after__scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 197, 71, 0.1) 0%, rgba(32, 199, 232, 0.06) 100%);
}

.seo-before-after__scenario-label {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #14100a;
  background: linear-gradient(135deg, #f3d96f, var(--accent-gold, #e8c547));
}

.seo-before-after__scenario-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  line-height: 1.45;
}

.seo-before-after__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.seo-before-after__metric {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.seo-before-after__metric-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle, #8b9cb0);
}

.seo-before-after__metric-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  line-height: 1.2;
}

.seo-before-after__metric-before {
  font-size: 0.95rem;
  color: #f87171;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.9;
}

.seo-before-after__metric-arrow {
  color: var(--accent-gold, #e8c547);
  font-size: 0.9rem;
}

.seo-before-after__metric-after {
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--accent-gold, #e8c547), var(--accent-2, #20c7e8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seo-before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.seo-before-after__col {
  position: relative;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.seo-before-after__col::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.seo-before-after__col--before::before {
  background: linear-gradient(90deg, #f87171, transparent 80%);
}

.seo-before-after__col--after::before {
  background: linear-gradient(90deg, var(--accent-gold, #e8c547), var(--accent-2, #20c7e8));
}

.seo-before-after__col:hover {
  transform: translateY(-4px);
}

.seo-before-after__col--before {
  background: linear-gradient(165deg, rgba(248, 113, 113, 0.06) 0%, rgba(255, 255, 255, 0.02) 55%);
  border-color: rgba(248, 113, 113, 0.22);
}

.seo-before-after__col--after {
  border-color: rgba(32, 199, 232, 0.35);
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.08) 0%, rgba(32, 199, 232, 0.1) 55%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 16px 40px rgba(32, 199, 232, 0.1);
}

.seo-before-after__col-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.seo-before-after__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-before-after__badge--before {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.seo-before-after__badge--after {
  color: #14100a;
  background: linear-gradient(135deg, #f3d96f, #20c7e8);
  border: 1px solid rgba(243, 217, 111, 0.5);
}

.seo-before-after__col h3 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-family: var(--font-display, Georgia, serif);
  color: var(--text-primary, #f8fafc);
  line-height: 1.3;
}

.seo-prose--ba ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-prose--ba li {
  position: relative;
  padding: 0.55rem 0.65rem 0.55rem 2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted, #94a3b8);
}

.seo-before-after__col--before .seo-prose--ba li::before {
  content: '×';
  position: absolute;
  left: 0.65rem;
  top: 0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.2);
}

.seo-before-after__col--after .seo-prose--ba li {
  color: var(--text-primary, #e8eef8);
  border-color: rgba(32, 199, 232, 0.12);
}

.seo-before-after__col--after .seo-prose--ba li::before {
  content: '✓';
  position: absolute;
  left: 0.65rem;
  top: 0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: #14100a;
  background: linear-gradient(135deg, #f3d96f, #20c7e8);
}

.seo-before-after__note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.55));
  font-style: italic;
}

/* --- FAQ --- */
.seo-section--faq .seo-section__inner {
  max-width: 820px;
}

.seo-faq {
  display: grid;
  gap: 0.75rem;
}

.seo-faq__item {
  border: 1px solid var(--seo-glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.seo-faq__item:hover {
  border-color: rgba(118, 87, 255, 0.22);
}

.seo-faq__item[open] {
  border-color: rgba(118, 87, 255, 0.35);
  box-shadow: 0 8px 24px rgba(118, 87, 255, 0.1);
  background: rgba(118, 87, 255, 0.05);
}

.seo-faq__question {
  padding: 1.125rem 1.375rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9875rem;
  list-style: none;
  transition: color 0.25s ease;
}

.seo-faq__question::-webkit-details-marker {
  display: none;
}

.seo-faq__question::after {
  content: "+";
  float: right;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(118, 87, 255, 0.15);
  color: var(--accent-1-light, #a78bfa);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)), background 0.35s ease;
}

.seo-faq__item[open] .seo-faq__question::after {
  content: "−";
  background: rgba(32, 199, 232, 0.2);
  color: var(--accent-2, #20c7e8);
  transform: rotate(180deg);
}

.seo-faq__answer {
  padding: 0 1.375rem 1.125rem;
  animation: seoFaqIn 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

@keyframes seoFaqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.seo-faq__answer p {
  margin: 0;
}

/* --- CTA final --- */
.seo-cta-final {
  position: relative;
  padding: var(--seo-section-gap) 0 calc(var(--seo-section-gap) * 0.75);
  overflow: hidden;
}

.seo-cta-final__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(118, 87, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(32, 199, 232, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.seo-cta-final__inner {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid rgba(118, 87, 255, 0.25);
  background: linear-gradient(145deg, rgba(118, 87, 255, 0.1) 0%, rgba(6, 9, 18, 0.85) 50%, rgba(32, 199, 232, 0.08) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.seo-cta-final__title {
  margin: 0 0 0.875rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.seo-cta-final__text {
  max-width: 52ch;
  margin: 0 auto 1.75rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
  font-size: 1.0625rem;
  line-height: 1.7;
}

.seo-author {
  padding-bottom: 2rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.4));
  text-align: center;
}

/* --- Back to top --- */
.seo-page .back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(118, 87, 255, 0.35);
  background: rgba(6, 9, 18, 0.88);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.seo-page .back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.seo-page .back-to-top:hover {
  box-shadow: 0 12px 32px rgba(118, 87, 255, 0.25);
  border-color: rgba(118, 87, 255, 0.55);
}

/* --- Footer SEO --- */
.footer--seo {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer--seo .footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
}

@media (min-width: 768px) {
  .footer--seo .footer__inner {
    grid-template-columns: 1.1fr 2fr;
  }

  .footer--seo .footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.nav-mobile__group {
  padding: 0.5rem 0;
}

.nav-mobile__group-label {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle, rgba(255, 255, 255, 0.5));
}

.nav-mobile__link--sub {
  padding-left: 2rem;
  font-size: 0.9375rem;
}

/* --- 404 --- */
.seo-page--404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.seo-page--404 .seo-404 {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.seo-404__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seo-page--404 .seo-404__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.seo-404__nav {
  margin-top: 2.5rem;
  text-align: left;
  max-width: 360px;
  margin-inline: auto;
}

.seo-404__nav h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.5));
}

/* --- Reveal animations (SEO pages) --- */
.seo-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.85s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    filter 0.85s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-page .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.seo-page .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.65s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-page .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.seo-page .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }

.seo-page .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.seo-page .section-label__line {
  width: 0;
  transition: width 0.9s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-page .is-visible .section-label__line,
.seo-page .reveal.is-visible .section-label__line {
  width: 32px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .seo-page .reveal,
  .seo-page .reveal-stagger > *,
  .seo-hero__orb-card,
  .seo-hero__orb-card-glow,
  .seo-hero__badge-pulse {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .seo-page .hero-animate {
    opacity: 1;
    animation: none;
  }

  .seo-card:hover,
  .seo-benefits__item:hover,
  .seo-process__step:hover,
  .seo-project-card:hover {
    transform: none;
  }
}

/* --- Hub toutes les pages (premium) --- */
.seo-page--hub .seo-hero--hub {
  padding: calc(var(--header-height, 72px) + 1rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-hero__inner--hub {
  display: block;
  max-width: 1180px;
  align-items: stretch;
}

.seo-hero__brand {
  color: var(--accent-gold, #e8c547);
}

.seo-hero--hub .seo-hero__actions {
  margin-top: 0.25rem;
}

.seo-hero__content--hub {
  max-width: 38rem;
}

.seo-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.seo-hub-stat {
  position: relative;
  padding: 1rem 0.85rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 36, 0.55);
  backdrop-filter: blur(12px);
  text-align: center;
  overflow: hidden;
}

.seo-hub-stat__value {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-1-light, #a78bfa) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seo-hub-stat__value--text {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.seo-hub-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.seo-hub-hero-card {
  display: none;
}

@media (min-width: 960px) {
  .seo-hub-hero-card {
    display: block;
    align-self: center;
  }
}

.seo-hub-hero-card__inner {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl, 20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(118, 87, 255, 0.12), rgba(32, 199, 232, 0.06));
  backdrop-filter: blur(16px);
  overflow: hidden;
  animation: seoHubFloat 7s ease-in-out infinite;
}

@keyframes seoHubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.seo-hub-hero-card__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(118, 87, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.seo-hub-hero-card__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2, #20c7e8);
}

.seo-hub-hero-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text-primary, #f8fafc);
}

.seo-hub-hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-hub-hero-card__tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}

.seo-hub {
  padding: clamp(2.5rem, 5vw, 4rem) 0 3.5rem;
}

.seo-hub__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.seo-hub__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1-light, #a78bfa);
}

.seo-hub__section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary, #f8fafc);
}

.seo-hub__section-desc {
  margin: 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.seo-hub__filters-wrap {
  margin-bottom: 1.75rem;
}

.seo-hub__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 36, 0.55);
  backdrop-filter: blur(12px);
}

.seo-hub__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.3s ease;
}

.seo-hub__filter img {
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.seo-hub__filter:hover,
.seo-hub__filter:focus-visible {
  color: var(--text-primary, #f8fafc);
  border-color: rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
  transform: translateY(-1px);
}

.seo-hub__filter.is-active {
  color: #14100a;
  border-color: rgba(232, 197, 71, 0.55);
  background: linear-gradient(135deg, #f3d96f, var(--accent-gold, #e8c547));
  box-shadow: 0 4px 16px rgba(232, 197, 71, 0.25);
}

.seo-hub__filter.is-active img {
  opacity: 1;
}

.seo-hub__filter.is-active .seo-hub__filter-count {
  background: rgba(20, 16, 10, 0.18);
  color: #14100a;
}

.seo-hub__filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
}

.seo-hub__filter-result {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.seo-hub__item.is-filtered-out {
  display: none;
}

.seo-hub__grid.is-filtering .seo-hub__item:not(.is-filtered-out) {
  animation: seoHubFilterIn 0.4s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@keyframes seoHubFilterIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.seo-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.35rem;
}

/* Toujours visibles — pas de reveal-stagger sur toute la grille (trop haute → opacity 0 bloquée) */
.seo-hub__item {
  --hub-i: 0;
  opacity: 1;
  transform: none;
}

.seo-hub__item.is-filtered-out {
  display: none;
}

@keyframes seoHubCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seo-page--hub .seo-hub__item {
  animation: seoHubCardIn 0.45s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1)) both;
  animation-delay: calc(min(var(--hub-i), 12) * 40ms);
}

@media (prefers-reduced-motion: reduce) {
  .seo-page--hub .seo-hub__item {
    animation: none;
  }
}

.seo-hub__card {
  --hub-accent: var(--accent-1, #7657ff);
  --hub-accent-glow: rgba(118, 87, 255, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 220px;
  padding: 1.35rem 1.4rem 1.15rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(18, 24, 48, 0.92), rgba(10, 14, 30, 0.88));
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
  will-change: transform;
}

/* Carte avec bannière — image pleine largeur en haut */
.seo-hub__card--banner {
  padding: 0;
  gap: 0;
  min-height: 0;
}

.seo-hub__card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(18, 24, 48, 0.95), rgba(10, 14, 30, 0.9));
}

.seo-hub__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.55s var(--ease-emphasized, cubic-bezier(0.16, 1, 0.3, 1));
}

.seo-hub__card--banner:hover .seo-hub__card-media img,
.seo-hub__card--banner:focus-visible .seo-hub__card-media img {
  transform: scale(1.05);
}

.seo-hub__card-media-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(
    to top,
    rgba(10, 14, 30, 0.98) 0%,
    rgba(10, 14, 30, 0.72) 38%,
    transparent 100%
  );
  pointer-events: none;
}

.seo-hub__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -24px 48px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.seo-hub__card-tag--overlay {
  position: absolute;
  z-index: 2;
  left: 0.85rem;
  bottom: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.seo-hub__card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 1rem 1.25rem 1.15rem;
  margin-top: -0.35rem;
}

.seo-hub__card--banner .seo-hub__card-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.seo-hub__card--banner .seo-hub__card-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-hub__card--banner .seo-hub__card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.seo-hub__card--banner .seo-hub__card-glow {
  inset: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, var(--hub-accent-glow), transparent 70%);
  opacity: 0.35;
}

.seo-hub__card--banner:hover .seo-hub__card-glow,
.seo-hub__card--banner:focus-visible .seo-hub__card-glow {
  opacity: 0.65;
}

.seo-hub__card[data-tone="gold"] {
  --hub-accent: #e8c547;
  --hub-accent-glow: rgba(232, 197, 71, 0.3);
}

.seo-hub__card[data-tone="cyan"] {
  --hub-accent: #20c7e8;
  --hub-accent-glow: rgba(32, 199, 232, 0.32);
}

.seo-hub__card[data-tone="indigo"] {
  --hub-accent: #6366f1;
  --hub-accent-glow: rgba(99, 102, 241, 0.32);
}

.seo-hub__card[data-tone="teal"] {
  --hub-accent: #2dd4bf;
  --hub-accent-glow: rgba(45, 212, 191, 0.3);
}

.seo-hub__card[data-tone="purple"] {
  --hub-accent: #a855f7;
  --hub-accent-glow: rgba(168, 85, 247, 0.32);
}

.seo-hub__card[data-tone="violet"] {
  --hub-accent: #8b5cf6;
  --hub-accent-glow: rgba(139, 92, 246, 0.32);
}

.seo-hub__card-glow {
  position: absolute;
  inset: -50% -30% auto;
  height: 120%;
  background: radial-gradient(ellipse at 50% 0%, var(--hub-accent-glow), transparent 65%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.seo-hub__card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.seo-hub__card:hover .seo-hub__card-shine,
.seo-hub__card:focus-visible .seo-hub__card-shine {
  transform: translateX(120%);
}

.seo-hub__card:hover,
.seo-hub__card:focus-visible {
  border-color: color-mix(in srgb, var(--hub-accent) 45%, transparent);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px var(--hub-accent-glow);
}

.seo-hub__card:hover .seo-hub__card-glow,
.seo-hub__card:focus-visible .seo-hub__card-glow {
  opacity: 1;
}

.seo-hub__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.seo-hub__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.seo-hub__card-icon img {
  opacity: 0.9;
  filter: drop-shadow(0 0 8px var(--hub-accent-glow));
}

.seo-hub__card:hover .seo-hub__card-icon,
.seo-hub__card:focus-visible .seo-hub__card-icon {
  transform: scale(1.06);
  border-color: color-mix(in srgb, var(--hub-accent) 40%, transparent);
  box-shadow: 0 0 20px var(--hub-accent-glow);
}

.seo-hub__card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 35%, transparent);
  background: color-mix(in srgb, var(--hub-accent) 12%, transparent);
  color: color-mix(in srgb, var(--hub-accent) 85%, #fff);
}

.seo-hub__card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, inherit);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary, #f8fafc);
}

.seo-hub__card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted, #94a3b8);
  flex: 1;
}

.seo-hub__card-date {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-subtle, rgba(255, 255, 255, 0.42));
  letter-spacing: 0.02em;
}

.seo-hub__card-footer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hub-accent);
  transition: gap 0.3s ease;
}

.seo-hub__card:hover .seo-hub__card-footer,
.seo-hub__card:focus-visible .seo-hub__card-footer {
  gap: 0.65rem;
}

.seo-hub__card-footer img {
  transition: transform 0.3s ease;
}

.seo-hub__card:hover .seo-hub__card-footer img,
.seo-hub__card:focus-visible .seo-hub__card-footer img {
  transform: translateX(3px);
}

.seo-hub__empty {
  text-align: center;
  color: var(--text-muted, #94a3b8);
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
}

.seo-hub__empty-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.nav-link--hub {
  color: var(--accent-1-light, #a78bfa);
}

.nav-link--login {
  color: var(--accent-2, #20c7e8);
}

.nav-link--account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 640px) {
  .seo-hub-stats {
    grid-template-columns: 1fr;
  }

  .seo-hub__card {
    min-height: 0;
  }

  .seo-hub__card-body {
    padding: 0.9rem 1rem 1rem;
  }

  .seo-hub__card-tag--overlay {
    left: 0.65rem;
    bottom: 0.6rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-hub-hero-card__inner {
    animation: none;
  }

  .seo-hub__card-shine {
    display: none;
  }
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .header--seo .header__nav {
    display: none;
  }

  .seo-hero__title {
    max-width: none;
  }

  .seo-hero__orb-card {
    animation: none;
  }

  .seo-section__title {
    font-size: 1.375rem;
  }

  .seo-table {
    min-width: 480px;
    font-size: 0.875rem;
  }

  .seo-page .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 430px) {
  .seo-hero__actions {
    flex-direction: column;
  }

  .seo-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .seo-hero__highlights {
    flex-direction: column;
  }
}
