/* ═══════════════════════════════════════════════════════════════════════════
   portfolio-2026.css  |  Design system — Vitrine · Blog · Portfolio
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --primary:        #6366f1;
  --primary-light:  #818cf8;
  --primary-dark:   #4f46e5;
  --secondary:      #8b5cf6;
  --accent:         #06b6d4;
  --accent-warm:    #f59e0b;

  --dark-950: #020617;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;

  --light-50:  #f8fafc;
  --light-100: #f1f5f9;
  --light-200: #e2e8f0;
  --light-300: #cbd5e1;

  --text-dark:  #0f172a;
  --text-body:  #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --shadow-xl: 0 28px 80px rgba(0,0,0,.20);

  --ease: cubic-bezier(.4,0,.2,1);
  --transition: all .3s var(--ease);

  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* CMS-overridable brand colours */
  --brand:       var(--primary);
  --brand-hover: var(--primary-dark);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--light-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--transition); }

/* ── Utility helpers ───────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section shells ────────────────────────────────────────────────────────── */
.section-2026        { padding: 6rem 0; }
.section-dark        { background: var(--dark-900); color: var(--text-light); }
.section-darker      { background: var(--dark-800); color: var(--text-light); }
.section-light       { background: var(--light-50);  color: var(--text-dark); }
.section-soft        { background: var(--light-100); color: var(--text-dark); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  background: rgba(99,102,241,.10);
  border: 1px solid rgba(99,102,241,.20);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.section-dark  .section-eyebrow,
.section-darker .section-eyebrow { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.3); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-dark  .section-subtitle,
.section-darker .section-subtitle { color: rgba(248,250,252,.55); }

.section-divider {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: .9rem auto 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-2026-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 600; font-size: .93rem;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(99,102,241,.32);
  transition: var(--transition);
}
.btn-2026-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(99,102,241,.42);
  color: #fff;
}

.btn-2026-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.75rem;
  background: transparent;
  color: var(--primary-light);
  font-weight: 600; font-size: .93rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(99,102,241,.35);
  cursor: pointer;
  transition: var(--transition);
}
.btn-2026-outline:hover {
  background: rgba(99,102,241,.08);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  color: var(--primary-light);
}

.btn-2026-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem;
  background: rgba(255,255,255,.06);
  color: rgba(248,250,252,.88);
  font-weight: 500; font-size: .88rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  transition: var(--transition);
}
.btn-2026-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-1px);
}

.btn-2026-white {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem;
  background: #fff; color: var(--primary-dark);
  font-weight: 700; font-size: .97rem;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: var(--transition);
}
.btn-2026-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  color: var(--primary-dark);
}

/* ── NAVBAR ────────────────────────────────────────────────────────────────── */
#nav-2026 {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .9rem 0;
  background: transparent;
  transition: var(--transition);
}
#nav-2026.scrolled {
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: .55rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.28);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
  font-size: 1.45rem; font-weight: 800; color: #fff;
  letter-spacing: -.03em; flex-shrink: 0;
}
.nav-logo span { color: var(--primary-light); }
.nav-logo img  { max-height: 38px; }

.nav-links {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links .nav-item-2026 { position: relative; }
.nav-links .nav-link-2026 {
  display: block; padding: .45rem .85rem;
  color: rgba(255,255,255,.82); font-weight: 500; font-size: .88rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links .nav-link-2026:hover,
.nav-links .nav-link-2026.active { color: #fff; background: rgba(255,255,255,.08); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + .6rem); left: 0;
  background: rgba(15,23,42,.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: .4rem;
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  list-style: none; margin: 0;
}
.nav-item-2026:hover .nav-dropdown,
.nav-item-2026.open  .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: .45rem .7rem;
  color: rgba(255,255,255,.75); font-size: .86rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.nav-dropdown li a:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Navbar right actions */
.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Language toggle */
#lang-toggle {
  padding: .3rem .7rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.82);
  font: 700 .75rem/1 var(--font);
  letter-spacing: .06em; cursor: pointer;
  transition: var(--transition);
}
#lang-toggle:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Mobile hamburger */
#nav-toggle {
  display: none; width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xs); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: var(--transition);
}
#nav-toggle:hover { background: rgba(255,255,255,.13); }
#nav-toggle .bar {
  width: 18px; height: 1.5px; background: #fff;
  border-radius: 1px; transition: var(--transition);
}

/* ── Mobile drawer (side panel) ─────────────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: auto;                        /* drawer depuis la droite */
  width: min(82vw, 340px);
  background: rgba(7,10,25,.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0 1.4rem;
  box-shadow: -8px 0 40px rgba(0,0,0,.45);
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Backdrop semi-transparent derrière le drawer */
#mob-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#mob-backdrop.visible {
  opacity: 1; pointer-events: all;
}

/* Header inside mobile menu */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mob-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.04em;
}
.mob-brand span { color: var(--primary); }

#mobile-close {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
#mobile-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Navigation links */
.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 1rem 0;
}
.mob-link {
  display: block;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: rgba(255,255,255,.82);
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s ease, padding-left .2s ease;
  position: relative;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: #fff; padding-left: .6rem; }
.mob-link::before {
  content: '';
  position: absolute;
  left: -1.5rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: height .2s ease;
}
.mob-link:hover::before { height: 60%; }
.mob-link-cta { color: var(--primary-light) !important; }

/* Footer inside mobile menu */
.mob-footer {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.mob-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.mob-pill:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero-2026 {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #050e1f 0%, #071c3a 35%, #0b2d5c 65%, #0d3570 100%);
  overflow: hidden;
}

/* Sky-blue ambient gradient blobs */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 62%  -5%, rgba(14,165,233,.28),  transparent 65%),
    radial-gradient(ellipse 50% 50% at 10%  80%, rgba(56,189,248,.18),  transparent 60%),
    radial-gradient(ellipse 40% 35% at 88%  75%, rgba(99,102,241,.14),  transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 110%, rgba(56,189,248,.12),  transparent 50%);
}

/* Subtle sky-blue grid overlay */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 110% 90% at 50% 0%, black 30%, transparent);
  -webkit-mask-image: radial-gradient(ellipse 110% 90% at 50% 0%, black 30%, transparent);
}

/* Carousel image hero variant */
.hero-2026 .hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-2026 .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(9,14,34,.92) 0%, rgba(9,14,34,.55) 60%, rgba(9,14,34,.25) 100%);
}

.hero-content-2026 {
  position: relative; z-index: 2;
  padding: 9rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem 1rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity:1; transform:scale(1); }
  50%       { opacity:.4; transform:scale(.75); }
}

.hero-name {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.05;
  color: #fff; margin-bottom: .5rem;
}
.hero-name .accent { color: var(--primary-light); }

.hero-role {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400; color: rgba(248,250,252,.55);
  margin-bottom: 1.75rem; max-width: 480px; line-height: 1.7;
}
.hero-role strong { color: rgba(248,250,252,.82); font-weight: 600; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-bottom: 4rem;
}

.hero-scroll-indicator {
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(248,250,252,.3); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-scroll-indicator .scroll-track {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Hero — two-column split (Variant B) ───────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-visual-col {
  display: flex; align-items: center; justify-content: flex-end;
}

/* Avatar scene: contains the circle + floating badges */
.hero-avatar-scene {
  position: relative;
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 1;
  flex-shrink: 0;
}

/* Gradient-border ring around the photo */
.hero-avatar-wrap {
  width: 100%; height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--secondary) 100%);
  box-shadow: 0 0 80px rgba(99,102,241,.28), 0 0 40px rgba(6,182,212,.1);
}

.hero-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dark-800);
}

.hero-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* Placeholder when no photo is configured */
.hero-avatar-placeholder-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--dark-800), rgba(99,102,241,.15), var(--dark-700));
  color: rgba(99,102,241,.45); font-size: 3.5rem;
}

/* Floating tech badges */
.hero-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .9rem;
  background: rgba(9,14,34,.88);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .73rem; font-weight: 600; letter-spacing: .01em;
  color: rgba(248,250,252,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  white-space: nowrap;
  user-select: none;
}
.hero-badge i { font-size: .68rem; }

.hero-badge-1 { top: 2%;    right: -10%; animation: badge-float 5s   ease-in-out infinite; }
.hero-badge-2 { top: 42%;   right: -14%; animation: badge-float 6.5s ease-in-out infinite .7s; }
.hero-badge-3 { bottom: 22%; left: -8%;  animation: badge-float 4.8s ease-in-out infinite 1.2s; }
.hero-badge-4 { bottom: 2%;  right: -8%; animation: badge-float 5.5s ease-in-out infinite .35s; }
.hero-badge-5 { top: 2%;    left: -10%; animation: badge-float 5.2s ease-in-out infinite .5s; }
.hero-badge-6 { top: 42%;   left: -14%; animation: badge-float 6s   ease-in-out infinite 1s; }
.hero-badge-7 { bottom: 22%; right: -12%; animation: badge-float 5.8s ease-in-out infinite 1.5s; }
.hero-badge-8 { bottom: 2%;  left: -10%; animation: badge-float 4.6s ease-in-out infinite .9s; }
.hero-badge-9 { top: 22%;  left: -14%; animation: badge-float 5.4s ease-in-out infinite 1.3s; }

