/* ==========================================================================
   1. DESIGN TOKENS & DUAL THEMES
   ========================================================================== */

:root {
  /* Default font families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shared geometry & motion */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- THEME 1 : DEV FREELANCE (OBSCUR / CYBER TECH) --- */
:root, [data-theme="dev"] {
  --bg-primary: #090d16;
  --bg-surface: #101726;
  --bg-card: rgba(19, 28, 48, 0.75);
  --bg-card-hover: rgba(28, 41, 70, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --hero-gradient: linear-gradient(135deg, #a5b4fc, #6366f1 40%, #06b6d4 100%);
  --navbar-bg: rgba(9, 13, 22, 0.85);
  --page-radial: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
                 radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);

  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);

  /* Semantic aliases */
  --bg-color: var(--bg-primary);
  --surface-color: var(--bg-surface);
  --card-bg: var(--bg-card);
  --border-color: var(--border-subtle);
  --text-color: var(--text-main);
  --accent-color: var(--accent-cyan);
}

/* --- THEME 2 : SOSTRAWEB (CLAIR / NATURE, MONTAGNE & TERROIR) --- */
[data-theme="sostraweb"] {
  --bg-primary: #f6f8f4;
  --bg-surface: #edf1e8;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(45, 106, 79, 0.15);
  --border-focus: rgba(45, 106, 79, 0.4);

  --primary: #2d6a4f;
  --primary-glow: rgba(45, 106, 79, 0.25);
  --accent-cyan: #40916c;
  --accent-emerald: #1b4332;
  --accent-purple: #b07d62; /* Châtaignier / Terre cuite */

  --text-main: #19251f;
  --text-muted: #4b5e54;
  --text-dim: #6f8076;

  --hero-gradient: linear-gradient(135deg, #1b4332, #2d6a4f 50%, #b07d62 100%);
  --navbar-bg: rgba(246, 248, 244, 0.9);
  --page-radial: radial-gradient(circle at 10% 10%, rgba(82, 183, 136, 0.12) 0%, transparent 45%),
                 radial-gradient(circle at 90% 70%, rgba(176, 125, 98, 0.08) 0%, transparent 45%);

  --shadow-card: 0 8px 24px -6px rgba(27, 67, 50, 0.08), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-glow: 0 0 30px -5px rgba(45, 106, 79, 0.2);

  /* Semantic aliases */
  --bg-color: var(--bg-primary);
  --surface-color: var(--bg-surface);
  --card-bg: var(--bg-card);
  --border-color: var(--border-subtle);
  --text-color: var(--text-main);
  --accent-color: var(--primary);
}

/* ==========================================================================
   2. GLOBAL BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--page-radial);
  background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Hyperliens globaux (couleur identique au fond du bouton Contact : var(--primary)) */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Éléments de navigation, boutons et badges ne devant pas être soulignés */
.btn:hover,
.nav-brand:hover,
.nav-link:hover,
.nav-cta:hover,
.badge:hover,
.tag-pill:hover,
.universe-card:hover {
  text-decoration: none;
}

/* Polices de caractères éditoriales (Articles & Gutenberg) */
.has-plus-jakarta-sans-font { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important; }
.has-inter-font { font-family: 'Inter', system-ui, -apple-system, sans-serif !important; }
.has-outfit-font { font-family: 'Outfit', system-ui, -apple-system, sans-serif !important; }
.has-roboto-font { font-family: 'Roboto', system-ui, -apple-system, sans-serif !important; }
.has-merriweather-font { font-family: 'Merriweather', Georgia, serif !important; }
.has-lora-font { font-family: 'Lora', Georgia, serif !important; }
.has-playfair-font { font-family: 'Playfair Display', Georgia, serif !important; }
.has-jetbrains-mono-font { font-family: 'JetBrains Mono', monospace !important; }
.has-caveat-font { font-family: 'Caveat', cursive !important; }
.has-dancing-script-font { font-family: 'Dancing Script', cursive !important; }
.has-fira-sans-font { font-family: 'Fira Sans', system-ui, -apple-system, sans-serif !important; }
.has-cantarell-font { font-family: 'Cantarell', system-ui, -apple-system, sans-serif !important; }
.has-indie-flower-font { font-family: 'Indie Flower', cursive !important; }
.has-imperial-script-font { font-family: 'Imperial Script', cursive !important; }
.has-original-surfer-font { font-family: 'Original Surfer', cursive, sans-serif !important; }
.has-atma-font { font-family: 'Atma', cursive, sans-serif !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   3. VISIBILITY TOGGLE BETWEEN DEV & SOSTRAWEB
   ========================================================================== */

[data-theme="dev"] .view-sostraweb {
  display: none !important;
}

[data-theme="sostraweb"] .view-dev {
  display: none !important;
}

/* ==========================================================================
   4. NAVBAR & DUAL SWITCHER
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: var(--hero-gradient);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* Dual Mode Toggle Pill */
.dual-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

[data-theme="sostraweb"] .dual-switcher {
  background: rgba(45, 106, 79, 0.08);
}

.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.switcher-btn:hover {
  color: var(--text-main);
}

.switcher-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-admin-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.nav-admin-avatar-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.25);
}

.nav-admin-btn:hover .nav-admin-avatar-wrapper {
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-admin-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   5. HERO SECTIONS (DEV & SOSTRAWEB)
   ========================================================================== */

.hero {
  padding: 5.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

[data-theme="sostraweb"] .hero-tag {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  border-color: rgba(45, 106, 79, 0.25);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: pulse 2s infinite;
}

[data-theme="sostraweb"] .status-dot {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {
  0% { transform: translateZ(0) scale(0.95); opacity: 0.8; }
  50% { transform: translateZ(0) scale(1.2); opacity: 1; }
  100% { transform: translateZ(0) scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 590px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px var(--primary-glow);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

[data-theme="dev"] .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

[data-theme="dev"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

[data-theme="sostraweb"] .btn-outline:hover {
  background: rgba(45, 106, 79, 0.08);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Visual wrappers */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: var(--hero-gradient);
  box-shadow: var(--shadow-glow);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* SostraWeb Nature Visual */
.nature-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.nature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  border: 4px solid #ffffff;
  box-shadow: 0 20px 40px -10px rgba(27, 67, 50, 0.25);
}

.floating-badge {
  position: absolute;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 10;
}

.badge-top {
  top: -15px;
  right: -20px;
}

.badge-bottom {
  bottom: -20px;
  left: -20px;
}

.badge-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   6. SECTIONS COMMON LAYOUT
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   7. SKILLS (DEV) & SERVICES (SOSTRAWEB)
   ========================================================================== */

.skills-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skill-category-card, .service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover, .service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.category-title, .service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.service-icon {
  font-size: 1.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags, .skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="dev"] .service-pill {
  background: rgba(255, 255, 255, 0.05);
}

/* Skills list */
.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

[data-theme="dev"] .skill-row {
  background: rgba(255, 255, 255, 0.02);
}

.skill-row:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-subtle);
}

[data-theme="dev"] .skill-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.skill-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="dev"] .skill-badge {
  background: rgba(255, 255, 255, 0.06);
}

.skill-badge.highlight {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   8. TERRITORY & DEPARTMENTS (SOSTRAWEB EXCLUSIVE)
   ========================================================================== */

.territory-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.territory-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hero-gradient);
}

.territory-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.territory-badge-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(45, 106, 79, 0.3);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.dept-card {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.dept-card.hub {
  background: rgba(45, 106, 79, 0.05);
  border-color: rgba(45, 106, 79, 0.3);
}

.dept-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dept-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.dept-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.dept-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SostraWeb Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   9. PROJECTS SHOWCASE (DEV EXCLUSIVE)
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ==========================================================================
   10. BLOGS TEASER (DEV EXCLUSIVE)
   ========================================================================== */

.blog-teaser-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.blog-teaser-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hero-gradient);
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

[data-theme="sostraweb"] .blog-item {
  background: rgba(0, 0, 0, 0.02);
}

.blog-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.blog-category-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
}

.contact-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

[data-theme="dev"] .channel-item {
  background: rgba(255, 255, 255, 0.02);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

[data-theme="dev"] .channel-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.channel-details h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.channel-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

[data-theme="dev"] .form-input {
  background: rgba(9, 13, 22, 0.6);
}

.form-select {
  cursor: pointer;
  background-color: var(--bg-card);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--border-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.flash-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flash-success {
  background: rgba(45, 106, 79, 0.15);
  border: 1px solid rgba(45, 106, 79, 0.3);
  color: var(--primary);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
  margin-top: 5rem;
  background: var(--navbar-bg);
  transition: var(--transition);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.docker-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

[data-theme="dev"] .docker-status-pill {
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   13. UTILITY CLASSES & ESSENTIAL COMPONENTS
   ========================================================================== */

/* Flex & Alignment Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.w-100 { width: 100% !important; }

/* Spacing Utilities */
.gap-1 { gap: 0.5rem !important; }
.gap-2 { gap: 0.75rem !important; }
.gap-3 { gap: 1.25rem !important; }
.gap-4 { gap: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2.5rem !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 2.5rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 2.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.75rem !important; }
.p-5 { padding: 2.5rem !important; }
.rounded-3 { border-radius: var(--radius-md) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }
.small { font-size: 0.85rem !important; }

/* Card Component */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card-body {
  padding: 2rem;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

[data-theme="dev"] .form-control {
  background: rgba(9, 13, 22, 0.65);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--border-focus);
}

/* Alerts */
.alert {
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.text-accent,
a.text-accent {
  color: var(--primary);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

[data-theme="dev"] .alert-danger {
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #d97706;
}

[data-theme="dev"] .alert-warning {
  color: #fcd34d;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

[data-theme="dev"] .alert-success {
  color: #6ee7b7;
}

.alert-info {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #0891b2;
}

[data-theme="dev"] .alert-info {
  color: #67e8f9;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--surface-color);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.badge:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.badge-universe {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--universe-color, var(--primary));
  color: var(--universe-color, var(--primary));
  font-weight: 700;
}

.badge-category {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-muted);
}

[data-theme="dev"] .badge-category {
  background: rgba(255, 255, 255, 0.04);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-private {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.badge-protected {
  background: rgba(245, 158, 11, 0.95);
  color: #000000;
}

.badge-paid {
  background: rgba(168, 85, 247, 0.9);
  color: #ffffff;
}

/* Universes Grid & Cards */
.universes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.universe-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.universe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--universe-color, var(--primary));
  transition: height 0.25s ease;
}

.universe-card:hover {
  transform: translateY(-5px);
  border-color: var(--universe-color, var(--primary));
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.35);
}

.universe-card:hover::before {
  height: 6px;
}

.universe-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.universe-card:hover .universe-card-icon {
  transform: scale(1.12);
}

.universe-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.universe-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.universe-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--universe-color, var(--primary));
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

/* Blog & Article Card Elements */
.project-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--surface-color), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-visibility-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.article-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.read-more-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.read-more-link:hover {
  transform: translateX(3px);
  color: var(--primary);
  text-decoration: underline;
}

.blog-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Badge & Dots (for blog & sub-pages) */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

[data-theme="sostraweb"] .hero-badge {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  border-color: rgba(45, 106, 79, 0.25);
}

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Article Page & Typography */
.article-page {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.article-container,
.container.article-container {
  max-width: 1248px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 540px;
  box-shadow: var(--shadow-card);
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-excerpt {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--primary);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: var(--transition-fast);
}

.article-content a:hover {
  color: var(--primary);
  opacity: 0.85;
  text-decoration-thickness: 2px;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.5rem 1.75rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background: var(--surface-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.article-content pre {
  background: #090d16;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.2em 0.45em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dev"] .article-content code {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Article Content Layout & Rich Media --- */
.article-content {
  display: flow-root; /* Clearfix for floated images */
}

/* Figures & Images */
.article-content figure.article-figure,
.article-content figure.attachment {
  margin: 2.25rem 0;
  display: block;
}

.article-content figure.article-figure img,
.article-content figure.attachment img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: block;
}

.article-content figure.figure-center,
.article-content figure.attachment--preview {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.article-content figure.figure-center img,
.article-content figure.attachment--preview img {
  margin: 0 auto;
}

.article-content figure.figure-left {
  float: left;
  margin: 0.5rem 2rem 1.5rem 0;
  max-width: 48%;
}

.article-content figure.figure-right {
  float: right;
  margin: 0.5rem 0 1.5rem 2rem;
  max-width: 48%;
}

.article-content figcaption,
.article-content .attachment__caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Callout Boxes (Info, Warning, Success) */
.article-callout {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background: var(--surface-color);
  box-shadow: var(--shadow-sm);
}

.article-callout .callout-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.article-callout .callout-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
}

.article-callout .callout-content p:last-child {
  margin-bottom: 0;
}

.article-callout.callout-info {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.article-callout.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.article-callout.callout-success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

/* 2-Column Grid Layout */
.article-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.25rem 0;
}

.article-col {
  background: var(--surface-color);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.article-col p:last-child {
  margin-bottom: 0;
}

/* Tables */
.article-content table.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.25rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.article-content table.article-table th,
.article-content table.article-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content table.article-table th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-main);
}

.article-content table.article-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dev"] .article-content table.article-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.article-content table.article-table tr:last-child td {
  border-bottom: none;
}

/* Quotes & Dividers */
.article-content blockquote.article-quote {
  position: relative;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
}

.article-content blockquote.article-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.article-content .article-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 3rem 0;
}

.article-content .article-cta-box {
  margin: 2.5rem 0;
}


/* Paywall & Password Protected Cards */
.lock-card, .paywall-card {
  padding: 3rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
}

.lock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.paywall-card {
  border: 2px dashed rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(168, 85, 247, 0.06) 100%);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   13b. ARTICLE FOOTER & BOTTOM CTA
   ========================================================================== */

.article-footer {
  margin-top: 4.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.article-tags-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.article-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.article-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

[data-theme="sostraweb"] .article-tag-item {
  background: rgba(45, 106, 79, 0.06);
  border-color: rgba(45, 106, 79, 0.18);
  color: #2d6a4f;
}

.article-tag-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

[data-theme="sostraweb"] .article-tag-item:hover {
  color: #1b4332;
  border-color: #2d6a4f;
  background: rgba(45, 106, 79, 0.14);
}

.article-cta-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.article-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--hero-gradient, var(--primary));
  opacity: 0.9;
}

[data-theme="sostraweb"] .article-cta-card::before {
  background: linear-gradient(135deg, #2d6a4f, #52b788);
}

.article-cta-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
}

[data-theme="sostraweb"] .article-cta-card:hover {
  border-color: rgba(45, 106, 79, 0.4);
  box-shadow: 0 14px 30px -10px rgba(45, 106, 79, 0.15);
}

.article-cta-content {
  flex: 1;
  min-width: 280px;
}

.article-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.article-cta-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.article-cta-btn {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.article-cta-btn:hover {
  gap: 0.8rem;
  transform: translateY(-1px);
}

.article-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .article-footer {
    margin-top: 3.25rem;
    gap: 2rem;
  }

  .article-cta-card {
    padding: 1.75rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   14. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-links {
    gap: 1.2rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .nav-wrapper {
    gap: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 2.25rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
  }

  .avatar-wrapper {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 0.85rem;
    column-gap: 1rem;
    align-items: center;
  }

  .nav-brand {
    grid-column: 1;
  }

  .nav-actions {
    grid-column: 2;
    justify-self: end;
  }

  .dual-switcher {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
  }

  .switcher-btn {
    flex: 1;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .universes-grid {
    grid-template-columns: 1fr;
  }

  .article-container,
  .container.article-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .article-title {
    font-size: 1.95rem;
    line-height: 1.3;
  }

  .article-featured-image {
    max-height: 360px;
    margin-bottom: 1.75rem;
  }

  .article-content figure.figure-left,
  .article-content figure.figure-right {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .article-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-content table.article-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .avatar-wrapper {
    width: 240px;
    height: 240px;
  }

  .badge-top {
    top: -10px;
    right: 0px;
  }

  .badge-bottom {
    bottom: -10px;
    left: 0px;
  }

  .floating-badge {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .services-grid, .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 1.75rem 1.25rem;
  }

  .lock-card, .paywall-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .article-container,
  .container.article-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .article-featured-image {
    max-height: 220px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .article-excerpt {
    font-size: 1.05rem;
    padding-left: 0.85rem;
  }

  .article-content {
    font-size: 1.02rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   22. MENTIONS LÉGALES (LEGAL NOTICES)
   ========================================================================== */

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.legal-summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.legal-summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
}

.legal-summary-icon {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.legal-summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.legal-summary-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.legal-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

.legal-card-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.legal-chapter-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
}

.legal-card-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.legal-version-nav {
  display: inline-flex;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .legal-version-nav {
    flex-direction: column;
    border-radius: var(--radius-lg) !important;
    width: 100%;
  }
  
  .legal-version-nav .btn {
    width: 100%;
    font-size: 0.8rem;
  }
}


