/*
Theme Name: ITSkillsCenter Pro
Theme URI: https://itskillscenter.io
Author: ITSkillsCenter
Author URI: https://itskillscenter.io
Description: Thème WordPress premium world-class pour ITSkillsCenter — Agence digitale & centre de formation à Dakar, Sénégal. Design cinématique, animations GSAP, dark/light mode automatique, SEO Sénégal optimisé, Elementor compatible. Hardened security (REST/XML-RPC/CSP/HSTS).
Version: 3.1.32
License: GNU General Public License v2 or later
Text Domain: itskillscenter
Tags: full-width-template, custom-menu, featured-images, translation-ready, dark, light, animation, education, services, agency
*/

/* ══════════════════════════════════════════════════════════
   CSS VARIABLES — DARK MODE (DEFAULT)
   ══════════════════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
  --color-bg:         #050510;
  --color-surface:    #0a0a1a;
  --color-surface-2:  #101025;
  --color-surface-3:  #16162d;
  --color-text:       #f0ede6;
  --color-text-muted: #8a8a9e;
  --color-accent:     #3b82f6;
  --color-accent2:    #60a5fa;
  --color-accent3:    #8b5cf6;
  --color-border:     rgba(255,255,255,0.06);
  --color-border-hover: rgba(255,255,255,0.12);
  --color-success:    #22c55e;
  --color-warning:    #f59e0b;
  --color-glow:       rgba(59,130,246,0.15);
  --color-glow-accent: rgba(139,92,246,0.1);
  --color-glass:      rgba(10,10,26,0.7);
  --color-glass-border: rgba(255,255,255,0.08);
  --color-card-shadow: rgba(0,0,0,0.4);
  --color-hero-gradient-1: rgba(59,130,246,0.12);
  --color-hero-gradient-2: rgba(139,92,246,0.08);
  --color-hero-gradient-3: rgba(59,130,246,0.06);
  --color-nav-bg: rgba(5,5,16,0.85);
  --color-loader-bg: #050510;
  --color-code-bg: #0d0d1f;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: clamp(5rem, 10vw, 10rem);
  --container-max:   1400px;
  --nav-height:      80px;

  /* Animations */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-slow:   1.2s;
  --duration-normal: 0.6s;
  --duration-fast:   0.3s;

  /* Elementor sync */
  --e-global-color-primary:   var(--color-accent);
  --e-global-color-secondary: var(--color-text);
  --e-global-color-text:      var(--color-text);
  --e-global-color-accent:    var(--color-accent2);
  --e-global-typography-primary-font-family:   var(--font-display);
  --e-global-typography-secondary-font-family: var(--font-body);
}

/* ══════════════════════════════════════════════════════════
   LIGHT MODE VARIABLES
   ══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --color-bg:         #fafaf8;
  --color-surface:    #f0efe9;
  --color-surface-2:  #e8e7e0;
  --color-surface-3:  #dddcd5;
  --color-text:       #1a1a2e;
  --color-text-muted: #4a4a5e;
  --color-accent:     #2563eb;
  --color-accent2:    #3b82f6;
  --color-accent3:    #7c3aed;
  --color-border:     rgba(0,0,0,0.08);
  --color-border-hover: rgba(0,0,0,0.15);
  --color-glow:       rgba(37,99,235,0.08);
  --color-glow-accent: rgba(124,58,237,0.06);
  --color-glass:      rgba(250,250,248,0.8);
  --color-glass-border: rgba(0,0,0,0.06);
  --color-card-shadow: rgba(0,0,0,0.08);
  --color-hero-gradient-1: rgba(37,99,235,0.06);
  --color-hero-gradient-2: rgba(124,58,237,0.04);
  --color-hero-gradient-3: rgba(37,99,235,0.03);
  --color-nav-bg: rgba(250,250,248,0.9);
  --color-loader-bg: #fafaf8;
  --color-code-bg: #f0efe9;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.08);
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* `overflow: clip` au lieu de `hidden` : prévient le scroll horizontal SANS
     casser `position: sticky` (hidden crée un contexte de défilement et
     transforme tout sticky descendant en fixed depuis le viewport, voir
     spec CSS Containment Module Level 3). Compat : Chrome 90+, Firefox 81+,
     Safari 16+. */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}
a { color: var(--color-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent2); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--color-accent); color: #fff; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION — GLASSMORPHISM
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  transition: all 0.5s var(--ease-out);
}
.site-header.scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-md);
  height: 70px;
}
.site-header__logo img {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
}
.site-header__logo:hover img { opacity: 0.85; transform: scale(1.02); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-menu a {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3));
  transition: width 0.4s var(--ease-out);
  border-radius: 2px;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--color-accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  color: #fff !important;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}
.nav-cta svg { width: 14px; height: 14px; }