@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Bootstrap carousel override for CMS images */
#hero-carousel { margin-top: 0; }
#hero-carousel .carousel-item {
  height: 80vh; min-height: 500px;
}
#hero-carousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
}
#hero-carousel .carousel-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9,14,34,.88) 0%, rgba(9,14,34,.45) 60%, transparent);
  z-index: 1;
}
#hero-carousel .carousel-caption {
  position: absolute; top: 50%; left: 6%; right: auto;
  transform: translateY(-50%);
  text-align: left; z-index: 2;
  max-width: 55%;
  bottom: auto;
  padding: 0;
}
#hero-carousel .carousel-caption h5 {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.025em;
  color: #fff; margin-bottom: .9rem;
  line-height: 1.15;
}
#hero-carousel .carousel-indicators { z-index: 3; }

/* ── STATS ─────────────────────────────────────────────────────────────────── */
.stats-grid-2026 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.stat-card-2026 {
  text-align: center; padding: 2.25rem 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.stat-card-2026:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(99,102,241,.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(99,102,241,.12);
}
.stat-card-2026::after {
  content: '';
  display: block;
  height: 2px; width: 0; margin: .9rem auto 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 999px;
  transition: width .5s var(--ease);
}
.stat-card-2026:hover::after { width: 50%; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .45rem; line-height: 1;
}
.stat-label {
  font-size: .85rem; font-weight: 500;
  color: rgba(248,250,252,.55); letter-spacing: .02em;
}

/* ── PROJECT CARDS ─────────────────────────────────────────────────────────── */
.projects-grid-2026 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.project-card-2026 {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--light-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card-2026:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99,102,241,.2);
}
.project-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--dark-800);
}
.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.project-card-2026:hover .project-img-wrap img { transform: scale(1.07); }
.project-img-wrap .project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75), transparent 55%);
  opacity: 0; transition: var(--transition);
}
.project-card-2026:hover .project-overlay { opacity: 1; }

.project-body-2026 {
  padding: 1.5rem; flex: 1;
  display: flex; flex-direction: column;
}
.project-badge {
  display: inline-flex; padding: .22rem .7rem;
  background: rgba(99,102,241,.09);
  color: var(--primary-dark); border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.project-card-2026 h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: .6rem;
  letter-spacing: -.01em; line-height: 1.35;
}
.project-card-2026 p {
  font-size: .88rem; color: var(--text-muted);
  line-height: 1.68; margin-bottom: 1.25rem; flex: 1;
}
.project-link-2026 {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.project-link-2026:hover { gap: .7rem; color: var(--primary-dark); }

.project-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--dark-800) 0%, rgba(99,102,241,.14) 50%, var(--dark-700) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 18px,
    rgba(255,255,255,.025) 18px, rgba(255,255,255,.025) 19px
  );
}
.project-placeholder i {
  position: relative; z-index: 1;
  font-size: 2.5rem;
  color: rgba(99,102,241,.4);
  filter: drop-shadow(0 0 20px rgba(99,102,241,.35));
}

/* ── BLOG CARDS ────────────────────────────────────────────────────────────── */
.blog-grid-2026 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}
.blog-card-2026 {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.blog-card-2026:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(99,102,241,.28);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.blog-img-wrap {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--dark-700);
}
.blog-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card-2026:hover .blog-img-wrap img { transform: scale(1.07); }
.blog-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark-800) 0%, rgba(99,102,241,.16) 45%, rgba(6,182,212,.1) 75%, var(--dark-700) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,.018) 20px, rgba(255,255,255,.018) 21px),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(99,102,241,.12), transparent 70%);
}
.blog-img-placeholder i {
  position: relative; z-index: 1;
  font-size: 2rem;
  color: rgba(99,102,241,.38);
  filter: drop-shadow(0 0 22px rgba(99,102,241,.45));
}

.blog-body-2026 {
  padding: 1.4rem; flex: 1;
  display: flex; flex-direction: column;
}
.blog-cat-badge {
  display: inline-flex; padding: .2rem .65rem;
  background: rgba(6,182,212,.12); color: var(--accent);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: .7rem;
}
.blog-card-2026 h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: .55rem;
  letter-spacing: -.01em; line-height: 1.4; flex: 1;
}
.blog-card-2026 p {
  font-size: .86rem; color: rgba(248,250,252,.55);
  line-height: 1.7; margin-bottom: 1.1rem;
}
.blog-meta-2026 {
  display: flex; align-items: center; gap: .9rem;
  font-size: .78rem; color: rgba(248,250,252,.4); margin-bottom: .9rem;
}
.blog-link-2026 {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .83rem; font-weight: 700;
  color: var(--primary-light); transition: var(--transition);
  margin-top: auto;
}
.blog-link-2026:hover { gap: .7rem; color: var(--accent); }

