
/*
Theme Name: Revenu Alpha Noir Violet V4
Theme URI: https://revenualpha.com
Author: ChatGPT
Description: Thème sombre noir/violet pour Revenu Alpha, avec slider d’articles, page Formations publique et formation Produits digitaux cinématographique.
Version: 4.0
Text Domain: revenu-alpha-dark-v4
*/

:root {
  --ra-bg: #020617;
  --ra-bg-soft: #050816;
  --ra-bg-alt: #0B1120;
  --ra-primary: #7C3AED;
  --ra-primary-soft: #A855F7;
  --ra-primary-dark: #4C1D95;
  --ra-accent: #F97316;
  --ra-text: #F9FAFB;
  --ra-text-muted: #94A3B8;
  --ra-card: #020617;
  --ra-border: rgba(148, 163, 184, 0.35);
  --ra-radius-lg: 22px;
  --ra-radius-md: 16px;
  --ra-shadow-soft: 0 26px 60px rgba(15, 23, 42, 0.9);
  --ra-shadow-sm: 0 18px 40px rgba(15, 23, 42, 0.7);
  --ra-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--ra-font-sans);
  color: var(--ra-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(circle at 90% 0%, rgba(56,189,248,0.18), transparent 60%),
    linear-gradient(#020617, #020617 45%, #000000 100%);
  min-height: 100vh;
}

a {
  color: var(--ra-primary-soft);
  text-decoration: none;
}
a:hover {
  color: var(--ra-accent);
}

/* Header */

.ra-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(90deg, rgba(2,6,23,0.95), rgba(15,23,42,0.96));
  border-bottom: 1px solid rgba(148,163,184,0.22);
}

.ra-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ra-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ra-text);
  font-size: 14px;
}

.ra-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: conic-gradient(from 210deg, #0f172a, #4c1d95, #7c3aed, #ec4899, #f97316, #0f172a);
  box-shadow: 0 0 26px rgba(236, 72, 153, 0.9);
}

.ra-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.ra-nav a {
  color: var(--ra-text-muted);
  font-weight: 500;
}
.ra-nav a:hover,
.ra-nav a.ra-nav-active {
  color: var(--ra-text);
}

.ra-cta-header {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.7);
  background: radial-gradient(circle at 0 0, rgba(236,72,153,0.25), rgba(124,58,237,0.9));
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(124,58,237,0.8);
}
.ra-cta-header span {
  font-size: 11px;
  opacity: .9;
}
.ra-cta-header:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 24px 52px rgba(236,72,153,1);
}

/* Layout */

.ra-main {
  max-width: 1160px;
  margin: 32px auto 60px;
  padding: 0 20px 40px;
}

/* Cards & generic */

.ra-card {
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.18), rgba(15,23,42,0.98));
  border-radius: var(--ra-radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--ra-shadow-soft);
}

/* HOME (front page) */

.ra-home-hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.2fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 36px;
}

.ra-home-hero-left {
  padding: 26px 26px 24px;
}

.ra-hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ra-text-muted);
}

.ra-home-title {
  font-size: 32px;
  margin: 8px 0 4px;
}
.ra-home-title span {
  background: linear-gradient(120deg, #f97316, #ec4899, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.ra-home-sub {
  font-size: 15px;
  color: var(--ra-text-muted);
  margin-bottom: 16px;
}

.ra-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ra-text-muted);
  margin-bottom: 18px;
}
.ra-meta-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(55,65,81,0.9);
}

.ra-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ra-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, var(--ra-accent), var(--ra-primary));
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 18px 38px rgba(236,72,153,0.7);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ra-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 26px 48px rgba(236,72,153,0.9);
}

.ra-btn-ghost {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.6);
  color: var(--ra-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.ra-home-hero-right {
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

/* Article slider */

.ra-slider-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ra-text-muted);
  margin-bottom: 6px;
}

.ra-article-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.ra-article-slider::-webkit-scrollbar {
  height: 6px;
}
.ra-article-slider::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.5);
  border-radius: 999px;
}

.ra-article-slide {
  min-width: 240px;
  max-width: 260px;
  scroll-snap-align: start;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
  border-radius: var(--ra-radius-md);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 10px 10px 12px;
}

.ra-slide-thumb {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
}

.ra-slide-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ra-text-muted);
}
.ra-slide-title {
  font-size: 14px;
  margin: 4px 0 4px;
}
.ra-slide-meta {
  font-size: 11px;
  color: var(--ra-text-muted);
}

/* Section titles */

.ra-section {
  margin-top: 40px;
}

.ra-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.ra-section-header h2 {
  margin: 0;
  font-size: 20px;
}
.ra-section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--ra-text-muted);
}

/* Formation grid on home */

