/* ============================================================
   HOME 3D — Landing Page Premium Cyberpunk
   Applies ONLY when body.page-home is present
   ============================================================ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─── CSS Variables for 3D effects ─── */
:root {
  --neon-cyan:    #00f5ff;
  --neon-purple:  #b44fff;
  --neon-pink:    #ff2d78;
  --neon-green:   #39ff14;
  --glow-cyan:    0 0 20px rgba(0, 245, 255, 0.5), 0 0 60px rgba(0, 245, 255, 0.2);
  --glow-purple:  0 0 20px rgba(180, 79, 255, 0.5), 0 0 60px rgba(180, 79, 255, 0.2);
  --glow-pink:    0 0 20px rgba(255, 45, 120, 0.5), 0 0 60px rgba(255, 45, 120, 0.2);
  --glass-bg:     rgba(13, 17, 23, 0.6);
  --glass-border: rgba(0, 245, 255, 0.15);
  --glass-blur:   16px;
}

/* ─── Canvas 3D ─── */
body.page-home {
  overflow-x: hidden;
  font-family: 'Syne', var(--font-sans);
}

body.page-home #canvas-3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

body.page-home .main-content {
  position: relative;
  z-index: 1;
}

/* ─── Header glassmorphism (home only) ─── */
body.page-home .site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

body.page-home .site-logo__name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.page-home .site-logo__mark {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  -webkit-text-fill-color: var(--neon-cyan);
}

/* ─── Hero Section ─── */
body.page-home .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 0;
  padding-top: var(--header-height);
  overflow: visible;
  background: transparent;
}

body.page-home .hero::before {
  display: none;
}

body.page-home .hero__eyebrow {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 245, 255, 0.2); }
  50%       { box-shadow: 0 0 25px rgba(0, 245, 255, 0.5), 0 0 50px rgba(0, 245, 255, 0.15); }
}

body.page-home .hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 80px rgba(0, 245, 255, 0.1);
  max-width: 14ch;
}

body.page-home .hero__title .accent {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.4));
  display: inline-block;
}

body.page-home .hero__description {
  font-size: 1.15rem;
  color: rgba(230, 237, 243, 0.7);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  max-width: 55ch;
}

/* ─── Buttons ─── */
body.page-home .btn--primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  color: #0d1117;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), 0 4px 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.page-home .btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-home .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.5), 0 8px 25px rgba(0,0,0,0.4);
}

body.page-home .btn--primary:hover::before {
  opacity: 1;
}

body.page-home .btn--primary span {
  position: relative;
  z-index: 1;
}

body.page-home .btn--outline {
  border-color: rgba(0, 245, 255, 0.4);
  color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.05);
  backdrop-filter: blur(8px);
  font-family: 'Syne', sans-serif;
  transition: all 0.3s ease;
}

body.page-home .btn--outline:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

body.page-home .btn--ghost {
  color: rgba(230, 237, 243, 0.6);
  transition: all 0.3s ease;
}

body.page-home .btn--ghost:hover {
  color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.05);
}

/* ─── Hero Meta ─── */
body.page-home .hero__meta {
  padding: 1.25rem 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  width: fit-content;
}

body.page-home .hero__meta-item strong {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

/* ─── Scroll indicator ─── */
body.page-home .scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--neon-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

body.page-home .scroll-indicator__arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}

/* ─── Sections ─── */
body.page-home .section {
  position: relative;
  z-index: 1;
}

body.page-home .section + .section {
  border-top: 1px solid rgba(0, 245, 255, 0.08);
}

/* Glassmorphism sections */
body.page-home .section--glass {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(0, 245, 255, 0.08);
  margin-inline: clamp(0.5rem, 3vw, 2rem);
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

body.page-home .section__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 40%, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

body.page-home .section__subtitle {
  color: rgba(139, 148, 158, 0.8);
}

/* ─── Section reveal animations ─── */
.reveal-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section:nth-child(2) { transition-delay: 0.1s; }
.reveal-section:nth-child(3) { transition-delay: 0.2s; }

/* ─── Post cards (home) ─── */
body.page-home .post-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(0, 245, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

body.page-home .post-card:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1), 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(-6px) translateZ(0);
}

body.page-home .post-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

/* ─── Skills (home) ─── */
body.page-home .skill-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(0, 245, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.page-home .skill-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(180, 79, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-home .skill-item:hover {
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15), 0 10px 30px rgba(0,0,0,0.3);
}

body.page-home .skill-item:hover::before {
  opacity: 1;
}

body.page-home .skill-item__icon {
  filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.3));
}