/* ── SKILLS / PICTOS ───────────────────────────────────────────────────────── */
.skills-grid-2026 {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1.25rem;
}
.skill-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: .7rem; padding: 1.5rem 1.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); min-width: 130px;
  transition: var(--transition); text-align: center;
}
.skill-tile:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99,102,241,.15);
}
.skill-tile img { width: 54px; height: 54px; object-fit: contain; }
.skill-tile h6 { font-size: .82rem; font-weight: 600; color: rgba(248,250,252,.75); margin: 0; }

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.cta-2026 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  padding: 6.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-2026::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-2026 > .container { position: relative; z-index: 1; }
.cta-2026 h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.025em; margin-bottom: 1rem;
}
.cta-2026 p {
  font-size: 1.1rem; color: rgba(255,255,255,.78); margin-bottom: 2.25rem;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.footer-2026 {
  background: var(--dark-950);
  color: rgba(248,250,252,.6);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid-2026 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 2rem;
}
/* footer responsive → see main @media (max-width: 767px) section */

.footer-logo-2026 {
  font-size: 1.65rem; font-weight: 900; color: #fff;
  letter-spacing: -.03em; display: inline-block; margin-bottom: .9rem;
}
.footer-logo-2026 span { color: var(--primary-light); }
.footer-tagline { font-size: .88rem; color: rgba(248,250,252,.42); margin-bottom: 1.4rem; }

.footer-social-2026 { display: flex; gap: .65rem; }
.footer-social-2026 a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: rgba(248,250,252,.55); font-size: .88rem;
  transition: var(--transition);
}
.footer-social-2026 a:hover {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.3);
  color: var(--primary-light);
  transform: translateY(-2px);
}
.footer-nav-col h4 {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(248,250,252,.35); margin-bottom: 1.1rem;
}
.footer-nav-col ul { list-style:none; padding:0; margin:0; }
.footer-nav-col ul li { margin-bottom: .65rem; }
.footer-nav-col ul li a {
  color: rgba(248,250,252,.55); font-size: .88rem;
  transition: var(--transition);
}
.footer-nav-col ul li a:hover { color: #fff; }

.footer-bottom-2026 {
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom-2026 p { font-size: .82rem; color: rgba(248,250,252,.35); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .8rem; color: rgba(248,250,252,.35); transition: var(--transition); }
.footer-legal a:hover { color: rgba(248,250,252,.72); }

/* ── SCROLL TO TOP ─────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 42px; height: 42px;
  background: var(--primary); color: #fff;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 6px 20px rgba(99,102,241,.42);
  opacity: 0; transform: translateY(10px);
  transition: var(--transition); z-index: 500;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(99,102,241,.52); }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tablet  (< 992px) ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-links, .nav-actions .btn-2026-primary { display: none !important; }
  #nav-toggle { display: flex; }

  .projects-grid-2026 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid-2026     { grid-template-columns: repeat(2, 1fr); }

  /* Hero split → single column on tablet, hide visual col */
  .hero-split       { grid-template-columns: 1fr; gap: 0; }
  .hero-visual-col  { display: none; }
}

/* ── Phone (< 768px) ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* ─ Sections ─ */
  .section-2026   { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-title  { font-size: clamp(1.45rem, 6vw, 2rem); }
  .section-subtitle { font-size: .9rem; }
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* ─ Navbar ─ */
  .nav-inner        { padding: 0 1rem; min-height: 58px; }
  #lang-toggle      { display: none; }
  #theme-toggle     { width: 34px; height: 34px; }

  /* ─ Hero (variant B — gradient) : 72% de l'écran → bloc suivant bien visible ─ */
  .hero-2026 { min-height: 72svh; min-height: 72vh; }
  .hero-content-2026 { padding: 0 1.1rem; }
  .hero-name  {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.05;
    margin-bottom: .5rem;
  }
  .hero-role  { font-size: .88rem; margin-bottom: 1.4rem; }
  .hero-eyebrow { font-size: .72rem; padding: .3rem .75rem; margin-bottom: .85rem; }
  .hero-cta   {
    flex-direction: column;
    gap: .7rem;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
  .hero-cta a {
    width: 100%;
    justify-content: center;
    padding: .85rem 1.25rem;
    font-size: .95rem;
  }
  .hero-scroll-indicator { display: none; }

  /* ─ Hero (variant A — carousel) ─ */
  /* Hauteur réduite pour laisser le bloc suivant bien visible */
  .hero-2026[id="hero"] { min-height: 72svh; min-height: 72vh; }
  #hero-carousel,
  #hero-carousel .carousel-inner,
  #hero-carousel .carousel-item { height: 72svh !important; height: 72vh !important; min-height: unset !important; }
  /* Fond sombre + overlay fort pour masquer textes de test (Slide 1, Slide 2…) */
  #hero-carousel .carousel-item { background: var(--dark-900); }
  #hero-carousel .carousel-item::after {
    background: linear-gradient(105deg, rgba(9,14,34,.96) 0%, rgba(9,14,34,.75) 55%, rgba(9,14,34,.40) 100%) !important;
  }

  /* Masquer les flèches sur mobile */
  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next { display: none !important; }

  /* Caption pleine largeur */
  #hero-carousel .carousel-caption {
    left: 5% !important;
    right: 5% !important;
    max-width: 90% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    text-align: left !important;
  }
  #hero-carousel .hero-name  { font-size: clamp(2rem, 9vw, 3rem) !important; }
  #hero-carousel .hero-role  { font-size: .9rem !important; }
  #hero-carousel .hero-cta   { flex-direction: column; gap: .65rem; }
  #hero-carousel .hero-cta a { width: 100%; justify-content: center; }

  /* Indicateurs en bas */
  .carousel-indicators { bottom: 1rem !important; }

  /* Scroll indicator */
  .hero-scroll-indicator { bottom: 1.5rem; }

  /* ─ Stats ─ */
  .stats-grid-2026    { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card-2026     { padding: 1.5rem 1rem; }
  .stat-number        { font-size: 2.2rem; }

  /* ─ Projects ─ */
  .projects-grid-2026 { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-card-2026  { border-radius: var(--radius-md); }
  .project-img-wrap   { height: 200px; }
  .project-img-wrap img { height: 200px; }
  .project-body-2026  { padding: 1.1rem; }
  .project-placeholder { min-height: 160px; }

  /* ─ Skills ─ */
  .skills-grid-2026   { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .skill-tile         { padding: .85rem .4rem; border-radius: var(--radius-sm); }
  .skill-tile h6      { font-size: .72rem; }

  /* ─ Blog ─ */
  .blog-grid-2026     { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-img-wrap      { height: 180px; }
  .blog-body-2026     { padding: 1.1rem; }

  /* ─ CMS content ─ */
  .cms-dark-card      { padding: 1.25rem 1rem; border-radius: var(--radius-md); }

  /* ─ Page headers ─ */
  .page-header-2026   { padding: 5.5rem 0 2.5rem; }
  .breadcrumb-2026    { font-size: .78rem; margin-bottom: .75rem; }
  .eyebrow-tag        { font-size: .72rem; }

  /* ─ Gallery ─ */
  .img-box-tile       { width: calc(50% - .5rem) !important; height: 150px !important; }

  /* ─ CTA ─ */
  .cta-2026           { padding: 4rem 1rem; }
  .cta-2026 h2        { font-size: 1.7rem; }

  /* ─ Footer ─ */
  .footer-2026        { padding: 3rem 0 1.5rem; }
  .footer-grid-2026   { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-social-2026 { justify-content: center; }
  .footer-nav-col ul  { text-align: center; }
  .footer-bottom-2026 { flex-direction: column; gap: .6rem; text-align: center; }

  /* ─ Contact ─ */
  .contact-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrap h2 { font-size: 1.3rem !important; }

  /* ─ Scroll top ─ */
  #scroll-top { width: 42px; height: 42px; right: 1rem; bottom: 1rem; font-size: .85rem; }

  /* ─ Buttons (forms/CTA) ─ */
  .btn-2026-primary,
  .btn-2026-outline,
  .btn-2026-white  { padding: .78rem 1.25rem; font-size: .9rem; }
}

/* ── Very small phones (< 400px) ─────────────────────────────────────────────── */
@media (max-width: 400px) {
  .stats-grid-2026  { grid-template-columns: 1fr; }
  .skills-grid-2026 { grid-template-columns: repeat(2, 1fr); }
  .hero-name        { font-size: 2rem !important; }
}

/* ── PAGE HEADER (shared by all secondary pages) ───────────────────────────── */
.page-header-2026 {
  background: var(--dark-900); position: relative; overflow: hidden;
  padding: 9rem 0 4.5rem;
}
.page-header-2026 .ph-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 60% -10%, rgba(99,102,241,.22), transparent 65%),
    radial-gradient(ellipse 40% 40% at 10%  90%, rgba(6,182,212,.12), transparent 55%);
}
.page-header-2026 .ph-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 70% 0%, black 20%, transparent);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 70% 0%, black 20%, transparent);
}
.page-header-2026 .ph-content { position: relative; z-index: 1; }
.page-header-2026 .ph-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .85rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.22);
  border-radius: 999px; color: var(--primary-light);
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-header-2026 h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  color: #fff; letter-spacing: -.035em; line-height: 1.1;
  margin-bottom: .75rem;
}
.page-header-2026 p.subtitle {
  font-size: 1.05rem; color: rgba(248,250,252,.55);
  max-width: 520px; line-height: 1.7;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────────────────── */
.breadcrumb-2026 {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(248,250,252,.45);
  margin-bottom: 1.5rem;
}
.breadcrumb-2026 a { color: rgba(248,250,252,.55); transition: var(--transition); }
.breadcrumb-2026 a:hover { color: var(--primary-light); }
.breadcrumb-2026 .sep { opacity: .35; }
.breadcrumb-2026 .current { color: rgba(248,250,252,.85); }

/* ── CONTACT PAGE ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

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

.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-group { display: flex; flex-direction: column; gap: .45rem; }
.field-label,
.field-group label {
  font-size: .8rem; font-weight: 600;
  color: rgba(241,245,249,.55);
  letter-spacing: .05em; text-transform: uppercase;
}
.field-input {
  width: 100%; padding: .8rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); font-size: .93rem; font-family: var(--font);
  color: #f1f5f9;
  transition: var(--transition); outline: none;
}
.field-input::placeholder { color: rgba(241,245,249,.3); }
.field-input:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  color: #f1f5f9;
}
textarea.field-input { resize: vertical; min-height: 140px; }

.field-checkbox {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .82rem; color: var(--text-muted); line-height: 1.55;
}
.field-checkbox input[type="checkbox"] {
  margin-top: .22rem; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--primary);
}
.field-checkbox a { color: var(--primary); }

.contact-info-card {
  background: var(--dark-900); color: rgba(248,250,252,.75);
  border-radius: var(--radius-xl); padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 5rem;
}
.contact-info-card h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.75rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem;
}
.contact-info-item .icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: .9rem;
}
.contact-info-item p { margin: 0; font-size: .88rem; }
.contact-info-item a { color: rgba(248,250,252,.75); transition: var(--transition); }
.contact-info-item a:hover { color: var(--primary-light); }

/* ── Contact page aliases (template uses .cii-* instead of .icon-wrap) ── */
.cii-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: .95rem;
}
.cii-label {
  display: block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(248,250,252,.4); margin-bottom: .15rem;
}
.cii-value {
  display: block; font-size: .93rem; font-weight: 500;
  color: rgba(248,250,252,.85);
  text-decoration: none;
}
a.cii-value:hover { color: var(--primary-light); }

/* ── .field-label class (base dark-theme) ── */
.field-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: rgba(248,250,252,.55); letter-spacing: .03em;
  margin-bottom: .35rem;
}

/* ── contact-form-wrap: card look ── */
.contact-form-wrap {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

/* ─ form grid 2-col ─ */
.contact-form-wrap .form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 600px) {
  .contact-form-wrap { padding: 1.5rem; }
  .contact-form-wrap .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Improve submit button inside contact form ── */
.contact-form-wrap .btn-2026-primary {
  width: 100%; justify-content: center;
  padding: .9rem 1.5rem; font-size: 1rem;
  margin-top: .25rem;
}

/* ── PROJECT LIST PAGE ──────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  background: var(--light-100); border: 1.5px solid var(--light-200);
  border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ── PROJECT DETAIL PAGE ────────────────────────────────────────────────────── */
.project-hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem;
}
.meta-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: rgba(248,250,252,.55);
}
.meta-item strong { color: rgba(248,250,252,.85); }

.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.skill-tag {
  padding: .25rem .7rem;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.22);
  border-radius: 999px; color: var(--primary-light);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}