.ra-home-formation-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 18px;
}
.ra-home-formation-main {
  padding: 20px 22px 18px;
}
.ra-formation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.16);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ra-text-muted);
}
.ra-formation-title {
  font-size: 22px;
  margin: 10px 0 4px;
}
.ra-formation-sub {
  font-size: 14px;
  color: var(--ra-text-muted);
  margin-bottom: 12px;
}
.ra-home-formation-side {
  padding: 16px 16px 14px;
  font-size: 13px;
}
.ra-side-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ra-text-muted);
}

/* Articles grid on home */

.ra-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 16px;
}
.ra-article-card {
  background: radial-gradient(circle at 0 0, rgba(236,72,153,0.18), rgba(15,23,42,0.98));
  border-radius: var(--ra-radius-md);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 14px 14px 12px;
}
.ra-article-thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
}

/* A propos & contact blocs */

.ra-about-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 18px;
}
.ra-about-card {
  padding: 18px 20px 18px;
}

/* Formations LIST (archive) */

.ra-formation-list-intro {
  margin-bottom: 24px;
}
.ra-formation-list-intro h1 {
  font-size: 28px;
  margin: 0 0 6px;
}
.ra-formation-list-intro p {
  margin: 0;
  color: var(--ra-text-muted);
}

.ra-formation-archive-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 18px;
}

/* Single formation cinematic page */

.ra-cine-hero {
  text-align: center;
  padding: 30px 26px 26px;
  position: relative;
  overflow: hidden;
}
.ra-cine-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 0 0, rgba(236,72,153,0.3), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56,189,248,0.3), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(124,58,237,0.4), transparent 60%);
  opacity: 0.8;
  mix-blend-mode: screen;
}
.ra-cine-hero-inner {
  position: relative;
  z-index: 1;
}
.ra-cine-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ra-text-muted);
}
.ra-cine-title {
  font-size: 30px;
  margin: 10px 0 6px;
}
.ra-cine-sub {
  font-size: 15px;
  color: var(--ra-text-muted);
  max-width: 620px;
  margin: 0 auto 16px;
}

/* scenes */

.ra-cine-scenes {
  margin-top: 26px;
}
.ra-scene-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ra-scene-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 12px;
  color: var(--ra-text-muted);
}
.ra-scene-pill strong { color: var(--ra-text); }

.ra-scene {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--ra-radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(236,72,153,0.18), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: var(--ra-shadow-soft);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  animation: ra-scene-in .6s ease-out forwards;
}
.ra-scene:nth-child(1) { animation-delay: .05s; }
.ra-scene:nth-child(2) { animation-delay: .12s; }
.ra-scene:nth-child(3) { animation-delay: .19s; }
.ra-scene:nth-child(4) { animation-delay: .26s; }
.ra-scene:nth-child(5) { animation-delay: .33s; }
.ra-scene:nth-child(6) { animation-delay: .40s; }
.ra-scene:nth-child(7) { animation-delay: .47s; }
.ra-scene:nth-child(8) { animation-delay: .54s; }
.ra-scene:nth-child(9) { animation-delay: .61s; }
.ra-scene:nth-child(10) { animation-delay: .68s; }

.ra-scene-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.9);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ra-scene-title {
  font-size: 16px;
  font-weight: 600;
}
.ra-scene-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--ra-text-muted);
}

.ra-scene-body {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 0;
}
.ra-scene-main {
  padding: 14px 18px 16px;
}
.ra-scene-sub {
  font-size: 13px;
  color: var(--ra-text-muted);
  margin-bottom: 6px;
}
.ra-scene-points {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ra-text-muted);
}
.ra-scene-side {
  padding: 14px 16px 16px;
  border-left: 1px solid rgba(15,23,42,0.9);
  font-size: 12px;
  color: var(--ra-text-muted);
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
}

/* transition label */

.ra-scene-transition {
  text-align: center;
  font-size: 11px;
  color: var(--ra-text-muted);
  margin: 6px 0 14px;
  text-transform: uppercase;
  letter-spacing: .22em;
}

/* Footer */

.ra-footer {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding: 18px 20px 26px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--ra-text-muted);
  text-align: center;
  background: rgba(2, 6, 23, 0.96);
}

/* Content */

.entry-content {
  color: var(--ra-text-muted);
  font-size: 15px;
}
.entry-content h2,
.entry-content h3 {
  color: var(--ra-text);
}

/* Animations */

@keyframes ra-scene-in {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */

@media (max-width: 900px) {
  .ra-home-hero,
  .ra-home-formation-grid,
  .ra-about-grid,
  .ra-scene-body,
  .ra-formation-archive-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .ra-header-inner {
    justify-content: space-between;
    gap: 10px;
  }
  .ra-nav {
    display: none;
  }
}