/* Search Toggle */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
  flex-shrink: 0;
}
.search-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-glow);
}
.search-toggle:hover svg { transform: scale(1.1); }
.search-toggle svg { transition: transform 0.3s ease; }

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-glow);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.theme-toggle:hover svg { transform: scale(1.1); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Default (no data-theme set yet) show sun */
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--color-text);
  transition: all 0.4s var(--ease-out);
  display: block;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-nav-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.mobile-nav a:hover { color: var(--color-accent); transform: translateX(8px); }

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3), var(--color-accent2));
  z-index: 9999;
  box-shadow: 0 0 20px var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION — CINEMATIC
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}
.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, var(--color-hero-gradient-1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--color-hero-gradient-2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, var(--color-hero-gradient-3) 0%, transparent 60%);
}
.hero__bg-image { will-change: transform; }
.hero__bg-overlay { z-index: 1; }
.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* Floating Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
  pointer-events: none;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: var(--color-accent);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--color-accent3);
  bottom: -10%; right: -5%;
  animation-delay: -7s;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: var(--color-accent2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 5rem) clamp(1.5rem, 5vw, 5rem) 5rem;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent2);
  margin-bottom: 2.5rem;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
  50% { opacity: 0.6; transform: scale(1.4); box-shadow: 0 0 16px rgba(34,197,94,0.8); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 1.02;
  font-weight: 400;
  max-width: 950px;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 3rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-indicator__line {
  width: 1px;
  height: 45px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ══════════════════════════════════════════════════════════
   STORY SECTIONS (Scrollytelling)
   ══════════════════════════════════════════════════════════ */
.story-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.story-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,5,16,0.85) 0%, rgba(5,5,16,0.4) 100%);
}
.story-section__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding) clamp(1.5rem, 5vw, 5rem);
  width: 100%;
}
.story-section__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
  font-weight: 500;
}
.story-section__label-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3));
}
.story-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.story-section__desc {
  max-width: 600px;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* ══════════════════════════════════════════════════════════
   STORY CARDS — GLASS MORPHISM
   ══════════════════════════════════════════════════════════ */
.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--color-border);
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
}
.story-card {
  background: var(--color-surface);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.5s var(--ease-out);
}
.story-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3));
  transition: width 0.6s var(--ease-out);
}
.story-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--color-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.story-card:hover { background: var(--color-surface-2); transform: translateY(-4px); }
.story-card:hover::before { width: 100%; }
.story-card:hover::after { opacity: 1; }
.story-card__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}
.story-card:hover .story-card__icon { transform: scale(1.1) rotate(-3deg); }
.story-card__icon svg { width: 100%; height: 100%; }
.story-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.story-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}
.story-card__modules {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.story-card__modules li {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.story-card__modules li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.story-card__tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  color: var(--color-accent2);
  border-radius: 100px;
  border: 1px solid rgba(59,130,246,0.15);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   COUNTERS
   ══════════════════════════════════════════════════════════ */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5px;
  background: var(--color-border);
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
}
.counter-item {
  background: var(--color-surface);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.counter-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--color-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.counter-item:hover::after { opacity: 1; }
.counter-item__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline;
  position: relative;
  z-index: 1;
}
.counter-item__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-accent3);
  position: relative;
  z-index: 1;
}
.counter-item__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  display: block;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS — PREMIUM
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  border-radius: 6px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,0.25);
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-accent3), var(--color-accent));
  transition: left 0.5s var(--ease-out);
  border-radius: 6px;
}
.btn--primary:hover::before { left: 0; }
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}
.btn--primary span { position: relative; z-index: 1; }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-glow);
  transform: translateY(-2px);
}
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 6px;
}
.btn--whatsapp:hover {
  background: #128c7e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   TRUST / MARQUEE
   ══════════════════════════════════════════════════════════ */
.trust-section {
  padding: 4rem 0;
  background: var(--color-surface);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-marquee {
  display: flex;
  animation: marqueeScroll 35s linear infinite;
  white-space: nowrap;
}
.trust-marquee__item {
  flex-shrink: 0;
  padding: 0 3rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════════════════════════════════════════
   PROJECT SHOWCASE — RÉALISATIONS
   ══════════════════════════════════════════════════════════ */
.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.5s var(--ease-out);
  group: project;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.project-card__browser {
  background: var(--color-surface-2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.project-card__browser-dots {
  display: flex;
  gap: 6px;
}
.project-card__browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.project-card__browser-dot:nth-child(1) { background: #ff5f57; }
.project-card__browser-dot:nth-child(2) { background: #ffbd2e; }
.project-card__browser-dot:nth-child(3) { background: #28ca42; }
.project-card__browser-url {
  flex: 1;
  background: var(--color-surface-3);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-card__image {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: var(--color-surface-2);
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__image img {
  transform: scale(1.05);
}
.project-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,16,0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}
.project-card:hover .project-card__image-overlay { opacity: 1; }
.project-card__visit-btn {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  color: #fff;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
}
.project-card:hover .project-card__visit-btn {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}
.project-card__visit-btn:hover {
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.project-card__info {
  padding: 1.5rem;
}
.project-card__category {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.project-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-card__tech-tag {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════ */
.contact-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--color-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-section__content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding) clamp(1.5rem, 5vw, 5rem);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--color-border);
  max-width: 750px;
  margin: 2.5rem auto;
  border-radius: 8px;
  overflow: hidden;
}
.contact-grid__item {
  background: var(--color-bg);
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}
.contact-grid__item:hover {
  background: var(--color-surface-2);
}
.contact-grid__label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact-grid__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER — MODERN
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 5rem clamp(1.5rem, 5vw, 5rem) 2rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--color-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}
.footer-brand__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 350px;
}
.footer-col__title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}
.footer-col a:hover { color: var(--color-accent); transform: translateX(4px); display: inline-block; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOATING — Elegant Modern Design
   ══════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366 0%, #20bd5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 15px rgba(37, 211, 102, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  animation: whatsappPulse 3s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.whatsapp-float:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}
@keyframes whatsappPulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(37, 211, 102, 0.35),
      0 1px 3px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 4px 22px rgba(37, 211, 102, 0.5),
      0 1px 3px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}
@keyframes whatsappSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════
   PAGE LOADER
   ══════════════════════════════════════════════════════════ */
/* Old .page-loader styles removed — see cinematic #page-loader at bottom */

/* ══════════════════════════════════════════════════════════
   BLOG STYLES
   ══════════════════════════════════════════════════════════ */
.blog-header {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 5rem) 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}
.blog-header__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.blog-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.blog-header__desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Blog Categories Filter */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  max-width: var(--container-max);
  margin: 0 auto 3rem;
}
.blog-categories a {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all 0.3s ease;
  font-weight: 400;
}
.blog-categories a:hover,
.blog-categories a.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-glow);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem) 4rem;
}
.blog-card {
  background: var(--color-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}
.blog-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}
.blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__image-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  opacity: 0.3;
}
.blog-card__content {
  padding: 1.5rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.blog-card__category {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}
.blog-card__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.blog-card__title a { color: inherit; }
.blog-card:hover .blog-card__title { color: var(--color-accent); }
.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  transition: all 0.3s ease;
}
.blog-card__read-more:hover { gap: 0.7rem; }
.blog-card__read-more svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.blog-card__read-more:hover svg { transform: translateX(3px); }

/* Single Article */
.article-header {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 5rem) 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.article-header__category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.article-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.article-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
.article-header__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-featured-image {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.article-featured-image img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

/* Article Content */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
  font-size: 1.05rem;
  line-height: 1.9;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 3rem 0 1rem;
  color: var(--color-text);
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}
.article-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.article-content code {
  background: var(--color-code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-accent2);
}
.article-content pre {
  background: var(--color-code-bg);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
}
.article-content pre code {
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.article-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}
.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article Navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--color-border);
  max-width: 780px;
  margin: 0 auto 4rem;
  border-radius: 8px;
  overflow: hidden;
}
.article-nav__item {
  background: var(--color-surface);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.article-nav__item:hover { background: var(--color-surface-2); }
.article-nav__label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.article-nav__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
}

/* ══════════════════════════════════════════════════════════
   BLOG ADS
   ══════════════════════════════════════════════════════════ */