.project-content-block {
  display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem;
}
.project-content-item {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 2.5rem; align-items: start;
}
.project-content-item.reverse { grid-template-columns: 1fr 300px; }
.project-content-item.reverse .pci-image { order: 2; }
@media (max-width: 767px) {
  .project-content-item,
  .project-content-item.reverse { grid-template-columns: 1fr; }
  .project-content-item.reverse .pci-image { order: 0; }
}
.pci-image img {
  width: 100%; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.pci-body h4 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: .75rem;
}
.section-dark .pci-body h4 { color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES CAROUSEL — homepage block
   ══════════════════════════════════════════════════════════════════════════ */

/* Section shell */
.services-section-2026 {
  background: var(--dark-950);
  position: relative;
  overflow: hidden;
}
.services-section-2026::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 80% -5%, rgba(99,102,241,.13), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 110%, rgba(6,182,212,.09), transparent 55%);
  pointer-events: none;
}

/* Card */
.svc-card-2026 {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.svc-card-2026:hover {
  border-color: color-mix(in srgb, var(--svc-color, #6366f1) 45%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .svc-card-2026:hover { border-color: rgba(99,102,241,.40); }
}

/* Cover image area */
.svc-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-800);
  flex-shrink: 0;
}
.svc-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
  display: block;
}
.svc-card-2026:hover .svc-cover img { transform: scale(1.05); }

/* Cover placeholder (no image) */
.svc-cover-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--svc-color,#6366f1) 18%, var(--dark-800)) 0%,
    var(--dark-800) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .svc-cover-placeholder { background: linear-gradient(135deg, rgba(99,102,241,.18), var(--dark-800)); }
}
.svc-cover-placeholder i {
  font-size: 2.5rem;
  color: var(--svc-color, var(--primary-light));
  opacity: .5;
  filter: drop-shadow(0 0 18px var(--svc-color, #6366f1));
}

/* Bottom accent bar on cover */
.svc-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--svc-color, var(--primary)) 0%,
    transparent 100%);
  opacity: .7;
}

/* Card body */
.svc-body {
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  flex: 1; gap: .5rem;
}

/* Icon badge (over the body) */
.svc-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--svc-color, #6366f1) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-color, #6366f1) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: .25rem;
}
.svc-icon-wrap i { font-size: 1.15rem; color: var(--svc-color, var(--primary-light)); }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .svc-icon-wrap { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.25); }
  .svc-icon-wrap i { color: var(--primary-light); }
}

.svc-title {
  font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
  margin: 0; line-height: 1.35;
}
.svc-desc {
  font-size: .82rem; color: rgba(248,250,252,.48);
  line-height: 1.7; margin: 0; flex: 1;
}

/* CTA */
.svc-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  color: var(--svc-color, var(--primary-light));
  transition: var(--transition);
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.svc-cta i { font-size: .7rem; transition: transform .25s var(--ease); }
.svc-cta:hover { opacity: .8; }
.svc-cta:hover i { transform: translateX(4px); }

/* Owl Carousel overrides */
.services-owl-carousel .owl-stage { padding: .5rem 0 1rem; }
.services-owl-carousel .owl-item { padding: 0 .5rem; }

/* Custom dots */
.services-owl-dots {
  display: flex; justify-content: center; gap: .45rem;
  margin-top: 1.5rem;
}
.services-owl-dots .owl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.services-owl-dots .owl-dot.active,
.services-owl-dots .owl-dot:hover {
  background: var(--primary-light);
  transform: scale(1.25);
}

/* Light mode */
[data-theme="light"] .services-section-2026 { background: var(--light-100); }
[data-theme="light"] .svc-card-2026 {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .svc-card-2026:hover { box-shadow: var(--shadow-lg); }
[data-theme="light"] .svc-title { color: var(--dark-900); }
[data-theme="light"] .svc-desc  { color: var(--text-muted); }
[data-theme="light"] .svc-body  { background: #fff; }
[data-theme="light"] .svc-cta   { border-top-color: var(--light-200); }
[data-theme="light"] .services-owl-dots .owl-dot { background: rgba(15,23,42,.18); }

/* ── BLOG LIST PAGE ─────────────────────────────────────────────────────────── */

/* Featured article (first) — horizontal split card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.blog-featured-card:hover {
  border-color: rgba(99,102,241,.30);
  box-shadow: 0 28px 80px rgba(0,0,0,.40);
  transform: translateY(-4px);
}
.bfc-image-link { display: block; overflow: hidden; }
.bfc-image {
  height: 100%; min-height: 340px;
  background: var(--dark-700); position: relative; overflow: hidden;
}
.bfc-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-featured-card:hover .bfc-image img { transform: scale(1.06); }
.bfc-image.bfc-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark-800) 0%, rgba(99,102,241,.18) 50%, rgba(6,182,212,.1) 100%);
}
.bfc-image.bfc-placeholder i { font-size: 3.5rem; color: rgba(99,102,241,.35); }
.bfc-body {
  padding: 2.75rem;
  display: flex; flex-direction: column;
}
.bfc-title {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 800;
  line-height: 1.25; letter-spacing: -.025em; margin-bottom: .9rem;
}
.bfc-title a { color: #fff; transition: var(--transition); }
.bfc-title a:hover { color: var(--primary-light); }
.bfc-excerpt {
  font-size: .97rem; color: rgba(248,250,252,.55);
  line-height: 1.8; margin-bottom: 1.75rem; flex: 1;
}
.bfc-footer {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

/* Light mode */
[data-theme="light"] .blog-featured-card {
  background: #fff; border-color: var(--light-200); box-shadow: var(--shadow-md);
}
[data-theme="light"] .bfc-title a { color: var(--dark-900); }
[data-theme="light"] .bfc-excerpt { color: var(--text-muted); }

/* Responsive */
@media (max-width: 860px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .bfc-image { min-height: 260px; }
  .bfc-body  { padding: 1.75rem; }
}

/* ── ARTICLE DETAIL ─────────────────────────────────────────────────────────── */
.article-wrap { max-width: 780px; margin: 0 auto; }

.article-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  font-size: .83rem; color: rgba(248,250,252,.45); margin-bottom: 2rem;
}
.article-meta .tag {
  padding: .22rem .7rem; background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2);
  border-radius: 999px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .07em;
}

.article-hero-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--radius-xl); margin-bottom: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.article-body { font-size: 1.05rem; line-height: 1.85; color: rgba(248,250,252,.82); }
.section-light .article-body { color: var(--text-body); }
.article-body h1,.article-body h2,.article-body h3,.article-body h4 {
  color: #fff; font-weight: 700; margin: 2rem 0 .9rem; letter-spacing: -.02em;
}
.section-light .article-body h1,
.section-light .article-body h2,
.section-light .article-body h3 { color: var(--text-dark); }
.article-body p { margin-bottom: 1.3rem; }
.article-body img { border-radius: var(--radius-md); margin: 1.5rem auto; box-shadow: var(--shadow-md); }
.article-body a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 3px solid var(--primary); padding: .75rem 1.25rem;
  margin: 1.5rem 0; background: rgba(99,102,241,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: rgba(248,250,252,.7);
}

