/*
Theme Name: SPA Loader Theme
Theme URI: https://oredy.tech/spa-loader-pro
Author: Oredy TECHNOLOGIES
Author URI: https://oredy.tech
Description: Thème minimal compagnon de SPA Loader Pro. Il sert de point d'entrée aux SPA déployées : si une SPA est active, elle est affichée en plein écran et le thème reprend son identité (nom, description, logo) pour le référencement ; sinon une page « Site en cours de conception » avec header et footer est affichée.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0+
Text Domain: spa-loader-theme
*/

:root {
  --slt-bg: #0b0e14;
  --slt-surface: #121722;
  --slt-border: rgba(255, 255, 255, .08);
  --slt-fg: #e8edf5;
  --slt-muted: #8c96a8;
  --slt-accent: #c6f24e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--slt-bg); color: var(--slt-fg); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* --- SPA plein écran --- */
body.slt-spa-active { overflow: hidden; height: 100%; }
.slt-frame {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  border: 0; margin: 0; padding: 0; display: block; z-index: 2147483647; background: #000;
}

/* --- Structure page d'attente --- */
.slt-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(198, 242, 78, .10), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(78, 200, 242, .08), transparent 50%);
}

/* --- Header --- */
.slt-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--slt-border);
  background: rgba(11, 14, 20, .72); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.slt-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.slt-brand-mark { border-radius: 8px; display: block; }
.slt-brand-logo img { max-height: 32px; width: auto; display: block; }
.slt-brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--slt-accent); box-shadow: 0 0 0 4px rgba(198, 242, 78, .16); }
.slt-brand-name { font-size: 15px; }
.slt-nav { display: flex; align-items: center; gap: 18px; }
.slt-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.slt-menu a { color: var(--slt-muted); font-size: 14px; transition: color .15s ease; }
.slt-menu a:hover { color: var(--slt-fg); }
.slt-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slt-muted);
  padding: 6px 12px; border: 1px solid var(--slt-border); border-radius: 999px; background: var(--slt-surface);
}
.slt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slt-accent); animation: slt-pulse 1.8s ease-in-out infinite; }
@keyframes slt-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

/* --- Contenu --- */
.slt-holding { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; text-align: center; }
.slt-holding-inner { max-width: 620px; }
.slt-logo img { max-width: 180px; height: auto; margin-bottom: 24px; }
.slt-status {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(198, 242, 78, .12); color: var(--slt-accent);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.slt-title { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.1; }
.slt-text { color: var(--slt-muted); font-size: 16px; line-height: 1.65; margin: 0 auto; max-width: 46ch; }
.slt-cta {
  display: inline-block; margin-top: 26px; padding: 11px 20px; border-radius: 10px;
  background: var(--slt-accent); color: #11160c; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.slt-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(198, 242, 78, .6); }

/* --- Thème WordPress complet --- */
.slt-main {
  padding: 48px 0 72px;
}
.slt-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.slt-hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 32px 0 18px;
  margin-bottom: 28px;
}
.slt-hero-copy,
.slt-hero-panel,
.slt-feature-card,
.slt-entry {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--slt-border);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}
.slt-hero-copy {
  padding: 28px;
}
.slt-hero-text {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--slt-muted);
  margin-bottom: 22px;
}
.slt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 18px;
}
.slt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}
.slt-button:hover { transform: translateY(-1px); }
.slt-button-primary {
  background: var(--slt-accent);
  color: #11160c;
}
.slt-button-secondary {
  background: transparent;
  border: 1px solid var(--slt-border);
  color: var(--slt-fg);
}
.slt-logo-wrap {
  margin-top: 8px;
}
.slt-logo-wrap img {
  max-height: 54px;
  width: auto;
}
.slt-hero-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}
.slt-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(198, 242, 78, .07);
  border: 1px solid rgba(198, 242, 78, .18);
}
.slt-metric strong {
  font-size: clamp(22px, 4vw, 34px);
  color: var(--slt-accent);
}
.slt-metric span {
  color: var(--slt-muted);
}

.slt-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 28px;
}
.slt-feature-card {
  padding: 22px 20px;
}
.slt-feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(198, 242, 78, .12);
  font-size: 24px;
  margin-bottom: 12px;
}
.slt-feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.slt-feature-card p {
  margin: 0;
  color: var(--slt-muted);
  line-height: 1.7;
}