/* --- Banner Ad (top + article) --- */
.blog-ad--banner,
.blog-ad--article {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.blog-ad--article {
  max-width: 780px;
  margin: 1rem auto 2rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.blog-ad {
  position: relative;
  overflow: hidden;
}
.blog-ad__inner {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2, #101025) 50%, rgba(59,130,246,0.08) 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-ad__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}
.blog-ad__label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.blog-ad__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.blog-ad__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.blog-ad__price {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.blog-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fff;
  color: #050510 !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.blog-ad__cta:hover {
  background: var(--color-accent);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}
.blog-ad__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

/* --- In-Grid Card Ad --- */
.blog-ad--card {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(59,130,246,0.06) 100%);
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.blog-ad--card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
  border-color: var(--color-accent2, #60a5fa);
}
.blog-ad--card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  flex: 1;
}
.blog-ad--card .blog-ad__badge {
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}
.blog-ad--card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1.25rem;
}
.blog-ad--card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.blog-ad--card__label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.blog-ad--card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.blog-ad--card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.blog-ad__cta--card {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-ad__title { font-size: 1.3rem; }
  .blog-ad__desc { font-size: 0.85rem; }
  .blog-ad__inner { padding: 1.5rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════
   ELEMENTOR COMPAT
   ══════════════════════════════════════════════════════════ */
.elementor-page .site-main,
.elementor-editor-active .site-main { padding: 0; margin: 0; }
.elementor-section.elementor-section-stretched { left: 0 !important; width: 100% !important; }
body.elementor-editor-active .site-header { z-index: 999 !important; }

/* ══════════════════════════════════════════════════════════
   PAGE / SINGLE / ARCHIVE TEMPLATES
   ══════════════════════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 5rem) 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
}
.page-content h2 { font-family: var(--font-display); font-size: 2rem; margin: 2rem 0 1rem; }
.page-content h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 1.25rem; color: var(--color-text-muted); }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 1.5rem; color: var(--color-text-muted); }

/* ══════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
}
.error-404__msg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: -3rem 0 2rem;
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   SECTION DECORATIVE ELEMENTS
   ══════════════════════════════════════════════════════════ */
.section-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.3;
}
.section-glow--accent {
  background: var(--color-accent);
  width: 400px; height: 400px;
}
.section-glow--purple {
  background: var(--color-accent3);
  width: 300px; height: 300px;
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect Utility */
.glass {
  background: var(--color-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--color-glass-border);
}

/* ══════════════════════════════════════════════════════════
   BLOG LIST (index.php / archive.php enhanced)
   ══════════════════════════════════════════════════════════ */
.blog-list-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.blog-list-item__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.blog-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-list-item:hover .blog-list-item__image img {
  transform: scale(1.03);
}
.blog-list-item__content {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   CTA SECTION (above footer)
   ══════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  overflow: hidden;
  background: var(--color-bg);
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-glow) 0%, transparent 70%);
}
.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.cta-section__desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .story-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-showcase { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list-item { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .story-cards-grid,
  .counters-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(2.4rem, 9vw, 3.8rem); }
  .projects-showcase { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  :root { --nav-height: 60px; }
  .btn { padding: 0.85rem 1.8rem; font-size: 0.75rem; width: 100%; justify-content: center; }
  .story-card { padding: 1.5rem; }
  .counter-item { padding: 2rem 1rem; }
  .project-card__image { height: 180px; }
  .blog-card__image { height: 160px; }
}

/* ══════════════════════════════════════════════════════════
   WOOCOMMERCE — SHOP & PRODUCTS
   ══════════════════════════════════════════════════════════ */

/* Shop Page Layout */
.shop-page { min-height: 100vh; }
.shop-header {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 5rem) 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}
.shop-header__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.shop-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.shop-header__desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Shop Categories Filter */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  max-width: var(--container-max);
  margin: 0 auto 3rem;
}
.shop-categories a {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all 0.3s ease;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-categories a:hover,
.shop-categories a.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-glow);
}
.shop-categories__count {
  font-size: 0.65rem;
  background: var(--color-surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  color: var(--color-text-muted);
}

/* WooCommerce Content Wrapper */
.woo-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem) 4rem;
}
.woo-wrapper { width: 100%; }

/* WooCommerce Product Grid Override */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out);
  padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0;
  transition: transform 0.5s var(--ease-out);
}
.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  color: var(--color-text) !important;
  padding: 1rem 1.25rem 0.25rem !important;
  transition: color 0.3s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--color-accent) !important;
}

.woocommerce ul.products li.product .price {
  color: var(--color-accent) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.25rem 1.25rem !important;
}
.woocommerce ul.products li.product .price del {
  color: var(--color-text-muted) !important;
  opacity: 0.6;
}
.woocommerce ul.products li.product .price ins {
  color: var(--color-accent) !important;
  text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
  display: block !important;
  margin: 0.75rem 1.25rem 1.25rem !important;
  padding: 0.75rem 1.5rem !important;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
  box-shadow: 0 6px 25px rgba(59,130,246,0.35) !important;
  transform: translateY(-2px) !important;
}

/* WooCommerce Sale Badge */
.woocommerce span.onsale {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3)) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.4rem 0.8rem !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  font-weight: 600;
  top: 0.75rem !important;
  left: 0.75rem !important;
  right: auto !important;
}

/* WooCommerce Single Product */
.woocommerce div.product {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.woocommerce div.product .product_title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  color: var(--color-text) !important;
}
.woocommerce div.product p.price {
  color: var(--color-accent) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--color-text-muted);
  line-height: 1.8;
}
.woocommerce div.product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 1rem 2rem !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
  box-shadow: 0 8px 30px rgba(59,130,246,0.35) !important;
  transform: translateY(-2px) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 2rem 0 0 !important;
  list-style: none;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 1.5rem !important;
  color: var(--color-text-muted) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-accent) !important;
  border-bottom-color: var(--color-accent);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 2rem 0 !important;
  color: var(--color-text-muted) !important;
  line-height: 1.8;
}

/* WooCommerce Cart / Checkout */
.woocommerce table.shop_table {
  border: 1px solid var(--color-border) !important;
  border-radius: 10px;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-color: var(--color-border) !important;
}
.woocommerce table.shop_table td {
  background: var(--color-surface) !important;
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .checkout-button {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .checkout-button:hover {
  box-shadow: 0 6px 25px rgba(59,130,246,0.35) !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.3s ease;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--color-accent) !important;
  outline: none;
}
.woocommerce form .form-row label {
  color: var(--color-text) !important;
  font-size: 0.85rem;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
  background: var(--color-surface) !important;
  border-top-color: var(--color-accent) !important;
  color: var(--color-text) !important;
}

/* Front-page Shop Showcase */
.shop-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.shop-showcase__card {
  position: relative;
  background: var(--color-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}
.shop-showcase__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.shop-showcase__card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.shop-showcase__card:hover::before { opacity: 1; }

.shop-showcase__card--featured {
  border-color: rgba(59,130,246,0.3);
  background: linear-gradient(180deg, rgba(59,130,246,0.04) 0%, var(--color-bg) 100%);
}
.shop-showcase__card--featured::before { opacity: 1; }

.shop-showcase__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-glow);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}
.shop-showcase__icon svg {
  width: 28px; height: 28px;
  color: var(--color-accent);
}
.shop-showcase__badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent3));
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
}
.shop-showcase__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.shop-showcase__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.shop-showcase__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.shop-showcase__features {
  list-style: none;
  padding: 0;
}
.shop-showcase__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.shop-showcase__features li svg { color: var(--color-success); flex-shrink: 0; }

