/* ============================================================
   /seo/ — Hub d'articles.
   Réutilise INTÉGRALEMENT le système du site (styles.css + fx2/below.css) :
   tokens (--ink / --accent / --font-serif), recette .glass-card,
   .kicker, .section-title serif + <em> dégradé, .hero-cta, .footer,
   .reveal (révélés au scroll), .grain + .section-fx/.blob (ambiance).
   Ce fichier n'ajoute QUE ce qui est propre au hub :
   le hero éditorial, la barre de filtres et la grille d'articles.
   ============================================================ */

/* Fond solide du site ; la texture vient de .seo-bg (motif diagonal animé) */
body.seo-body {
  min-height: 100vh;
  background: var(--bg);
}

/* below.css ne clippe que l'axe X : les halos .blob (position absolue, décalés
   en négatif) rallongeaient la page sous le footer. On clippe aussi en Y. */
body.seo-body .below-wrap { overflow: clip; }

/* En-tête solide (aucun film derrière la nav sur cette page) + ancrage propre */
body.seo-body .nav {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.seo-body section[id],
body.seo-body header[id] { scroll-margin-top: 108px; }

/* ---------- Motif diagonal animé (rayures « tirées » + dérive lente) ----------
   Couche fixe plein écran, sur-dimensionnée et légèrement pivotée en boucle :
   les rayures dérivent comme une matière vivante derrière l'interface.
   Gris d'origine re-teintés vers le navy du site pour rester cohérent. */
.seo-bg {
  position: fixed;
  left: -30%;
  top: -30%;
  width: 160%;
  height: 160%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    135deg,
    #080d17 0px,
    #080d17 60px,
    rgba(28, 42, 70, 0.55) 70px,
    #111a2e 130px
  );
  animation: seo-bg-drift 18s linear infinite alternate;
  will-change: transform;
}
/* voile pour fondre le motif dans le noir sur les bords (pas d'arête nette) */
.seo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 35%, rgba(4, 6, 12, 0.85) 100%);
}
@keyframes seo-bg-drift {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to   { transform: translateY(-12%) scale(1.04) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .seo-bg { animation: none; }
}

/* ============================================================
   HERO DU HUB — éditorial, centré (esprit .bl-lead du site)
   ============================================================ */
.seo-hero {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 226px 8vw 96px;
  text-align: center;
}
.seo-hero .kicker { margin-bottom: 26px; }
.seo-hero .section-title {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}
.seo-hero .sub { margin: 32px auto 0; max-width: 640px; }

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 42px;
}
/* bouton secondaire accordé au .hero-cta blanc du site */
.seo-ghost {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
/* harmonise les boutons du site à une taille compacte dans ce contexte */
.seo-actions .hero-cta,
.seo-actions .seo-ghost {
  margin-top: 0;
}
.seo-actions .hero-cta { padding: 13px 28px; font-size: 0.94rem; }
.seo-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(150, 190, 255, 0.5);
  transform: translateY(-2px);
}

/* mini-preuves sous le hero */
.seo-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.seo-proof span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ============================================================
   BARRE DE FILTRES
   ============================================================ */
.seo-library {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  /* surcharge le très grand padding de .bl-sec pour resserrer vers le bas de page */
  padding: 160px 8vw 56px;
}
.seo-library .bl-head { margin-bottom: 40px; }