/* Share buttons */
.share-bar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.share-btn.fb  { background: #1877f2; color: #fff; }
.share-btn.tw  { background: #000; color: #fff; }
.share-btn.li  { background: #0a66c2; color: #fff; }
.share-btn.mail{ background: rgba(255,255,255,.08); color: rgba(248,250,252,.8); border: 1px solid rgba(255,255,255,.1); }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ══════════════════════════════════════════════════════════════════════════
   PORTFOLIO PAGE
   ══════════════════════════════════════════════════════════════════════════ */

/* Ken-Burns on carousel images */
#hero-carousel .carousel-item.active img {
  animation: ken-burns 14s ease-out forwards;
}
@keyframes ken-burns {
  0%   { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* Featured projects — 3-col masonry-like */
.portfolio-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.portfolio-featured-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-featured-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(99,102,241,.14);
}

/* Shared image wrap for portfolio featured */
.pf-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: var(--dark-800);
}
.pf-img img { width:100%;height:100%;object-fit:cover;transition:transform .55s var(--ease); }
.portfolio-featured-card:hover .pf-img img { transform: scale(1.06); }

.pf-no-img {
  background: linear-gradient(135deg, var(--dark-800) 0%, rgba(99,102,241,.14) 50%, rgba(6,182,212,.06) 100%);
  position: relative; overflow: hidden;
}
.pf-no-img::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 20px,
    rgba(255,255,255,.018) 20px, rgba(255,255,255,.018) 21px
  );
}
.pf-placeholder-inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .65rem;
  padding: 1.5rem;
}
.pf-placeholder-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(99,102,241,.18); border: 1px solid rgba(99,102,241,.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(99,102,241,.7); font-size: 1.4rem;
  box-shadow: 0 0 30px rgba(99,102,241,.2);
}
.pf-placeholder-name {
  font-size: .78rem; font-weight: 700; color: rgba(248,250,252,.3);
  text-align: center; letter-spacing: .04em; max-width: 160px;
}
.pf-cat-badge {
  display: inline-flex; align-items: center;
  padding: .28rem .75rem;
  background: rgba(9,14,34,.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(248,250,252,.75);
}
.pf-featured-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .75rem;
  background: rgba(245,158,11,.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700; color: #fbbf24;
}

/* Overlay with links on hover */
.pf-overlay {
  position: absolute; inset: 0;
  background: rgba(9,14,34,.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-featured-card:hover .pf-overlay,
.portfolio-card-2026:hover .pc-overlay { opacity: 1; }

.pf-links { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.pf-link-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600;
  transition: var(--transition);
}
.pf-link-btn:hover { background: var(--primary-dark); color: #fff; }
.pf-link-ghost { background: rgba(255,255,255,.12); }
.pf-link-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.pf-body { padding: 1.25rem 1.4rem 1.5rem; }
.pf-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.pf-year { font-size: .72rem; color: rgba(248,250,252,.4); font-family: var(--font-mono); }
.pf-title { font-size: 1.1rem; font-weight: 700; color: rgba(248,250,252,.9); margin: 0 0 .4rem; }
.pf-desc { font-size: .85rem; color: rgba(248,250,252,.5); margin-bottom: .75rem; line-height: 1.6; }
.pf-skills { display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-skill-tag {
  padding: .18rem .55rem;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 999px;
  font-size: .7rem; font-weight: 600;
  color: var(--primary-light);
}

/* Filter bar */
.portfolio-filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2.5rem;
}
.pf-filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .48rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: rgba(248,250,252,.6);
  cursor: pointer; transition: var(--transition);
}
.pf-filter-btn:hover { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.25); color: var(--primary-light); }
.pf-filter-btn.active { background: rgba(99,102,241,.2); border-color: rgba(99,102,241,.4); color: var(--primary-light); }
.pf-count {
  padding: .1rem .4rem;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
}
.pf-filter-btn.active .pf-count { background: rgba(255,255,255,.22); }

/* Portfolio grid */
.portfolio-grid-2026 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.portfolio-card-2026 {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition), opacity .3s ease;
}
.portfolio-card-2026:hover { border-color: rgba(99,102,241,.28); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.3); }

.pc-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--dark-800);
}
.pc-img-wrap img { width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease); }
.portfolio-card-2026:hover .pc-img-wrap img { transform: scale(1.07); }
.pc-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: rgba(99,102,241,.35);
  background: linear-gradient(135deg, var(--dark-800) 0%, rgba(99,102,241,.1) 100%);
}

.pc-overlay {
  position: absolute; inset: 0;
  background: rgba(9,14,34,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.pc-links { display: flex; gap: .6rem; }
.pc-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem;
  transition: var(--transition);
}
.pc-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.pc-body { padding: 1rem 1.1rem 1.25rem; }
.pc-title { font-size: .95rem; font-weight: 700; color: rgba(248,250,252,.88); margin: 0 0 .4rem; line-height: 1.3; }
.pc-detail-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--primary-light);
  margin-top: .65rem; transition: var(--transition);
}
.pc-detail-link:hover { gap: .65rem; color: var(--primary-light); }

/* ══════════════════════════════════════════════════════════════════════════
   CV PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.cv-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Sidebar ── */
.cv-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }

.cv-profile-card {
  background: linear-gradient(160deg, rgba(99,102,241,.08) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cv-profile-card::before {
  content: '';
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
  pointer-events: none;
}

.cv-avatar {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid transparent;
  background: linear-gradient(var(--dark-900), var(--dark-900)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  box-shadow: 0 0 40px rgba(99,102,241,.22), 0 8px 28px rgba(0,0,0,.4);
  margin: 0 auto 1.1rem; display: block;
}
.cv-avatar-placeholder {
  width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(99,102,241,.45);
  margin: 0 auto 1.1rem;
  border: 2px dashed rgba(99,102,241,.22);
}
.cv-name {
  font-size: 1.2rem; font-weight: 800; color: #f1f5f9;
  letter-spacing: -.025em; margin: 0 0 .3rem;
}
.cv-position {
  font-size: .82rem; color: var(--primary-light); font-weight: 600;
  margin-bottom: .95rem; letter-spacing: .01em;
}
.cv-exp-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .9rem;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: var(--primary-light);
}

/* ── Widgets ── */
.cv-widget {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
}

.cv-widget-title {
  display: flex; align-items: center;
  font-size: .71rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(248,250,252,.4); margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cv-widget-title i { color: var(--primary-light); }

/* ── Contact items ── */
.cv-contact-item {
  display: flex; align-items: center; gap: .65rem;
  font-size: .82rem; color: rgba(248,250,252,.6);
  margin-bottom: .65rem;
}
.cv-contact-item:last-child { margin-bottom: 0; }
.cv-contact-item i {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: .75rem;
}
.cv-contact-item a { color: rgba(248,250,252,.6); transition: color .18s; }
.cv-contact-item a:hover { color: var(--primary-light); }

/* ── Skill bars ── */
.cv-skill-row { margin-bottom: .9rem; }
.cv-skill-header {
  display: flex; align-items: center; gap: .45rem;
  margin-bottom: .4rem;
}
.cv-skill-name { font-size: .8rem; color: rgba(248,250,252,.75); flex: 1; font-weight: 500; }
.cv-skill-pct { font-size: .69rem; color: var(--primary-light); font-family: var(--font-mono); font-weight: 700; }
.cv-skill-bar {
  height: 5px; background: rgba(255,255,255,.07);
  border-radius: 999px; overflow: hidden;
}
.cv-skill-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── Certifications ── */
.cv-cert-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .9rem; padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cv-cert-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cv-cert-badge { width: 38px; height: 38px; object-fit: contain; border-radius: var(--radius-xs); flex-shrink: 0; }
.cv-cert-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.08));
  border: 1px solid rgba(99,102,241,.18); border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: .9rem;
}
.cv-cert-name { font-size: .82rem; font-weight: 700; color: rgba(248,250,252,.85); margin: 0 0 .15rem; }
.cv-cert-issuer { font-size: .74rem; color: rgba(248,250,252,.4); margin: 0 0 .25rem; }
.cv-cert-link {
  font-size: .72rem; color: var(--primary-light); font-weight: 700;
  display: inline-flex; align-items: center; gap: .25rem;
}
.cv-cert-link:hover { color: var(--accent); }

/* ── Main content ── */
.cv-main { min-width: 0; }
.cv-section { margin-bottom: 3rem; }
.cv-section-title {
  display: flex; align-items: center;
  font-size: 1.05rem; font-weight: 800; color: rgba(248,250,252,.9);
  margin-bottom: 1.75rem; padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  letter-spacing: -.01em;
}
.cv-section-title i {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: .85rem;
}
.cv-summary-text {
  font-size: .95rem; line-height: 1.8;
  color: rgba(248,250,252,.62); max-width: 680px;
}

/* ── Timeline ── */
.cv-timeline { position: relative; padding-left: 1.75rem; }
.cv-timeline::before {
  content: '';
  position: absolute; left: 9px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(99,102,241,.55), rgba(99,102,241,.04));
}

.cv-timeline-item { position: relative; padding-left: 1.5rem; margin-bottom: 1.75rem; }
.cv-timeline-item:last-child { margin-bottom: 0; }

.cv-tl-dot {
  position: absolute; left: -1.7rem; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--dark-900);
  border: 2.5px solid rgba(99,102,241,.45);
  z-index: 1; transition: border-color .2s, box-shadow .2s;
}
.cv-tl-dot-current {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15), 0 0 16px rgba(99,102,241,.5);
  animation: tlPulse 2.5s ease infinite;
}
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99,102,241,.15), 0 0 16px rgba(99,102,241,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(99,102,241,.07), 0 0 28px rgba(99,102,241,.28); }
}
.cv-timeline-item:hover .cv-tl-dot { border-color: var(--primary); }

.cv-tl-content {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cv-tl-content:hover {
  border-color: rgba(99,102,241,.22);
  background: rgba(99,102,241,.035);
  box-shadow: 0 4px 24px rgba(99,102,241,.08);
}

.cv-tl-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  margin-bottom: .75rem; flex-wrap: wrap;
}
.cv-tl-left { display: flex; align-items: flex-start; gap: .85rem; }
.cv-company-logo {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: var(--radius-xs); flex-shrink: 0;
  background: rgba(255,255,255,.07); padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
}
.cv-tl-title {
  font-size: .97rem; font-weight: 700; color: rgba(248,250,252,.92);
  margin: 0 0 .25rem; letter-spacing: -.01em;
}
.cv-tl-company { font-size: .82rem; color: rgba(248,250,252,.42); margin: 0; }