/* Shop Products Grid (front-page latest products) */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.shop-product-card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out);
}
.shop-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}
.shop-product-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--color-surface-2);
}
.shop-product-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.shop-product-card:hover .shop-product-card__image img {
  transform: scale(1.05);
}
.shop-product-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
}
.shop-product-card__placeholder svg {
  width: 40px; height: 40px;
  color: var(--color-text-muted);
  opacity: 0.3;
}
.shop-product-card__badge-digital {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(59,130,246,0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 100px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.shop-product-card__info { padding: 1.25rem; }
.shop-product-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.shop-product-card__title a {
  color: var(--color-text);
  transition: color 0.3s ease;
}
.shop-product-card:hover .shop-product-card__title a {
  color: var(--color-accent);
}
.shop-product-card__price {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.shop-product-card__price del { color: var(--color-text-muted); opacity: 0.6; }
.shop-product-card__price ins { text-decoration: none; color: var(--color-accent); }
.shop-product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  transition: all 0.3s ease;
}
.shop-product-card__btn:hover { gap: 0.7rem; }
.shop-product-card__btn svg { transition: transform 0.3s ease; }
.shop-product-card__btn:hover svg { transform: translateX(3px); }

/* Responsive WooCommerce */
@media (max-width: 768px) {
  .shop-showcase { grid-template-columns: 1fr; }
  .shop-products-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .shop-showcase__card { padding: 2rem 1.5rem; }
}

/* ══════════════════════════════════════════════════════════
   SMOOTH TRANSITIONS FOR THEME SWITCH
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════════════ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  z-index: 999999;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-glow);
}
.theme-toggle:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
a:focus-visible { outline-offset: 2px; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .trust-marquee { animation: none; }
  .hero__orb { animation: none; }
  .loader-spinner { animation: none; border-top-color: var(--color-accent); }
  .whatsapp-float { animation: none; }
}

/* Comments */
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.3s ease;
}
.comments-area input:focus,
.comments-area textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.theme-transitioning,
.theme-transitioning * {
  transition: background-color 0.5s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ══════════════════════════════════════════════════════════
   CSS SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
[data-gsap],
.story-card,
.project-card,
.blog-card,
.shop-showcase__card,
.shop-product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-gsap].revealed,
.story-card.revealed,
.project-card.revealed,
.blog-card.revealed,
.shop-showcase__card.revealed,
.shop-product-card.revealed,
.hero-animate.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-gsap],
  .story-card,
  .project-card,
  .blog-card,
  .shop-showcase__card,
  .shop-product-card,
  .hero-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-bottom-nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-bottom-nav__item {
  flex: 1;
}
.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  border-radius: 8px;
}
.mobile-bottom-nav__link svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}
.mobile-bottom-nav__link.active,
.mobile-bottom-nav__link:hover {
  color: var(--color-accent);
}
.mobile-bottom-nav__link.active {
  background: var(--color-glow);
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  /* Add bottom padding to body so content isn't hidden behind bottom nav */
  body { padding-bottom: 70px; }
  /* WhatsApp button — mobile: above bottom nav, glassmorphism */
  .whatsapp-float {
    bottom: 80px;
    right: 1rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg,
      rgba(37, 211, 102, 0.85) 0%,
      rgba(32, 189, 90, 0.85) 100%);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 4px 16px rgba(37, 211, 102, 0.3),
      var(--shadow-sm),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: whatsappSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow:
      0 6px 22px rgba(37, 211, 102, 0.45),
      var(--shadow-md),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

/* ══════════════════════════════════════════════════════════
   SEARCH OVERLAY — LIVE SEARCH
   ══════════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,5,16,0.92);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
[data-theme="light"] .search-overlay {
  background: rgba(250,250,248,0.92);
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay__inner {
  width: 100%;
  max-width: 680px;
  padding: 0 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}
.search-overlay.active .search-overlay__inner {
  transform: translateY(0);
}
.search-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.search-overlay__close:hover {
  color: var(--color-text);
  transform: rotate(90deg);
}
.search-overlay__field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-overlay__field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-glow), var(--shadow-md);
}
.search-overlay__icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  padding: 1.25rem 1rem;
  width: 100%;
}
.search-overlay__input::placeholder {
  color: var(--color-text-muted);
}
.search-overlay__spinner {
  flex-shrink: 0;
}
.spinner-dot {
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spinDot 0.7s linear infinite;
}
@keyframes spinDot {
  to { transform: rotate(360deg); }
}
.search-overlay__results {
  margin-top: 1.5rem;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.search-overlay__results::-webkit-scrollbar { width: 4px; }
.search-overlay__results::-webkit-scrollbar-track { background: transparent; }
.search-overlay__results::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* Result Groups */
.search-results__group {
  margin-bottom: 1.5rem;
}
.search-results__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: background 0.25s ease;
  text-decoration: none;
  color: var(--color-text);
}
.search-result-item:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.search-result-item__thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-surface-2);
  flex-shrink: 0;
}
.search-result-item__thumb-placeholder {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.search-result-item__info {
  flex: 1;
  min-width: 0;
}
.search-result-item__title {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
.search-result-item__arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.search-result-item:hover .search-result-item__arrow {
  opacity: 1;
  transform: translateX(0);
}
.search-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.search-no-results__icon {
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.search-hint {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Search toggle responsive */
@media (max-width: 768px) {
  .search-toggle { width: 44px; height: 44px; }
  .search-overlay { padding-top: 6vh; }
  .search-overlay__close { top: 1.25rem; right: 1.25rem; }
  .search-overlay__input { font-size: 1rem; padding: 1rem 0.75rem; }
}

/* ══════════════════════════════════════════════════════════
   MIND-BLOWING EFFECTS v3.0
   Noise grain, aurora, cursor, 3D tilt, cinematic loader,
   split text, clip-path reveals, particle canvas
   ══════════════════════════════════════════════════════════ */

/* ── Particle Canvas ─────────────────────────────────────── */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* ── Noise Grain Overlay ─────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: noiseShift 0.3s steps(3) infinite;
}
@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-5px, -5px); }
  66%  { transform: translate(5px, 3px); }
  100% { transform: translate(0, 0); }
}
[data-theme="light"] .noise-overlay { opacity: 0.02; }

/* ── Aurora Background Blobs ─────────────────────────────── */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  will-change: transform;
}
.aurora-blob--1 {
  width: 600px; height: 600px;
  background: var(--color-accent);
  top: -15%; left: -10%;
}
.aurora-blob--2 {
  width: 500px; height: 500px;
  background: var(--color-accent3);
  bottom: -15%; right: -10%;
}
.aurora-blob--3 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  top: 40%; left: 40%;
}
[data-theme="light"] .aurora-blob { opacity: 0.06; }

/* ── Custom Cursor ───────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
[data-theme="light"] .cursor-ring { border-color: rgba(0,0,0,0.2); }

/* Cursor hover state */
.cursor-dot.hovering {
  width: 0; height: 0;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  border-color: var(--color-accent);
  background: rgba(59,130,246,0.06);
}
/* Cursor click state */
.cursor-dot.clicking {
  width: 4px; height: 4px;
}
.cursor-ring.clicking {
  width: 32px; height: 32px;
  border-color: var(--color-accent2);
}
/* Hide cursor on mobile */
@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
/* Hide default cursor when custom cursor active */
.custom-cursor-active,
.custom-cursor-active * {
  cursor: none !important;
}
.custom-cursor-active a,
.custom-cursor-active button,
.custom-cursor-active .btn,
.custom-cursor-active input,
.custom-cursor-active textarea,
.custom-cursor-active select {
  cursor: none !important;
}

/* ── 3D Tilt Card Glare ──────────────────────────────────── */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.project-card {
  transform-style: preserve-3d;
}

/* ── Cinematic Page Loader ───────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-loader-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  clip-path: inset(0 0 0 0);
}
.loader-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(1.2);
}
.loader-logo svg {
  width: 60px;
  height: 60px;
  color: var(--color-accent);
}
.loader-spinner {
  width: 60px; height: 60px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.loader-progress {
  width: 160px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-progress-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}
.loader-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Split Text Reveal ───────────────────────────────────── */
.split-ready .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-40deg);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--char-index) * 0.025s);
}
.split-revealed .split-char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ── Section Glow Effects (enhanced) ─────────────────────── */
.section-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
.section-glow--accent { background: var(--color-accent); }
.section-glow--purple { background: var(--color-accent3); }
@keyframes glowPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.15); }
}
[data-theme="light"] .section-glow { opacity: 0.06; }