/* ─── Section link ─── */
body.page-home .section__link {
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

body.page-home .section__link:hover {
  color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

/* ─── Decorative lines ─── */
body.page-home .cyber-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  opacity: 0.3;
  margin-block: 0.5rem;
}

/* ─── Loading overlay ─── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#page-loader .loader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loader-pulse 1s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#page-loader .loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

#page-loader .loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  animation: loader-bar 1.2s ease-in-out forwards;
  box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes loader-bar {
  0% { width: 0; }
  100% { width: 100%; }
}

#page-loader .loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(0, 245, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: loader-text-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes loader-text-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ─── Floating 3D objects ─── */
body.page-home .floating-obj {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

/* ─── Cursor glow ─── */
body.page-home .cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
}

/* ─── Noise overlay ─── */
body.page-home .noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ─── Scanlines ─── */
body.page-home .scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
}

/* ─── Animate fade up (home specific override) ─── */
body.page-home .animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fade-up-home 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-home .animate-fade-up--delay-1 { animation-delay: 0.2s; }
body.page-home .animate-fade-up--delay-2 { animation-delay: 0.45s; }
body.page-home .animate-fade-up--delay-3 { animation-delay: 0.65s; }
body.page-home .animate-fade-up--delay-4 { animation-delay: 0.85s; }

@keyframes fade-up-home {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  body.page-home .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 2rem);
  }

  body.page-home .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    max-width: 100%;
  }

  body.page-home .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
  }

  body.page-home .section--glass {
    margin-inline: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-inline: var(--container-pad);
  }

  body.page-home .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #page-loader { display: none; }
  body.page-home #canvas-3d { display: none; }
}

/* ============================================================
   AMBIANCE 3D — Toutes les autres pages (hors home)
   Canvas discret, particules légères, pas de loader
   ============================================================ */

/* Canvas présent sur toutes les pages */
body:not(.page-home) #canvas-3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  opacity: 0.45;           /* très discret sur les autres pages */
}

/* Header glassmorphism léger sur toutes les pages */
body:not(.page-home) .site-header {
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.07);
}

/* Logo accent discret sur les autres pages */
body:not(.page-home) .site-logo__mark {
  color: var(--neon-cyan);
  -webkit-text-fill-color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

/* Contenu au-dessus du canvas */
body:not(.page-home) .main-content {
  position: relative;
  z-index: 1;
}

/* Cards hover subtil sur les autres pages */
body:not(.page-home) .post-card:hover,
body:not(.page-home) .project-card:hover {
  border-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.06), 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

/* Skill items discrets */
body:not(.page-home) .skill-item:hover {
  border-color: rgba(0, 245, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.08);
  transform: translateY(-2px);
}

/* Reveal sections (toutes pages) */
body:not(.page-home) .reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.page-home) .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer léger */
body:not(.page-home) .site-footer {
  position: relative;
  z-index: 1;
}

/* ── Responsive autres pages ── */
@media (max-width: 768px) {
  body:not(.page-home) #canvas-3d {
    opacity: 0.25;   /* encore plus discret sur mobile */
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.page-home) #canvas-3d { display: none; }
  body:not(.page-home) .reveal-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   CORRECTIFS UX — v3
   1. Mobile mieux espacé + pas de retard d'affichage
   2. Fond visible à travers les blocs (home)
   3. Fond plus présent sur les autres pages
   4. Effet visuel sur pages article/projet/note
   ============================================================ */

/* ──────────────────────────────────────────────
   1. MOBILE — espacement & affichage immédiat
────────────────────────────────────────────── */