.seo-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.seo-filters-head .l {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.seo-count { font-size: 0.95rem; color: var(--ink-dim); }

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.seo-chip {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.seo-chip:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.seo-chip.active {
  color: #06080f;
  font-weight: 600;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(96, 150, 255, 0.35);
}

/* ============================================================
   CARROUSEL EN ARC 3D (mécanique « roue » — re-skinné au site)
   Chaque carte partage le même transform-origin (un pivot loin
   sous les cartes) puis pivote de (i - actif) * angleStep degrés :
   elles s'éventaillent autour d'un même cercle. La carte centrale
   est droite (rotation 0) et pleinement éclairée, les voisines
   s'inclinent et s'assombrissent.
   ============================================================ */
.seo-stagewrap {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  --seo-card-w: 268px;
  --seo-card-h: 348px;
  --seo-radius: 940px;   /* distance au centre du cercle */
}
.seo-stage {
  position: relative;
  height: 600px;
  margin: 36px 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 2200px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  touch-action: pan-y;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.seo-stage.grabbing { cursor: grabbing; }

.seo-track {
  position: absolute;
  top: 96px;
  width: var(--seo-card-w);
  height: var(--seo-card-h);
  transform-style: preserve-3d;
}

/* Carte = recette de verre profond des cartes du film (chapitres I·II·III·IV) :
   halo bleu radial en haut + dégradé directionnel vers le bleu-nuit + liseré. */
.seo-arc-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 165, 255, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(6, 12, 26, 0.4));
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: 50% var(--seo-radius);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.8s ease, opacity 0.8s ease, scale 0.8s ease, box-shadow 0.8s ease;
  filter: brightness(0.62) saturate(0.9);
  scale: 0.82;
  opacity: 0.82;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 26px;
  text-decoration: none;
  color: var(--ink);
}
.seo-arc-card[hidden] { display: none; }
/* liseré de lumière sur l'arête supérieure */
.seo-arc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, 0.55), transparent);
  opacity: 0.6;
}
.seo-arc-card .a-badge {
  align-self: flex-start;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfe0ff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(106, 165, 255, 0.12);
  border: 1px solid rgba(106, 165, 255, 0.28);
}
.seo-arc-card h3 {
  margin: 0;
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-weight: 400;
  font-size: 1.58rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
}
.seo-arc-card .a-go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.25s ease;
}
.seo-arc-card .a-go span { transition: transform 0.25s; }

/* Carte centrale : droite, illuminée en bleu (état .is-active des cartes du film) */
.seo-arc-card.active {
  filter: none;
  scale: 1.08;
  opacity: 1;
  z-index: 10;
  border-color: rgba(106, 165, 255, 0.45);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(106, 165, 255, 0.20), transparent 62%),
    linear-gradient(165deg, rgba(106, 165, 255, 0.10), rgba(255, 255, 255, 0.02) 60%, rgba(6, 12, 26, 0.45));
  box-shadow:
    0 50px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(106, 165, 255, 0.25),
    0 0 70px -14px rgba(56, 160, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.seo-arc-card.active::before { opacity: 1; }
.seo-arc-card.active .a-go { opacity: 1; }
.seo-arc-card.active:hover .a-go span { transform: translateX(5px); }

/* Commandes (précédent / suivant) — accordées au site */
.seo-stage-nav {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.seo-stage-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, opacity 0.25s;
}
.seo-stage-nav button:hover {
  background: rgba(106, 165, 255, 0.16);
  border-color: rgba(150, 190, 255, 0.6);
  transform: translateY(-2px);
}
.seo-stage-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.seo-stage-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  flex-wrap: wrap;
  justify-content: center;
}
.seo-stage-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.seo-stage-dots button.on {
  width: 26px;
  background: var(--accent);
}

/* état vide (aucun article pour un filtre) */
.seo-empty[hidden] { display: none; }
.seo-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--ink-dim);
}

/* ============================================================
   BANDE CTA bas de page (panneau glass du site)
   ============================================================ */
.seo-cta-band {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 130px auto 40px;
  padding: 0 8vw;
}
.seo-cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 74px 8vw;
  border-radius: 26px;
  border: 1px solid rgba(106, 165, 255, 0.28);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(106, 165, 255, 0.18), transparent 60%),
    linear-gradient(165deg, rgba(106, 165, 255, 0.08), rgba(255, 255, 255, 0.02) 58%, rgba(6, 12, 26, 0.5));
  box-shadow:
    0 50px 120px -44px rgba(0, 0, 0, 0.9),
    0 0 70px -22px rgba(56, 160, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.seo-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, 0.6), transparent);
}
.seo-cta-inner .section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.seo-cta-inner .sub { margin: 22px auto 0; max-width: 560px; }
.seo-cta-inner .seo-actions { margin-top: 36px; }
/* deux boutons strictement identiques en taille dans la carte contact */
.seo-cta-inner .seo-actions .hero-cta {
  padding: 13px 26px;
  font-size: 0.92rem;
  line-height: 1;
}
.seo-cta-inner .seo-actions .seo-ghost {
  padding: 10px 18px;
  font-size: 0.84rem;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .seo-hero { padding: 150px 26px 72px; }
  .seo-library { padding: 0 26px; }
  .seo-stagewrap {
    --seo-card-w: 230px;
    --seo-card-h: 312px;
    --seo-radius: 760px;
  }
  .seo-stage { height: 470px; }
  .seo-cta-band { margin-top: 90px; padding: 0 26px; }
  .seo-cta-inner { padding: 52px 28px; }
}