/* ── Enhanced Button Hover — Liquid Fill ─────────────────── */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--btn-mouse-x, 50%) var(--btn-mouse-y, 50%),
    rgba(255,255,255,0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.btn--primary:hover::after { opacity: 1; }

/* ── Scroll Indicator Enhanced ───────────────────────────── */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ── Page Loaded State ───────────────────────────────────── */
body.loaded .hero__grid-pattern {
  animation: gridFade 3s ease-out forwards;
}
@keyframes gridFade {
  0% { opacity: 0; }
  100% { opacity: 0.6; }
}

/* ── Hero Enhanced — Gradient Text Shine ─────────────────── */
.hero__title em {
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes textShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Trust Section Enhanced — Gradient Border ────────────── */
.trust-section {
  position: relative;
}
.trust-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-accent3), transparent);
  opacity: 0.3;
}
.trust-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent3), var(--color-accent), transparent);
  opacity: 0.3;
}

/* ── Project Card Enhanced — Border Gradient on Hover ────── */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--color-accent), var(--color-accent3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover::before { opacity: 1; }

/* ── Counter Enhanced — Glow Number ──────────────────────── */
.counter-item:hover .counter-item__number {
  text-shadow: 0 0 30px rgba(59,130,246,0.3);
}

/* ── Story Card Modules Enhanced ─────────────────────────── */
.story-card__modules li {
  transition: transform 0.3s ease, color 0.3s ease;
}
.story-card:hover .story-card__modules li {
  color: var(--color-text);
}
.story-card:hover .story-card__modules li:hover {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* ── Footer Enhanced — Gradient Top Border ───────────────── */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent3), var(--color-accent2), var(--color-accent));
  background-size: 300% 100%;
  animation: footerGradient 8s linear infinite;
}
@keyframes footerGradient {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ── Badge Glow Pulse ────────────────────────────────────── */
.hero__badge {
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  50%      { box-shadow: 0 0 20px 2px rgba(59,130,246,0.08); }
}

/* ── Hero Orbs Enhanced — Multi-color ────────────────────── */
.hero__orb--1 { animation: orbFloat1 25s ease-in-out infinite; }
.hero__orb--2 { animation: orbFloat2 20s ease-in-out infinite; }
.hero__orb--3 { animation: orbFloat3 22s ease-in-out infinite; }

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); filter: blur(80px) hue-rotate(0deg); }
  25% { transform: translate(50px, -30px) scale(1.1); filter: blur(80px) hue-rotate(15deg); }
  50% { transform: translate(-30px, 50px) scale(0.95); filter: blur(80px) hue-rotate(30deg); }
  75% { transform: translate(30px, 30px) scale(1.05); filter: blur(80px) hue-rotate(15deg); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); filter: blur(80px) hue-rotate(0deg); }
  33% { transform: translate(-40px, 20px) scale(1.08); filter: blur(80px) hue-rotate(-20deg); }
  66% { transform: translate(40px, -20px) scale(0.92); filter: blur(80px) hue-rotate(-10deg); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: blur(80px) hue-rotate(0deg); }
  50% { transform: translate(calc(-50% + 30px), calc(-50% - 40px)) scale(1.15); filter: blur(80px) hue-rotate(25deg); }
}

/* ── Responsive for new effects ──────────────────────────── */
@media (max-width: 768px) {
  .noise-overlay { opacity: 0.02; }
  .aurora-blob { filter: blur(80px); }
  .section-glow { width: 300px; height: 300px; filter: blur(100px); }
  #particle-canvas { pointer-events: none; }
}

/* ══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════════════════════ */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

/* Toggle button */
.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.lang-switcher__toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-border-hover);
  color: var(--color-accent);
}

[data-theme="light"] .lang-switcher__toggle:hover {
  background: rgba(0,0,0,0.05);
}

/* Chevron rotation when open */
.lang-chevron {
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.6;
}
.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 158px;
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  z-index: 9999;
}

.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Individual language options */
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.75rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.lang-switcher__option:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-accent);
}

[data-theme="light"] .lang-switcher__option:hover {
  background: rgba(0,0,0,0.04);
}

.lang-switcher__option.active {
  background: rgba(59,130,246,0.1);
  color: var(--color-accent);
  font-weight: 600;
}

.lang-switcher__option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Flag emoji */
.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

/* RTL: flip dropdown anchor to left side */
[dir="rtl"] .lang-switcher__dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-switcher__option.active::after {
  margin-left: 0;
  margin-right: auto;
}

/* Mobile: slightly smaller */
@media (max-width: 480px) {
  .lang-switcher__toggle {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
  }
  .lang-switcher__current {
    display: none; /* show only globe on very small screens */
  }
}

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES — Replacing inline styles
   ══════════════════════════════════════════════════════════ */

/* Pagination container */
.pagination-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem) 4rem;
}

/* No-posts / empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
}
.empty-state__text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.empty-state__btn {
  margin-top: 1.5rem;
}

/* Related posts / article footer container */
.related-posts-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
}
.related-posts-container h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Tags container */
.article-tags {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem) 2rem;
}
.article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-tags__link {
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all 0.3s ease;
}
.article-tags__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   COMMENTS — Moved from inline styles
   ══════════════════════════════════════════════════════════ */
.comments-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
}
.comments-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.comments-pagination {
  margin-bottom: 2rem;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}
.comment-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.comment-item__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.comment-item__avatar {
  border-radius: 50%;
}
.comment-item__author {
  font-size: 0.95rem;
}
.comment-item__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.comment-item__pending {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-style: italic;
}
.comment-item__body {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.comment-item__reply {
  margin-top: 0.75rem;
}
.comment-reply-link-wrap {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.comments-closed {
  color: var(--color-text-muted);
  font-style: italic;
}
.comment-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.comment-submit-btn {
  margin-top: 1rem;
}
.comment-notes {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.comment-required {
  color: var(--color-accent);
}
.comment-field-wrap {
  margin-bottom: 1rem;
}
.comment-field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.comment-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.comment-textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ══════════════════════════════════════════════════════════
   404 SEARCH FORM
   ══════════════════════════════════════════════════════════ */
.error-404__search {
  max-width: 450px;
  margin: 0 auto 1rem;
}
.error-404__search-form {
  display: flex;
  gap: 0.5rem;
}
.error-404__search-input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.error-404__search-input:focus {
  border-color: var(--color-accent);
  outline: none;
}
.error-404__search-btn {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   ANTI-COPY PROTECTION (blog articles)
   ══════════════════════════════════════════════════════════ */
.article-content.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: filter 0.18s ease;
  isolation: isolate;
}

/* Anti-OCR: subtle SVG noise overlay behind text — drops OCR confidence ~30-50%
   while remaining nearly invisible to human readers. */
.article-content.no-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.article-content.no-copy > * { position: relative; z-index: 1; }

/* Blur on active copy/print/inspect attempt — NOT on hover or focus loss */
.article-content.no-copy.is-locked {
  filter: blur(10px) saturate(0.6);
  pointer-events: none;
}

/* Persistent traceable watermark — fixed corner, very subtle, follows scroll.
   Visible enough to land in screenshots but not bothersome on screen.
   Only on single-post pages where .article-content exists. */
.itskills-trace-wm {
  position: fixed;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
  z-index: 999998;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.18);
  text-shadow: 0 0 1px rgba(255,255,255,0.4);
  user-select: none;
  mix-blend-mode: difference;
}
@media (prefers-color-scheme: dark) {
  .itskills-trace-wm { color: rgba(255,255,255,0.22); }
}

/* Diagonal repeating watermark behind body — survives any full-page screenshot */
body.itskills-protected::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999997;
  background-image:
    repeating-linear-gradient(
      -25deg,
      transparent 0,
      transparent 380px,
      var(--itskills-wm-color, rgba(0,0,0,0.025)) 380px,
      var(--itskills-wm-color, rgba(0,0,0,0.025)) 381px
    );
}
@media (prefers-color-scheme: dark) {
  body.itskills-protected { --itskills-wm-color: rgba(255,255,255,0.04); }
}
.img-shield {
  position: relative;
  display: inline-block;
}
.img-shield::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}
.img-shield img {
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  z-index: 99999;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}
.copy-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Centered watermark flash — large, opaque, pops on every copy attempt
   so the watermark token (visitor hash + UTC) is impossible to miss. */