/* Supprime les délais d'animation sur mobile */
@media (max-width: 768px) {
  body.page-home .animate-fade-up {
    animation-duration: 0.5s !important;
  }
  body.page-home .animate-fade-up--delay-1 { animation-delay: 0.05s !important; }
  body.page-home .animate-fade-up--delay-2 { animation-delay: 0.12s !important; }
  body.page-home .animate-fade-up--delay-3 { animation-delay: 0.18s !important; }
  body.page-home .animate-fade-up--delay-4 { animation-delay: 0.24s !important; }

  /* Reveal sections quasi-instantané sur mobile */
  .reveal-section {
    transition-delay: 0s !important;
    transition-duration: 0.4s !important;
  }

  /* Hero mobile : meilleur espacement vertical */
  body.page-home .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3rem;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
  }

  body.page-home .hero .container {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
  }

  /* Eyebrow plus lisible */
  body.page-home .hero__eyebrow {
    font-size: 0.68rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
  }

  /* Titre : réduit le risque de coupure */
  body.page-home .hero__title {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
    margin-bottom: 1.25rem;
    word-break: break-word;
  }

  /* Description mieux lisible */
  body.page-home .hero__description {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
  }

  /* Boutons : espacement généreux */
  body.page-home .hero__actions {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  body.page-home .hero__actions .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  /* Meta : ligne séparée propre */
  body.page-home .hero__meta {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Sections : espacement mobile confortable */
  body.page-home .section {
    padding-block: 3rem;
  }

  body.page-home .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Skills grid mobile 2 colonnes */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .skill-item {
    padding: 0.85rem 0.75rem;
    font-size: 0.8rem;
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}

@media (max-width: 380px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  body.page-home .hero__title {
    font-size: 2.4rem;
  }
}

/* ──────────────────────────────────────────────
   2. FOND VISIBLE SOUS LES BLOCS (home)
   → Sections, cards et skills semi-transparents
────────────────────────────────────────────── */

/* Section wrapper : fond semi-transparent */
body.page-home .section--glass {
  background: rgba(13, 17, 23, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* Post cards : fond translucide */
body.page-home .post-card {
  background: rgba(22, 27, 34, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Project cards */
body.page-home .project-card {
  background: rgba(22, 27, 34, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Skill items */
body.page-home .skill-item {
  background: rgba(22, 27, 34, 0.45) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Site footer home */
body.page-home .site-footer {
  background: rgba(13, 17, 23, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

/* Suppression des fonds pleins sur la home */
body.page-home .section:not(.section--glass):not(.hero) {
  background: transparent;
}

/* ──────────────────────────────────────────────
   3. FOND PLUS PRÉSENT SUR LES AUTRES PAGES
────────────────────────────────────────────── */

/* Canvas opacity relevée */
body:not(.page-home) #canvas-3d {
  opacity: 0.65 !important;
}

/* Header glassmorphism plus marqué */
body:not(.page-home) .site-header {
  background: rgba(13, 17, 23, 0.60) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(0, 245, 255, 0.12) !important;
}

/* Cards des autres pages : légèrement transparentes */
body:not(.page-home) .post-card,
body:not(.page-home) .project-card {
  background: rgba(22, 27, 34, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(0, 245, 255, 0.08);
}

/* Skill items autres pages */
body:not(.page-home) .skill-item {
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Footer autres pages */
body:not(.page-home) .site-footer {
  background: rgba(13, 17, 23, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body:not(.page-home) #canvas-3d {
    opacity: 0.40 !important;
  }
}

/* ──────────────────────────────────────────────
   4. EFFET VISUEL — Pages article / projet / note
   Header de page avec glow, bordure neon discrète
────────────────────────────────────────────── */

/* Post header (article) */
.post__header {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.post__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 245, 255, 0.5) 30%,
    rgba(180, 79, 255, 0.5) 70%,
    transparent 100%
  );
}

/* Titre de post : léger gradient */
.post__title {
  background: linear-gradient(135deg, #fff 60%, rgba(0, 245, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.08));
}

/* Description du post */
.post__description {
  color: rgba(139, 148, 158, 0.9);
  border-left: 2px solid rgba(0, 245, 255, 0.3);
  padding-left: 1rem;
  margin-top: 1rem;
}

/* Tags : style neon discret */
.post__tags .tag,
.project__tags .tag,
body:not(.page-home) .tag {
  background: rgba(0, 245, 255, 0.06) !important;
  border: 1px solid rgba(0, 245, 255, 0.15) !important;
  color: rgba(0, 245, 255, 0.8) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

body:not(.page-home) .tag:hover {
  background: rgba(0, 245, 255, 0.12) !important;
  border-color: rgba(0, 245, 255, 0.35) !important;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.15);
}

/* Contenu de l'article : glassmorphism léger */
.post__content {
  position: relative;
  z-index: 1;
}

/* Callout boxes */
.post__content blockquote {
  background: rgba(0, 245, 255, 0.04);
  border-left: 3px solid rgba(0, 245, 255, 0.4);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  color: rgba(230, 237, 243, 0.8);
}

/* Code blocks : style terminal */
.post__content pre {
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

/* Headings article avec accent */
.post__content h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
  color: #fff;
}

.post__content h2::before {
  content: '// ';
  color: rgba(0, 245, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

/* Project header */
.project__header {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.project__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(180, 79, 255, 0.5) 40%,
    rgba(0, 245, 255, 0.5) 70%,
    transparent
  );
}

/* Page title (blog index, projets, notes, ressources) */
.page-header__title,
.post-list__title,
h1.page-title {
  background: linear-gradient(135deg, #fff 50%, rgba(0, 245, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Page index : ligne décorative sous le titre */
.page-header {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

/* Post list items (page /blog/) */
.post-list-item {
  border-bottom: 1px solid rgba(0, 245, 255, 0.06) !important;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.post-list-item:hover {
  background: rgba(0, 245, 255, 0.03);
  padding-left: 0.5rem;
}

/* Mobile post article */
@media (max-width: 768px) {
  .post__title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    -webkit-text-fill-color: #fff;
    filter: none;
    background: none;
  }

  .post__header::after {
    width: 60%;
  }

  .post__content h2::before {
    display: none;
  }

  body:not(.page-home) .post-card,
  body:not(.page-home) .project-card {
    background: rgba(22, 27, 34, 0.82);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .post__title {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    filter: none;
  }
}