.slt-section {
  margin-top: 36px;
}
.slt-section-heading {
  margin-bottom: 22px;
}
.slt-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.slt-benefits-grid,
.slt-testimonials-grid,
.slt-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.slt-benefit,
.slt-testimonial,
.slt-price-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--slt-border);
  border-radius: 20px;
  padding: 24px;
}
.slt-benefit span {
  display: inline-block;
  font-weight: 800;
  color: var(--slt-accent);
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: .08em;
}
.slt-benefit h3,
.slt-price-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.slt-benefit p,
.slt-testimonial p,
.slt-price-card ul,
.slt-price-card li {
  color: var(--slt-muted);
  line-height: 1.7;
}
.slt-testimonial {
  margin: 0;
}
.slt-testimonial footer {
  margin-top: 16px;
  color: var(--slt-fg);
  font-weight: 700;
}
.slt-pricing {
  padding-bottom: 24px;
}
.slt-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slt-price-card-featured {
  border-color: rgba(198, 242, 78, .5);
  box-shadow: 0 20px 40px rgba(198, 242, 78, .08);
}
.slt-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--slt-accent);
  color: #11160c;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}
.slt-price {
  display: flex;
  align-items: end;
  gap: 8px;
}
.slt-price strong {
  font-size: 42px;
  line-height: 1;
  color: var(--slt-fg);
}
.slt-price span {
  color: var(--slt-muted);
}
.slt-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.slt-price-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.slt-price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--slt-accent);
  font-weight: 800;
}

.slt-entry {
  padding: 24px;
}
.slt-entry + .slt-entry,
.slt-list-item + .slt-list-item {
  margin-top: 24px;
}
.slt-featured-image-wrap { margin-bottom: 28px; }
.slt-featured-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--slt-border);
}
.slt-entry-header { margin-bottom: 18px; }
.slt-entry-meta {
  margin: 0 0 10px;
  color: var(--slt-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slt-entry-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.slt-entry-content {
  color: #dfe7f4;
  line-height: 1.8;
  font-size: 17px;
}
.slt-entry-content > *:first-child { margin-top: 0; }
.slt-entry-content img,
.slt-entry-content figure,
.slt-entry-content iframe,
.slt-entry-content video,
.slt-entry-content table {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.slt-entry-content a,
.slt-list-title a { color: #9bd5ff; }
.slt-entry-content p,
.slt-entry-content ul,
.slt-entry-content ol,
.slt-entry-content blockquote,
.slt-entry-content pre {
  margin-top: 0;
  margin-bottom: 1.25em;
}
.slt-empty-state {
  text-align: center;
  padding: 32px 24px;
}
.slt-archive-header {
  margin-bottom: 24px;
}
.slt-archive-description {
  color: var(--slt-muted);
  margin-top: 12px;
}
.slt-list-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.slt-list-thumb {
  flex: 0 0 220px;
}
.slt-list-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--slt-border);
}
.slt-list-body {
  flex: 1;
}
.slt-list-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}
.slt-entry-excerpt {
  color: var(--slt-muted);
  line-height: 1.7;
}
.slt-comments-wrap {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--slt-border);
}

@media (max-width: 900px) {
  .slt-hero,
  .slt-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .slt-article { padding: 16px; }
  .slt-post-main { width: min(100% - 20px, 1100px); padding-top: 24px; }
  .slt-post-content { font-size: 16px; }
  .slt-hero-copy,
  .slt-hero-panel,
  .slt-feature-card,
  .slt-entry {
    padding: 18px;
  }
}

/* --- Article public --- */
.slt-post-shell { background: #0f172a; }
.slt-post-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.slt-article {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--slt-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}
.slt-post-media { margin-bottom: 28px; }
.slt-post-featured-image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--slt-border);
}
.slt-post-header { margin-bottom: 18px; }
.slt-post-kicker {
  margin: 0 0 10px;
  color: var(--slt-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slt-post-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.slt-post-content {
  color: #dfe7f4;
  line-height: 1.8;
  font-size: 17px;
}
.slt-post-content > *:first-child { margin-top: 0; }
.slt-post-content img,
.slt-post-content figure,
.slt-post-content iframe,
.slt-post-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.slt-post-content a { color: #9bd5ff; }

@media (max-width: 640px) {
  .slt-article { padding: 16px; }
  .slt-post-main { width: min(100% - 20px, 1100px); padding-top: 24px; }
  .slt-post-content { font-size: 16px; }
}

/* --- Footer --- */
.slt-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; border-top: 1px solid var(--slt-border);
  background: rgba(11, 14, 20, .72); color: var(--slt-muted); font-size: 13px;
}
.slt-footer p { margin: 0; }
.slt-footer-meta strong { color: var(--slt-fg); font-weight: 600; }

@media (max-width: 640px) {
  .slt-header { padding: 12px 16px; }
  .slt-menu { display: none; }
  .slt-holding { padding: 40px 18px; }
  .slt-footer { flex-direction: column; align-items: flex-start; padding: 16px; }
}