.cv-tl-period {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .24rem .65rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: .72rem; font-family: var(--font-mono);
  color: rgba(248,250,252,.42); flex-shrink: 0;
  white-space: nowrap;
}
.cv-tl-current-badge {
  padding: .22rem .6rem;
  background: rgba(99,102,241,.16);
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 999px; color: var(--primary-light);
  font-size: .7rem; font-weight: 700;
}

.cv-tl-desc {
  font-size: .86rem; line-height: 1.75;
  color: rgba(248,250,252,.52); margin-top: .65rem;
}
.cv-tl-desc ul { padding-left: 1.2rem; margin: .3rem 0 0; }
.cv-tl-desc li { margin-bottom: .3rem; }

.cv-tech-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.cv-tech-tag {
  padding: .2rem .6rem;
  background: rgba(6,182,212,.07); border: 1px solid rgba(6,182,212,.16);
  border-radius: 999px; font-size: .7rem; font-weight: 600;
  color: rgba(6,182,212,.75); letter-spacing: .02em;
  transition: background .18s, border-color .18s;
}
.cv-tech-tag:hover { background: rgba(6,182,212,.13); border-color: rgba(6,182,212,.28); color: var(--accent); }

/* ── Empty state ── */
.cv-empty-state {
  text-align: center; padding: 5rem 2rem;
  background: rgba(255,255,255,.02); border: 1px dashed rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  color: rgba(248,250,252,.35);
}
.cv-empty-state i {
  font-size: 3rem; margin-bottom: 1rem; display: block;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cv-empty-state h3 { color: rgba(248,250,252,.5); margin-bottom: .5rem; font-size: 1.1rem; }
.cv-empty-state p { font-size: .875rem; max-width: 360px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar { position: static; }
  .portfolio-featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .portfolio-featured-grid { grid-template-columns: 1fr; }
  .portfolio-grid-2026 { grid-template-columns: 1fr 1fr; }
  .cv-tl-header { flex-direction: column; }
  .cv-tl-period { align-self: flex-start; }
  .portfolio-filter-bar { gap: .4rem; }
  .pf-filter-btn { font-size: .75rem; padding: .4rem .75rem; }
}
@media (max-width: 480px) {
  .portfolio-grid-2026 { grid-template-columns: 1fr; }
}

/* Light mode overrides for portfolio + CV */
[data-theme="light"] .portfolio-featured-card,
[data-theme="light"] .portfolio-card-2026,
[data-theme="light"] .cv-profile-card,
[data-theme="light"] .cv-widget,
[data-theme="light"] .cv-tl-content {
  background: #fff;
  border-color: var(--light-200);
  box-shadow: var(--shadow-xs);
}
[data-theme="light"] .cv-profile-card {
  background: linear-gradient(160deg, rgba(99,102,241,.04) 0%, #fff 100%);
  border-color: rgba(99,102,241,.15);
}
[data-theme="light"] .pf-title,
[data-theme="light"] .pc-title,
[data-theme="light"] .cv-name,
[data-theme="light"] .cv-tl-title { color: var(--dark-900); }
[data-theme="light"] .pf-desc,
[data-theme="light"] .cv-tl-desc,
[data-theme="light"] .cv-summary-text { color: var(--text-body); }
[data-theme="light"] .cv-skill-bar { background: var(--light-200); }
[data-theme="light"] .cv-skill-name { color: var(--dark-800); }
[data-theme="light"] .cv-contact-item { color: var(--text-body); }
[data-theme="light"] .cv-contact-item a { color: var(--text-body); }
[data-theme="light"] .cv-contact-item i { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.12); }
[data-theme="light"] .cv-tl-company,
[data-theme="light"] .pf-year { color: var(--text-muted); }
[data-theme="light"] .cv-timeline::before { background: linear-gradient(to bottom, rgba(99,102,241,.5), rgba(99,102,241,.05)); }
[data-theme="light"] .cv-tl-dot { background: #fff; border-color: rgba(99,102,241,.45); }
[data-theme="light"] .cv-tl-dot-current { background: var(--primary); border-color: var(--primary); }
[data-theme="light"] .cv-tl-period { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); color: var(--text-muted); }
[data-theme="light"] .cv-tl-content:hover { border-color: rgba(99,102,241,.2); background: rgba(99,102,241,.03); box-shadow: 0 4px 20px rgba(99,102,241,.07); }
[data-theme="light"] .pf-filter-btn { background: var(--light-100); border-color: var(--light-200); color: var(--text-body); }
[data-theme="light"] .pf-filter-btn.active { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); color: var(--primary); }
[data-theme="light"] .cv-widget-title { color: var(--text-muted); border-bottom-color: var(--light-200); }
[data-theme="light"] .cv-section-title { color: var(--dark-900); border-bottom-color: var(--light-200); }
[data-theme="light"] .cv-empty-state { background: var(--light-50); border-color: var(--light-200); }
[data-theme="light"] .cv-tech-tag { background: rgba(6,182,212,.06); border-color: rgba(6,182,212,.15); color: #0891b2; }

/* ── ERROR PAGES ────────────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh; background: var(--dark-900);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.error-page .ep-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(99,102,241,.2), transparent 70%);
}
.error-page .ep-content { position: relative; z-index: 1; padding: 2rem; }
.error-code {
  font-size: clamp(6rem, 20vw, 12rem); font-weight: 900;
  font-family: var(--font-mono); line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.error-title {
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700;
  color: #fff; margin-bottom: 1rem;
}
.error-text { font-size: 1.05rem; color: rgba(248,250,252,.55); margin-bottom: 2.5rem; }

/* ── CMS dark content blocks ────────────────────────────────────────────────── */
.cms-dark-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  color: rgba(248,250,252,.82);
  line-height: 1.85;
}
.cms-dark-card h1,.cms-dark-card h2,.cms-dark-card h3,
.cms-dark-card h4,.cms-dark-card h5,.cms-dark-card h6 { color: #f1f5f9; font-weight: 700; }
.cms-dark-card a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.cms-prose { color: rgba(248,250,252,.75); line-height: 1.85; }
.cms-prose h1,.cms-prose h2,.cms-prose h3,
.cms-prose h4,.cms-prose h5,.cms-prose h6 { color: #f1f5f9; font-weight: 700; }
.cms-prose a { color: var(--primary-light); }
.section-darker .project-card-2026,
.section-dark   .project-card-2026 {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.section-darker .project-card-2026 h3,
.section-dark   .project-card-2026 h3 { color: #f1f5f9; }
.section-darker .project-card-2026 p,
.section-dark   .project-card-2026 p  { color: rgba(248,250,252,.58); }

/* ── Back-compat: make sure existing CMS class names don't break ───────────── */
.btn-modern          { display: inline-flex; align-items:center; gap:.4rem; }
.btn-modern-primary  { background: linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; padding:.6rem 1.4rem; border-radius:var(--radius-md); font-weight:600; transition:var(--transition); }
.btn-modern-primary:hover { transform:translateY(-2px); color:#fff; }
.btn-modern-secondary{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); color:rgba(248,250,252,.85); padding:.6rem 1.4rem; border-radius:var(--radius-md); font-weight:600; transition:var(--transition); }
.btn-modern-secondary:hover { background:rgba(255,255,255,.14); color:#fff; transform:translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE  [data-theme="light"]
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Base ── */
[data-theme="light"] body { background: var(--light-50); color: var(--text-dark); }

/* ── Navbar ── */
[data-theme="light"] #nav-2026 { background: transparent; }
[data-theme="light"] #nav-2026.scrolled {
  background: rgba(248,250,252,.96);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border-bottom-color: rgba(0,0,0,.06);
}
[data-theme="light"] .nav-link-2026          { color: var(--dark-800); }
[data-theme="light"] .nav-link-2026:hover    { color: var(--primary); }
[data-theme="light"] .nav-logo               { color: var(--dark-900); }
[data-theme="light"] #nav-toggle .bar        { background: var(--dark-900); }
[data-theme="light"] #lang-toggle,
[data-theme="light"] #theme-toggle           { background: rgba(15,23,42,.07); border-color: rgba(15,23,42,.12); color: var(--dark-800); }
[data-theme="light"] #lang-toggle:hover,
[data-theme="light"] #theme-toggle:hover     { background: rgba(15,23,42,.12); color: var(--dark-900); }
[data-theme="light"] .nav-dropdown           { background: #fff; border-color: var(--light-200); box-shadow: 0 12px 32px rgba(0,0,0,.10); }
[data-theme="light"] .dropdown-item-2026     { color: var(--text-dark); }
[data-theme="light"] .dropdown-item-2026:hover { background: var(--light-100); color: var(--primary); }

/* ── Hero – Variant B (gradient, no carousel) ── */
[data-theme="light"] .hero-2026 {
  background: linear-gradient(145deg, #eef2ff 0%, #f0f9ff 50%, #f8fafc 100%);
}
[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at 25% 50%, rgba(99,102,241,.15) 0%, transparent 65%);
}
[data-theme="light"] .hero-grid   { opacity: .04; }
[data-theme="light"] .hero-name   { color: var(--dark-900) !important; }
[data-theme="light"] .hero-role   { color: var(--text-body) !important; }
[data-theme="light"] .hero-role strong { color: var(--dark-800); }
[data-theme="light"] .hero-eyebrow {
  background: rgba(99,102,241,.12) !important;
  border-color: rgba(99,102,241,.25) !important;
  color: var(--primary) !important;
}
[data-theme="light"] .hero-eyebrow .dot { background: var(--primary) !important; box-shadow: none; }
[data-theme="light"] .hero-scroll-indicator span { color: var(--text-muted); }
[data-theme="light"] .scroll-track { background: rgba(15,23,42,.15); }
[data-theme="light"] .hero-badge {
  background: rgba(255,255,255,.88);
  border-color: rgba(0,0,0,.1);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
[data-theme="light"] .hero-avatar-placeholder-inner {
  background: linear-gradient(145deg, #eef2ff, rgba(99,102,241,.1), #f0f9ff);
}

/* ── Hero – Variant A (carousel) ── */
/* Spécificité augmentée pour battre .hero-2026 .hero-overlay */
[data-theme="light"] .hero-2026 .hero-overlay,
[data-theme="light"] .hero-overlay {
  background: linear-gradient(105deg,
    rgba(240,244,255,.92) 0%,
    rgba(240,244,255,.70) 55%,
    rgba(240,244,255,.20) 100%) !important;
}
/* Supprimer l'overlay ::after du carousel en light mode */
[data-theme="light"] #hero-carousel .carousel-item::after {
  background: linear-gradient(105deg,
    rgba(240,244,255,.90) 0%,
    rgba(240,244,255,.60) 55%,
    transparent) !important;
}
/* Hero section background en light mode */
[data-theme="light"] .hero-2026 {
  background: linear-gradient(145deg, #eef2ff 0%, #f0f9ff 50%, #f8fafc 100%) !important;
}

/* ── Sections (dark → light) ── */
[data-theme="light"] .section-dark  { background: #fff;             color: var(--text-dark); }
[data-theme="light"] .section-darker{ background: var(--light-100); color: var(--text-dark); }
[data-theme="light"] .section-dark  .section-eyebrow,
[data-theme="light"] .section-darker .section-eyebrow {
  background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); color: var(--primary);
}
[data-theme="light"] .section-dark  .section-title,
[data-theme="light"] .section-darker .section-title   { color: var(--dark-900); }
[data-theme="light"] .section-dark  .section-subtitle,
[data-theme="light"] .section-darker .section-subtitle { color: var(--text-muted); }
[data-theme="light"] .section-divider { background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* ── Stats ── */
[data-theme="light"] .stat-card-2026 {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .stat-number { color: var(--primary); }
[data-theme="light"] .stat-label  { color: var(--text-muted); }

/* ── Project cards ── */
[data-theme="light"] .section-darker .project-card-2026,
[data-theme="light"] .section-dark   .project-card-2026 {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .section-darker .project-card-2026 h3,
[data-theme="light"] .section-dark   .project-card-2026 h3 { color: var(--dark-900); }
[data-theme="light"] .section-darker .project-card-2026 p,
[data-theme="light"] .section-dark   .project-card-2026 p  { color: var(--text-muted); }
[data-theme="light"] .project-badge { background: rgba(99,102,241,.12); color: var(--primary-dark); }
[data-theme="light"] .project-link-2026 { color: var(--primary); }

/* ── Skills tiles ── */
[data-theme="light"] .skill-tile {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-xs);
}
[data-theme="light"] .skill-tile h6 { color: var(--dark-900); }

/* ── Blog cards ── */
[data-theme="light"] .blog-card-2026 {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .blog-card-2026 h3 { color: var(--dark-900); }
[data-theme="light"] .blog-card-2026 p  { color: var(--text-muted); }
[data-theme="light"] .blog-meta-2026    { color: var(--text-muted); }
[data-theme="light"] .blog-cat-badge    { background: rgba(99,102,241,.1); color: var(--primary-dark); }
[data-theme="light"] .blog-link-2026    { color: var(--primary); }

/* ── CMS dark cards ── */
[data-theme="light"] .cms-dark-card {
  background: #fff; border-color: var(--light-200);
  color: var(--text-body);
}
[data-theme="light"] .cms-dark-card h1,[data-theme="light"] .cms-dark-card h2,
[data-theme="light"] .cms-dark-card h3,[data-theme="light"] .cms-dark-card h4 { color: var(--dark-900); }
[data-theme="light"] .cms-dark-card a { color: var(--primary-dark); }
[data-theme="light"] .cms-prose       { color: var(--text-body); }
[data-theme="light"] .cms-prose h1,[data-theme="light"] .cms-prose h2,
[data-theme="light"] .cms-prose h3,[data-theme="light"] .cms-prose h4 { color: var(--dark-900); }

/* ── CTA section ── */
[data-theme="light"] .cta-2026 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

/* ── Footer ── */
[data-theme="light"] .footer-2026        { background: var(--light-100); color: var(--text-dark); }
[data-theme="light"] .footer-logo-2026   { color: var(--dark-900); }
[data-theme="light"] .footer-logo-2026 span { color: var(--primary); }
[data-theme="light"] .footer-tagline     { color: var(--text-muted); }
[data-theme="light"] .footer-nav-col h4  { color: var(--dark-900); }
[data-theme="light"] .footer-nav-col a   { color: var(--text-muted); }
[data-theme="light"] .footer-nav-col a:hover { color: var(--primary); }
[data-theme="light"] .footer-social-2026 a { background: var(--light-200); color: var(--dark-700); }
[data-theme="light"] .footer-social-2026 a:hover { background: var(--primary); color: #fff; }
[data-theme="light"] .footer-bottom-2026 { border-color: var(--light-300); color: var(--text-muted); }
[data-theme="light"] .footer-legal a     { color: var(--text-muted); }
[data-theme="light"] .footer-legal a:hover { color: var(--primary); }

/* ── Mobile menu (light) ── */
[data-theme="light"] #mobile-menu    { background: rgba(248,250,252,.99); box-shadow: -8px 0 40px rgba(0,0,0,.18); }
[data-theme="light"] #mob-backdrop   { background: rgba(0,0,0,.35); }
[data-theme="light"] .mob-brand      { color: var(--dark-900); }
[data-theme="light"] .mob-brand span { color: var(--primary); }
[data-theme="light"] .mob-header,
[data-theme="light"] .mob-footer     { border-color: rgba(15,23,42,.08); }
[data-theme="light"] #mobile-close   { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.12); color: var(--dark-800); }
[data-theme="light"] #mobile-close:hover { background: rgba(15,23,42,.12); color: var(--dark-900); }
[data-theme="light"] .mob-link       { color: rgba(15,23,42,.8); border-color: rgba(15,23,42,.06); }
[data-theme="light"] .mob-link:hover { color: var(--dark-900); }
[data-theme="light"] .mob-link::before { background: var(--primary); }
[data-theme="light"] .mob-link-cta   { color: var(--primary) !important; }
[data-theme="light"] .mob-pill       { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.12); color: var(--dark-700); }
[data-theme="light"] .mob-pill:hover { background: rgba(15,23,42,.10); color: var(--dark-900); }

/* ── Scroll-to-top ── */
[data-theme="light"] #scroll-top {
  background: #fff; color: var(--primary);
  border: 1px solid var(--light-200);
  box-shadow: var(--shadow-md);
}

/* ── Page headers (secondary pages) ── */
[data-theme="light"] .page-header-2026 {
  background: linear-gradient(145deg, #eef2ff 0%, #f0f9ff 50%, #f8fafc 100%);
}
[data-theme="light"] .page-header-2026 h1 { color: var(--dark-900) !important; }
[data-theme="light"] .page-header-2026 p  { color: var(--text-muted) !important; }
[data-theme="light"] .eyebrow-tag {
  background: rgba(99,102,241,.1) !important;
  border-color: rgba(99,102,241,.25) !important;
  color: var(--primary) !important;
}
[data-theme="light"] .eyebrow-dot { background: var(--primary) !important; box-shadow: none !important; }
[data-theme="light"] .breadcrumb-2026     { color: var(--text-muted); }
[data-theme="light"] .breadcrumb-2026 a   { color: var(--text-muted); }
[data-theme="light"] .breadcrumb-2026 a:hover { color: var(--primary); }

/* ── Contact page ── */
[data-theme="light"] .contact-form-wrap {
  background: #fff;
  border-color: var(--light-200);
}
[data-theme="light"] .contact-form-wrap h2 { color: var(--dark-900) !important; }
[data-theme="light"] .field-label  { color: var(--text-muted) !important; }
[data-theme="light"] .field-input  {
  background: #f9fafb; border-color: var(--light-300);
  color: var(--dark-900);
}
[data-theme="light"] .field-input:focus { border-color: var(--primary); background: #fff; }
[data-theme="light"] .field-input::placeholder { color: var(--text-muted); }
[data-theme="light"] .contact-info-card {
  background: var(--light-100); border-color: var(--light-200);
}
[data-theme="light"] .contact-info-card h3 { color: var(--dark-900) !important; }
[data-theme="light"] .cii-icon  { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.2); color: var(--primary); }
[data-theme="light"] .cii-label { color: var(--text-muted) !important; }
[data-theme="light"] .cii-value { color: var(--text-body) !important; }

/* ── Project pages ── */
[data-theme="light"] .portfolio-featured-card { background: #fff; border-color: var(--light-200); }
[data-theme="light"] .pf-title { color: var(--dark-900); }
[data-theme="light"] .pf-desc  { color: var(--text-muted); }
[data-theme="light"] .pf-no-img {
  background: linear-gradient(135deg, var(--light-100) 0%, rgba(99,102,241,.06) 50%, rgba(6,182,212,.04) 100%);
}
[data-theme="light"] .pf-no-img::before { background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(0,0,0,.018) 20px, rgba(0,0,0,.018) 21px); }
[data-theme="light"] .pf-placeholder-icon { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.2); color: var(--primary); box-shadow: none; }
[data-theme="light"] .pf-placeholder-name { color: var(--text-muted); }
[data-theme="light"] .pf-cat-badge { background: rgba(255,255,255,.9); border-color: var(--light-200); color: var(--text-body); }
[data-theme="light"] .filter-bar     { background: var(--light-100); border-color: var(--light-200); }
[data-theme="light"] .filter-btn     { color: var(--text-muted); }
[data-theme="light"] .filter-btn:hover { background: var(--light-200); color: var(--dark-900); }
[data-theme="light"] .filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
[data-theme="light"] .project-card-2026 { background: #fff; border-color: var(--light-200); }
[data-theme="light"] .pcard-title { color: var(--dark-900); }
[data-theme="light"] .pcard-desc  { color: var(--text-muted); }
[data-theme="light"] .pcard-cta   { color: var(--primary); }

/* ── Project detail ── */
[data-theme="light"] .skill-tag {
  background: rgba(99,102,241,.1); color: var(--primary-dark); border-color: rgba(99,102,241,.2);
}
[data-theme="light"] .pci-body h3 { color: var(--dark-900) !important; }
[data-theme="light"] .pci-body    { color: var(--text-body); }

/* ── Blog list ── */
[data-theme="light"] .bcard-title { color: var(--dark-900); }
[data-theme="light"] .bcard-excerpt { color: var(--text-muted); }
[data-theme="light"] .bcard-meta   { color: var(--text-muted); }

/* ── Article detail ── */
[data-theme="light"] .article-meta   { color: var(--text-muted); border-color: var(--light-200); }
[data-theme="light"] .article-body   { color: var(--text-body); }
[data-theme="light"] .article-body h1,[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3 { color: var(--dark-900); }
[data-theme="light"] .article-body a  { color: var(--primary-dark); }
[data-theme="light"] .article-body blockquote {
  border-color: var(--primary); background: var(--light-100); color: var(--text-body);
}

/* ── Error pages ── */
[data-theme="light"] .error-page     { background: var(--light-50); }
[data-theme="light"] .ep-glow        { opacity: .5; }
[data-theme="light"] .error-title    { color: var(--dark-900); }
[data-theme="light"] .error-text     { color: var(--text-muted); }

/* ── Buttons in light context ── */
[data-theme="light"] .btn-2026-ghost {
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.14);
  color: var(--dark-800);
}
[data-theme="light"] .btn-2026-ghost:hover {
  background: rgba(15,23,42,.10);
  color: var(--dark-900);
}

/* ═══════════════════════════════════════════════════════════════
   Projects Carousel (homepage) — même pattern que services
   ═══════════════════════════════════════════════════════════════ */
.proj-card-2026 {
  --proj-color: #6366f1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.proj-card-2026:hover {
  border-color: rgba(99,102,241,.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

/* Cover image */
.proj-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-800);
  flex-shrink: 0;
}
.proj-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
  display: block;
}
.proj-card-2026:hover .proj-cover img { transform: scale(1.05); }

/* Cover placeholder */
.proj-cover-placeholder {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(99,102,241,.2) 0%, var(--dark-800) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-cover-placeholder i {
  font-size: 2.5rem;
  color: var(--proj-color, var(--primary-light));
  opacity: .45;
}

/* Bottom accent bar */
.proj-cover::after,
.proj-cover-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--proj-color, var(--primary)) 0%, transparent 100%);
  opacity: .75;
}

/* Category badge over image */
.proj-cat-badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99,102,241,.4);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .22rem .65rem;
  border-radius: 999px;
  z-index: 2;
}

/* Card body */
.proj-body-2026 {
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  flex: 1; gap: .5rem;
}

/* Icon badge */
.proj-icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: .2rem;
}
.proj-icon-wrap i { font-size: 1rem; color: var(--proj-color, var(--primary-light)); }

.proj-title {
  font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
  margin: 0; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-desc {
  font-size: .82rem; color: rgba(248,250,252,.48);
  line-height: 1.7; margin: 0; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.proj-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  color: var(--proj-color, var(--primary-light));
  text-decoration: none;
  transition: var(--transition);
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.proj-cta i { font-size: .7rem; transition: transform .25s var(--ease); }
.proj-cta:hover { opacity: .8; }
.proj-cta:hover i { transform: translateX(4px); }

/* Owl stage */
.projects-owl-carousel .owl-stage { padding: .5rem 0 1rem; }
.projects-owl-carousel .owl-item  { padding: 0 .5rem; }

/* Dots */
.projects-owl-dots {
  display: flex; justify-content: center; gap: .45rem;
  margin-top: 1.5rem;
}
.projects-owl-dots .owl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.projects-owl-dots .owl-dot.active,
.projects-owl-dots .owl-dot:hover {
  background: var(--primary-light);
  transform: scale(1.25);
}

/* Light mode */
[data-theme="light"] .proj-card-2026 {
  background: #fff;
  border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .proj-card-2026:hover { box-shadow: var(--shadow-lg); }
[data-theme="light"] .proj-title     { color: var(--dark-900); }
[data-theme="light"] .proj-desc      { color: var(--text-muted); }
[data-theme="light"] .proj-body-2026 { background: #fff; }
[data-theme="light"] .proj-cta       { border-top-color: var(--light-200); }
[data-theme="light"] .projects-owl-dots .owl-dot { background: rgba(15,23,42,.18); }

/* ═══════════════════════════════════════════════════════════════
   News / Blog Carousel (homepage Owl)
   ═══════════════════════════════════════════════════════════════ */
.news-card-2026 {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}
.news-card-2026:hover {
  border-color: rgba(6,182,212,.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

.news-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-800);
  flex-shrink: 0;
}
.news-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
  display: block;
}
.news-card-2026:hover .news-cover img { transform: scale(1.05); }

.news-cover-placeholder {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(6,182,212,.18) 0%, var(--dark-800) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.news-cover-placeholder i {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: .4;
}
.news-cover::after,
.news-cover-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: .75;
}

.news-date-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  color: rgba(248,250,252,.75);
  font-size: .68rem; font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 999px;
  z-index: 2;
}

.news-body-2026 {
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  flex: 1; gap: .45rem;
}
.news-cat-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent);
}
.news-title-2026 {
  font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
  margin: 0; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt-2026 {
  font-size: .82rem; color: rgba(248,250,252,.48);
  line-height: 1.7; margin: 0; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-cta-2026 {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.news-cta-2026 i { font-size: .7rem; transition: transform .25s var(--ease); }
.news-cta-2026:hover { opacity: .8; }
.news-cta-2026:hover i { transform: translateX(4px); }

.news-owl-carousel .owl-stage { padding: .5rem 0 1rem; }
.news-owl-carousel .owl-item  { padding: 0 .5rem; }

.news-owl-dots {
  display: flex; justify-content: center; gap: .45rem;
  margin-top: 1.5rem;
}
.news-owl-dots .owl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.news-owl-dots .owl-dot.active,
.news-owl-dots .owl-dot:hover {
  background: var(--accent);
  transform: scale(1.25);
}

/* Light mode */
[data-theme="light"] .news-card-2026 {
  background: #fff; border-color: var(--light-200);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .news-card-2026:hover { box-shadow: var(--shadow-lg); }
[data-theme="light"] .news-title-2026   { color: var(--dark-900); }
[data-theme="light"] .news-excerpt-2026 { color: var(--text-muted); }
[data-theme="light"] .news-body-2026    { background: #fff; }
[data-theme="light"] .news-cta-2026     { border-top-color: var(--light-200); }
[data-theme="light"] .news-owl-dots .owl-dot { background: rgba(15,23,42,.18); }