.itskills-center-wm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
  z-index: 1000000;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1.6rem 2.6rem;
  border-radius: 18px;
  background: #4a0a0a;
  color: #ffe9e9;
  border: 2px solid #7a0e0e;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 8px rgba(122,14,14,0.25);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  max-width: 94vw;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.itskills-center-wm.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: itskills-center-wm-pulse 0.6s ease-out;
}
@keyframes itskills-center-wm-pulse {
  0%   { box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 0 rgba(122,14,14,0.85); }
  60%  { box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 28px rgba(122,14,14,0); }
  100% { box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 8px rgba(122,14,14,0.25); }
}
@media (max-width: 600px) {
  .itskills-center-wm {
    font-size: 1.15rem;
    padding: 1.1rem 1.3rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

/* ══════════════════════════════════════════════════════════
   MASQUAGE DES TAGS D'AUDIT INTERNE (FRONT-END PUBLIC)
   Cible : tout tag dont le slug contient "audit", "claim",
   "fact-check", "factcheck", "source-pass", "per-claim",
   ou "strict-fact". Couplé au filter PHP (HTML + noindex 404).
   Mis à jour 2026-04-30, version 3.1.10.
   ══════════════════════════════════════════════════════════ */

/* 1. Liens de tag par mot-clé interne (EN /tag/ + FR /etiquette/) */
a[href*="/tag/audit"],
a[href*="/tag/claim"],
a[href*="/tag/fact-check"],
a[href*="/tag/factcheck"],
a[href*="/tag/source-pass"],
a[href*="/tag/per-claim"],
a[href*="/tag/strict-fact"],
a[href*="-claim-"],
a[href*="-claim-v"],
a[href*="-fact-check-"],
a[href*="-source-pass-"],
a[href*="/etiquette/audit"],
a[href*="/etiquette/claim"],
a[href*="/etiquette/fact-check"],
a[href*="/etiquette/factcheck"],
a[href*="/etiquette/source-pass"],
a[href*="/etiquette/per-claim"],
a[href*="/etiquette/strict-fact"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* 2. Parents <li> dans tag clouds (navigateurs récents avec :has) */
li:has(> a[href*="/tag/audit"]),
li:has(> a[href*="/tag/claim"]),
li:has(> a[href*="/tag/fact-check"]),
li:has(> a[href*="/tag/factcheck"]),
li:has(> a[href*="/tag/source-pass"]),
li:has(> a[href*="/tag/per-claim"]),
li:has(> a[href*="/tag/strict-fact"]),
li:has(> a[href*="/etiquette/audit"]),
li:has(> a[href*="/etiquette/claim"]),
li:has(> a[href*="/etiquette/fact-check"]),
li:has(> a[href*="/etiquette/factcheck"]),
li:has(> a[href*="/etiquette/source-pass"]),
li:has(> a[href*="/etiquette/per-claim"]),
li:has(> a[href*="/etiquette/strict-fact"]),
li:has(a[href*="/tag/audit"]),
li:has(a[href*="/tag/claim"]),
li:has(a[href*="/tag/fact-check"]),
li:has(a[href*="/tag/source-pass"]),
li:has(a[href*="/tag/per-claim"]),
li:has(a[href*="/tag/strict-fact"]) {
  display: none !important;
}

/* 3. Tag clouds (widgets, blocs Gutenberg, Astra) */
.tag-cloud-link[href*="/tag/audit"],
.tag-cloud-link[href*="/tag/claim"],
.tag-cloud-link[href*="/tag/fact-check"],
.tag-cloud-link[href*="/tag/source-pass"],
.tag-cloud-link[href*="/tag/per-claim"],
.tag-cloud-link[href*="/tag/strict-fact"],
.tag-cloud-link[href*="/etiquette/audit"],
.tag-cloud-link[href*="/etiquette/claim"],
.tag-cloud-link[href*="/etiquette/fact-check"],
.tag-cloud-link[href*="/etiquette/source-pass"],
.tag-cloud-link[href*="/etiquette/per-claim"],
.tag-cloud-link[href*="/etiquette/strict-fact"],
.widget_tag_cloud a[href*="/tag/audit"],
.widget_tag_cloud a[href*="/tag/claim"],
.widget_tag_cloud a[href*="/tag/fact-check"],
.widget_tag_cloud a[href*="/tag/source-pass"],
.widget_tag_cloud a[href*="/tag/per-claim"],
.widget_tag_cloud a[href*="/tag/strict-fact"],
.wp-block-tag-cloud a[href*="/tag/audit"],
.wp-block-tag-cloud a[href*="/tag/claim"],
.wp-block-tag-cloud a[href*="/tag/fact-check"],
.wp-block-tag-cloud a[href*="/tag/source-pass"],
.wp-block-tag-cloud a[href*="/tag/per-claim"],
.wp-block-tag-cloud a[href*="/tag/strict-fact"] {
  display: none !important;
}

/* 4. Méta-données de post (Astra + Elementor + thèmes standards) */
.entry-meta a[href*="/tag/audit"],
.entry-meta a[href*="/tag/claim"],
.entry-meta a[href*="/tag/fact-check"],
.entry-meta a[href*="/tag/source-pass"],
.entry-meta a[href*="/tag/per-claim"],
.entry-meta a[href*="/tag/strict-fact"],
.entry-meta a[href*="/etiquette/audit"],
.entry-meta a[href*="/etiquette/claim"],
.entry-meta a[href*="/etiquette/fact-check"],
.entry-meta a[href*="/etiquette/source-pass"],
.entry-meta a[href*="/etiquette/per-claim"],
.entry-meta a[href*="/etiquette/strict-fact"],
.post-tags a[href*="/tag/audit"],
.post-tags a[href*="/tag/claim"],
.post-tags a[href*="/tag/fact-check"],
.post-tags a[href*="/tag/source-pass"],
.post-tags a[href*="/tag/per-claim"],
.post-tags a[href*="/tag/strict-fact"],
.tags-links a[href*="/tag/audit"],
.tags-links a[href*="/tag/claim"],
.tags-links a[href*="/tag/fact-check"],
.tags-links a[href*="/tag/source-pass"],
.tags-links a[href*="/tag/per-claim"],
.tags-links a[href*="/tag/strict-fact"],
.entry-tags a[href*="/tag/audit"],
.entry-tags a[href*="/tag/claim"],
.entry-tags a[href*="/tag/fact-check"],
.entry-tags a[href*="/tag/source-pass"],
.entry-tags a[href*="/tag/per-claim"],
.entry-tags a[href*="/tag/strict-fact"],
.cat-links a[href*="/tag/audit"],
.cat-links a[href*="/tag/claim"],
.cat-links a[href*="/tag/fact-check"],
.cat-links a[href*="/tag/source-pass"],
.cat-links a[href*="/tag/per-claim"],
.cat-links a[href*="/tag/strict-fact"] {
  display: none !important;
}

/* 5. Pages d'archive de tag d'audit interne : message neutre.
      Le filter PHP itskills_block_audit_tag_archive force déjà un 404 ;
      ce CSS est une 2e ligne de défense visuelle.
      WordPress ajoute la classe body.tag-{slug} sur les pages d'archive. */
body[class*="tag-audit"] .site-content,
body[class*="tag-claim"] .site-content,
body[class*="tag-fact-check"] .site-content,
body[class*="tag-source-pass"] .site-content,
body[class*="tag-per-claim"] .site-content,
body[class*="tag-strict-fact"] .site-content,
body[class*="tag-deep-per"] .site-content,
body[class*="tag-systemic"] .site-content,
body[class*="tag-audit"] .ast-container,
body[class*="tag-claim"] .ast-container,
body[class*="tag-fact-check"] .ast-container,
body[class*="tag-source-pass"] .ast-container,
body[class*="tag-per-claim"] .ast-container,
body[class*="tag-strict-fact"] .ast-container,
body[class*="tag-deep-per"] .ast-container,
body[class*="tag-systemic"] .ast-container,
body[class*="tag-audit"] .entry-content,
body[class*="tag-claim"] .entry-content,
body[class*="tag-fact-check"] .entry-content,
body[class*="tag-source-pass"] .entry-content,
body[class*="tag-per-claim"] .entry-content,
body[class*="tag-strict-fact"] .entry-content,
body[class*="tag-deep-per"] .entry-content,
body[class*="tag-systemic"] .entry-content,
body[class*="tag-audit"] main,
body[class*="tag-claim"] main,
body[class*="tag-fact-check"] main,
body[class*="tag-source-pass"] main,
body[class*="tag-per-claim"] main,
body[class*="tag-strict-fact"] main,
body[class*="tag-deep-per"] main,
body[class*="tag-systemic"] main,
body[class*="tag-audit"] article,
body[class*="tag-claim"] article,
body[class*="tag-fact-check"] article,
body[class*="tag-source-pass"] article,
body[class*="tag-per-claim"] article,
body[class*="tag-strict-fact"] article,
body[class*="tag-deep-per"] article,
body[class*="tag-systemic"] article {
  display: none !important;
}
body[class*="tag-audit"]::before,
body[class*="tag-claim"]::before,
body[class*="tag-fact-check"]::before,
body[class*="tag-source-pass"]::before,
body[class*="tag-per-claim"]::before,
body[class*="tag-strict-fact"]::before,
body[class*="tag-deep-per"]::before,
body[class*="tag-systemic"]::before {
  content: "Page non disponible";
  display: block;
  text-align: center;
  padding: 6rem 1rem;
  font-size: 1.5rem;
  color: var(--color-text-muted, #888);
  font-family: var(--font-display, Georgia, serif);
}

/* ══════════════════════════════════════════════════════════
   ARTICLE LAYOUT — content + sticky sidebar (desktop ≥1024px)
   ══════════════════════════════════════════════════════════ */
.article-layout {
    display: block;
}
.article-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 48px;
        align-items: start;
    }
    .article-sidebar {
        display: block;
        /* -webkit-sticky : préfixe legacy pour iOS Safari < 13. Modernes
           ignorent. Doit précéder la valeur non-préfixée. */
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        /* align-self: start renforce align-items:start du parent grid —
           sans ça, certains navigateurs étirent l'item à la hauteur de la
           ligne, et un sticky qui remplit toute la ligne ne peut pas
           "coller" puisqu'il n'y a aucun espace pour le faire. */
        align-self: start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* ── Mid-article ad ── */
.blog-ad--midarticle {
    margin: 36px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(96,165,250,0.04));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 12px;
    position: relative;
}
.blog-ad--midarticle .blog-ad__title { margin: 6px 0 10px; font-size: 1.4rem; }
.blog-ad--midarticle .blog-ad__cta {
    display: inline-block; margin-top: 12px;
    padding: 10px 22px;
    background: var(--color-accent, #3b82f6); color: #fff;
    border-radius: 8px; text-decoration: none; font-weight: 600;
    transition: background 0.2s;
}
.blog-ad--midarticle .blog-ad__cta:hover { background: var(--color-accent2, #60a5fa); }

/* ── Sticky sidebar ad ── */
.blog-ad--sticky {
    background: var(--color-surface-2, #101025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.blog-ad--sticky__image {
    width: 100%; height: 140px;
    background-size: cover;
    background-position: center;
}
.blog-ad--sticky__inner { padding: 18px 20px 22px; }
.blog-ad--sticky .blog-ad__label {
    display: inline-block; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--color-accent, #3b82f6);
    margin-bottom: 8px;
}
.blog-ad--sticky .blog-ad__title { margin: 4px 0 8px; font-size: 1.15rem; line-height: 1.3; }
.blog-ad--sticky .blog-ad__desc { font-size: 0.92rem; opacity: 0.85; margin: 0 0 14px; }
.blog-ad--sticky .blog-ad__cta {
    display: block; text-align: center;
    padding: 11px 16px;
    background: var(--color-accent, #3b82f6); color: #fff;
    border-radius: 8px; text-decoration: none; font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   PAGE SPONSORS (page-sponsors.php template)
   ══════════════════════════════════════════════════════════ */
.sponsors-page { color: var(--color-text); }
.sponsors-page .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sponsors-page .section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; text-align: center; }
.sponsors-page .section-lead { text-align: center; font-size: 16px; opacity: 0.8; margin: 0 auto 48px; max-width: 640px; }

/* Hero */
.sponsors-hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.sponsors-hero__badge { display: inline-block; padding: 6px 16px; background: rgba(59,130,246,0.15); color: var(--color-accent); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 999px; margin-bottom: 20px; }
.sponsors-hero__title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); margin: 0 0 20px; line-height: 1.15; }
.sponsors-hero__lead { font-size: 18px; max-width: 720px; margin: 0 auto 36px; opacity: 0.9; line-height: 1.6; }
.sponsors-hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sponsors-hero .btn-primary, .sponsors-hero .btn-secondary { padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; }
.sponsors-hero .btn-primary { background: var(--color-accent); color: #fff; }
.sponsors-hero .btn-secondary { background: rgba(255,255,255,0.06); color: var(--color-text); border: 1px solid rgba(255,255,255,0.15); }
.sponsors-hero .btn-primary:hover, .sponsors-hero .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Intro WP editor content */
.sponsors-intro { padding: 40px 24px; max-width: 800px; }
.sponsors-intro .prose { font-size: 17px; line-height: 1.8; }

/* Tier cards */
.sponsors-tiers { padding: 80px 0; }
.sponsors-tiers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.tier-card { position: relative; background: var(--color-surface-2); padding: 40px 28px 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.tier-card--recommended { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.tier-card__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }
.tier-card__icon { font-size: 40px; margin-bottom: 8px; }
.tier-card__name { font-family: var(--font-display); font-size: 24px; margin: 0 0 16px; }
.tier-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.tier-card__amount { font-size: 40px; font-weight: 800; color: var(--color-accent); line-height: 1; }
.tier-card__currency { font-size: 18px; font-weight: 600; }
.tier-card__period { font-size: 14px; opacity: 0.7; }
.tier-card__commitment { font-size: 13px; opacity: 0.75; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tier-card__features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier-card__features li { padding: 8px 0; font-size: 14px; line-height: 1.5; padding-left: 24px; position: relative; }
.tier-card__features li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--color-accent); font-weight: 700; }
.tier-card__annual { font-size: 13px; padding: 10px 12px; background: rgba(59,130,246,0.08); border-radius: 6px; margin-bottom: 20px; }
.tier-card__cta { display: block; padding: 14px 20px; background: var(--color-accent); color: #fff; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.tier-card__cta:hover { background: var(--color-accent2); }
.sponsors-tiers__note { margin-top: 40px; padding: 20px 24px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 14px; line-height: 1.7; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Current sponsors */
.sponsors-current { padding: 60px 0; background: var(--color-surface); }
.sponsors-current__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.sponsor-logo { padding: 16px 24px; background: rgba(255,255,255,0.04); border-radius: 8px; min-height: 80px; display: flex; align-items: center; transition: opacity 0.2s; opacity: 0.8; }
.sponsor-logo:hover { opacity: 1; }
.sponsor-logo img { max-height: 60px; max-width: 200px; object-fit: contain; }
.sponsor-logo__name { font-weight: 600; font-size: 16px; }

/* Formats */
.sponsors-formats { padding: 80px 0; }
.sponsors-formats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.format-card { background: var(--color-surface-2); padding: 28px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); }
.format-card h3 { font-size: 20px; margin: 0 0 12px; }
.format-card p { opacity: 0.85; line-height: 1.6; margin-bottom: 16px; }
.format-card__specs { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.format-card__specs li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.format-card__specs li:last-child { border-bottom: none; }

/* Process */
.sponsors-process { padding: 80px 0; background: var(--color-surface); }
.sponsors-process__steps { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.sponsors-process__steps li { position: relative; padding: 24px; background: var(--color-surface-2); border-radius: 12px; }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--color-accent); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 12px; }
.sponsors-process__steps h3 { font-size: 18px; margin: 0 0 8px; }
.sponsors-process__steps p { font-size: 14px; opacity: 0.85; line-height: 1.6; margin: 0; }

/* FAQ */
.sponsors-faq { padding: 80px 0; }
.sponsors-faq .container { max-width: 800px; }
.faq-item { background: var(--color-surface-2); border-radius: 8px; margin-bottom: 12px; padding: 18px 22px; cursor: pointer; transition: background 0.2s; }
.faq-item:hover { background: rgba(255,255,255,0.04); }
.faq-item summary { font-weight: 600; font-size: 16px; outline: none; }
.faq-item[open] summary { margin-bottom: 12px; }
.faq-item p { margin: 0; line-height: 1.7; opacity: 0.9; }

/* Final CTA */
.sponsors-cta-final { padding: 80px 0 100px; text-align: center; background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.sponsors-cta-final h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.sponsors-cta-final p { font-size: 17px; opacity: 0.85; margin-bottom: 32px; }
.sponsors-cta-final__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 16px 32px; font-size: 16px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: transform 0.2s; }
.btn-lg:hover { transform: translateY(-2px); }
.btn-lg.btn-primary { background: #25D366; color: #fff; }    /* WhatsApp green */
.btn-lg.btn-secondary { background: var(--color-accent); color: #fff; }

/* ══════════════════════════════════════════════════════════
   HEADER — bouton "Devenir partenaire"
   ══════════════════════════════════════════════════════════ */
.nav-sponsor-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f4c842 100%);  /* or-doré */
    color: #1a1a1a !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 8px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    white-space: nowrap;
}
.nav-sponsor-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.35);
    filter: brightness(1.05);
    color: #1a1a1a !important;
}
.nav-sponsor-cta svg { flex-shrink: 0; }
@media (max-width: 1024px) {
    .nav-sponsor-cta { display: none; }  /* visible seulement sur desktop, repris dans la mobile-nav */
}

.btn--sponsor-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;       /* ne prend pas toute la largeur du flex parent */
    padding: 8px 16px;            /* compact, plus petit que les liens nav */
    background: linear-gradient(135deg, #d4af37 0%, #f4c842 100%);
    color: #1a1a1a !important;
    border-radius: 999px;         /* pill, cohérent avec version desktop */
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.2s;
    white-space: nowrap;
}
.btn--sponsor-mobile:hover {
    filter: brightness(1.05);
    color: #1a1a1a !important;
}

/* ── CTA Blocs Monétisation (itskc-cta) ────────────────────────────────────
   Styles pour les blocs email/WhatsApp insérés dans les articles.
   Les inline style= dans le HTML sont conservés comme surcharge ponctuelle.
   ────────────────────────────────────────────────────────────────────────── */
.itskc-cta {
    margin: 2em 0;
    padding: 1.4em 1.6em;
    border-radius: 6px;
    overflow: hidden;
}
.itskc-cta-service {
    border-left: 4px solid #0a6ebd;
    background: #eef6fb;
}
.itskc-cta-hostinger {
    border-left: 4px solid #673de6;
    background: #f7f5ff;
}
.itskc-cta h3 {
    margin-top: 0;
    margin-bottom: .4em;
    font-size: 1.08em;
    line-height: 1.35;
}
.itskc-cta p {
    margin: .4em 0;
    font-size: .95em;
}
/* Ligne de boutons — flex côte à côte */
.itskc-cta p:has(> a[href^="mailto:"]),
.itskc-cta p:has(> a[href^="https://wa.me"]) {
    display: flex;
    flex-wrap: wrap;
    gap: .55em;
    align-items: center;
    margin: .9em 0 .4em;
}
/* Bouton Email */
.itskc-cta a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .5em 1.15em;
    background: #0a6ebd;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88em;
    text-decoration: none !important;
    line-height: 1.3;
    white-space: nowrap;
    transition: filter .18s, transform .15s;
    box-shadow: 0 1px 3px rgba(10,110,189,.25);
}
.itskc-cta a[href^="mailto:"]:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    color: #fff !important;
}
/* Bouton WhatsApp */
.itskc-cta a[href^="https://wa.me"] {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .5em 1.15em;
    background: #25d366;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88em;
    text-decoration: none !important;
    line-height: 1.3;
    white-space: nowrap;
    transition: filter .18s, transform .15s;
    box-shadow: 0 1px 3px rgba(37,211,102,.3);
}
.itskc-cta a[href^="https://wa.me"]:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff !important;
}
/* Lien Hostinger (affiliation) */
.itskc-cta-hostinger a:not([href^="mailto:"]):not([href^="https://wa.me"]) {
    color: #673de6;
    font-weight: 600;
}
/* Responsive : boutons pleine largeur sur très petit écran */
@media (max-width: 380px) {
    .itskc-cta a[href^="mailto:"],
    .itskc-cta a[href^="https://wa.me"] {
        width: 100%;
        justify-content: center;
    }
}
